CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/TopQuarkAnalysis/Configuration/python/patRefSel_refAllJets.py

Go to the documentation of this file.
00001 #
00002 # This file contains the Top PAG reference selection for mu + jets analysis.
00003 # as defined in
00004 # https://twiki.cern.ch/twiki/bin/viewauth/CMS/TopLeptonPlusJetsRefSel_mu#Selection_Version_SelV4_valid_fr
00005 #
00006 
00007 ### Jet configuration
00008 
00009 # Jet algorithm
00010 jetAlgo = 'AK5'
00011 
00012 # JEC sets
00013 jecSetBase = jetAlgo
00014 
00015 
00016 ### ------------------------- Reference selection -------------------------- ###
00017 
00018 
00019 # PF2PAT settings
00020 from TopQuarkAnalysis.Configuration.patRefSel_PF2PAT import *
00021 
00022 ### Trigger selection
00023 
00024 # HLT selection
00025 triggerSelectionDataRelVals = 'HLT_SixJet45_v*' # 2012A RelVals
00026 triggerSelectionData        = 'HLT_*' # not defined yet
00027 triggerSelectionMC          = 'HLT_*' # not recommended
00028 
00029 ### Muon selection
00030 
00031 # Minimal selection for all muons, also basis for signal and veto muons
00032 muonCut  =     'isPFMuon'                                                                      # general reconstruction property
00033 muonCut += ' && (isGlobalMuon || isTrackerMuon)'                                               # general reconstruction property
00034 muonCut += ' && pt > 10.'                                                                      # transverse momentum
00035 muonCut += ' && abs(eta) < 2.5'                                                                # pseudo-rapisity range
00036 muonCut += ' && (chargedHadronIso+neutralHadronIso+photonIso-0.5*puChargedHadronIso)/pt < 0.2' # relative isolation w/ Delta beta corrections (factor 0.5)
00037 
00038 ### Jet selection
00039 
00040 # Signal jet selection
00041 jetCut  =     'pt > 20.'                                              # transverse momentum
00042 jetCut += ' && abs(eta) < 2.5'                                        # pseudo-rapisity range
00043 jetCut += ' && numberOfDaughters > 1'                                 # PF jet ID:
00044 jetCut += ' && neutralHadronEnergyFraction < 0.99'                    # PF jet ID:
00045 jetCut += ' && neutralEmEnergyFraction < 0.99'                        # PF jet ID:
00046 jetCut += ' && (chargedEmEnergyFraction < 0.99 || abs(eta) >= 2.4)'   # PF jet ID:
00047 jetCut += ' && (chargedHadronEnergyFraction > 0. || abs(eta) >= 2.4)' # PF jet ID:
00048 jetCut += ' && (chargedMultiplicity > 0 || abs(eta) >= 2.4)'          # PF jet ID:
00049 # varying jet pt thresholds
00050 veryLooseJetCut = 'pt > 35.' # transverse momentum (all jets)
00051 looseJetCut     = 'pt > 50.' # transverse momentum (3rd jet, optional)
00052 tightJetCut     = 'pt > 60.' # transverse momentum (leading jets)
00053 
00054 ### Electron selection
00055 
00056 # Minimal selection for all electrons, also basis for signal and veto muons
00057 electronCut  =     'pt > 20.'                                                                              # transverse energy
00058 electronCut += ' && abs(eta) < 2.5'                                                                        # pseudo-rapisity range
00059 electronCut += ' && electronID("mvaTrigV0") > 0.'                                                          # MVA electrons ID
00060 electronCut += ' && (chargedHadronIso+max(0.,neutralHadronIso)+photonIso-0.5*puChargedHadronIso)/et < 0.2' # relative isolation with Delta beta corrections
00061 
00062 ### ------------------------------------------------------------------------ ###
00063 
00064 
00065 ### Trigger matching
00066 
00067 # Trigger object selection
00068 triggerObjectSelectionDataRelVals = 'type("TriggerJet") && ( path("HLT_SixJet45_v*") )' # 2012A RelVals
00069 triggerObjectSelectionData        = 'type("TriggerJet") && ( path("HLT_*") )' # not defined yet
00070 triggerObjectSelectionMC          = 'type("TriggerJet") && ( path("HLT_*") )' # not recommended