Beispiel #1
0
    def __init__(self):
        self.verbose = False
        self.analysisOutputDir = analysisOutputDir
        self.zMassRange = zMassRange
        self.prefixes = []
        self.externalCuts = []

        # Default cuts and requirements. Those three things below are used to determine the key in the cache!
        self.parameters = {
            "mllMin": default_mllMin,
            "metMin": default_metMin,
            "metSigMin": default_metSigMin,
            "dPhiJetMet": default_dPhiJetMet,
            "nJets": default_nJets,
            "nBTags": default_nBTags,
            "leptonCharges": default_leptonCharges,
            "useTriggers": True,
        }
        self.sys = {"weight": "weightPU", "reweight": [], "selectionModifier": None, "useBTagWeights": None}
        self.lumi = lumi

        self.sample = {
            "DY": {c: DYSample for c in allChannels},
            "TTJets": {c: TTJetsSample for c in allChannels},
            "TTZ": {c: TTZ for c in allChannels},
            "other": {
                "MuMu": combineSamples([otherEWKBkgs, QCD_Mu5]),
                "EE": combineSamples([otherEWKBkgs, QCD_EMbcToE]),
                "EMu": combineSamples([otherEWKBkgs, QCD_Mu5EMbcToE]),
                "all": combineSamples([otherEWKBkgs, QCD_Mu5EMbcToE]),
            },
            "Data": {"MuMu": DoubleMuon_Run2015D, "EE": DoubleEG_Run2015D, "EMu": MuonEG_Run2015D},
        }
Beispiel #2
0
    def __init__(self):
        self.verbose = False
        self.analysisOutputDir = analysisOutputDir
        self.zMassRange = zMassRange
        self.prefixes = []
        self.externalCuts = []

        #Default cuts and requirements. Those three things below are used to determine the key in the cache!
        self.parameters = {
            'mllMin': default_mllMin,
            'metMin': default_metMin,
            'metSigMin': default_metSigMin,
            'dPhiJetMet': default_dPhiJetMet,
            'nJets': default_nJets,
            'nBTags': default_nBTags,
            'leptonCharges': default_leptonCharges,
            'useTriggers': True
        }
        self.sys = {
            'weight': 'weightPU',
            'reweight': [],
            'selectionModifier': None,
            'useBTagWeights': None
        }
        self.lumi = lumi

        self.sample = {
            'DY': {c: DYSample
                   for c in allChannels},
            'TTJets': {c: TTJetsSample
                       for c in allChannels},
            'TTZ': {c: TTZ
                    for c in allChannels},
            'other': {
                'MuMu': combineSamples([otherEWKBkgs, QCD_Mu5]),
                'EE': combineSamples([otherEWKBkgs, QCD_EMbcToE]),
                'EMu': combineSamples([otherEWKBkgs, QCD_Mu5EMbcToE]),
                'all': combineSamples([otherEWKBkgs, QCD_Mu5EMbcToE])
            },
            'Data': {
                'MuMu': DoubleMuon_Run2015D,
                'EE': DoubleEG_Run2015D,
                'EMu': MuonEG_Run2015D
            },
        }
Beispiel #3
0
import copy

#Numerical constants
zMassRange = 15

#define samples
from StopsDilepton.samples.helpers import combineSamples
from StopsDilepton.samples.cmgTuples_Data25ns_mAODv2_postProcessed import *
from StopsDilepton.samples.cmgTuples_Spring15_mAODv2_25ns_1l_postProcessed import *

#choices for specific samples
#DYSample      = DY #NLO M10t050 + M50
DYSample = DY_HT_LO  #LO, HT binned including a low HT bin starting from zero from the inclusive sample
#TTJetsSample  = TTJets #NLO
TTJetsSample = TTJets_Lep  #LO, very large dilep + single lep samples
otherEWKBkgs = combineSamples(
    [singleTop, diBoson, triBoson, TTXNoZ, WJetsToLNu_HT])
otherEWKBkgs['name'] = 'otherBkgs'
otherEWKBkgs['texName'] = 'other bkgs.'

from StopsDilepton.analysis.systematics import jmeVariations
from StopsDilepton.analysis.SetupHelpers import getZCut, loadChain, allChannels

#to run on data
#lumi = {'EMu':MuonEG_Run2015D['lumi'], 'MuMu':DoubleMuon_Run2015D['lumi'], 'EE':DoubleEG_Run2015D['lumi']}
#10/fb to run on MC
lumi = {c: 10000 for c in allChannels}

#Define defaults here
default_mllMin = 20
default_metMin = 80
default_metSigMin = 5
Beispiel #4
0
import copy

# Numerical constants
zMassRange = 15

# define samples
from StopsDilepton.samples.helpers import combineSamples
from StopsDilepton.samples.cmgTuples_Data25ns_mAODv2_postProcessed import *
from StopsDilepton.samples.cmgTuples_Spring15_mAODv2_25ns_1l_postProcessed import *

# choices for specific samples
# DYSample      = DY #NLO M10t050 + M50
DYSample = DY_HT_LO  # LO, HT binned including a low HT bin starting from zero from the inclusive sample
# TTJetsSample  = TTJets #NLO
TTJetsSample = TTJets_Lep  # LO, very large dilep + single lep samples
otherEWKBkgs = combineSamples([singleTop, diBoson, triBoson, TTXNoZ, WJetsToLNu_HT])
otherEWKBkgs["name"] = "otherBkgs"
otherEWKBkgs["texName"] = "other bkgs."

from StopsDilepton.analysis.systematics import jmeVariations
from StopsDilepton.analysis.SetupHelpers import getZCut, loadChain, allChannels

# to run on data
# lumi = {'EMu':MuonEG_Run2015D['lumi'], 'MuMu':DoubleMuon_Run2015D['lumi'], 'EE':DoubleEG_Run2015D['lumi']}
# 10/fb to run on MC
lumi = {c: 10000 for c in allChannels}

# Define defaults here
default_mllMin = 20
default_metMin = 80
default_metSigMin = 5