CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
patRefSel_refAllJets.py
Go to the documentation of this file.
1 #
2 # This file contains the Top PAG reference selection for mu + jets analysis.
3 # as defined in
4 # https://twiki.cern.ch/twiki/bin/viewauth/CMS/TopLeptonPlusJetsRefSel_mu#Selection_Version_SelV4_valid_fr
5 #
6 
7 ### Jet configuration
8 
9 # Jet algorithm
10 jetAlgo = 'AK5'
11 
12 # JEC sets
13 jecSetBase = jetAlgo
14 
15 
16 ### ------------------------- Reference selection -------------------------- ###
17 
18 
19 # PF2PAT settings
21 
22 ### Trigger selection
23 
24 # HLT selection
25 triggerSelectionDataRelVals = 'HLT_SixJet45_v*' # 2012A RelVals
26 triggerSelectionData = 'HLT_*' # not defined yet
27 triggerSelectionMC = 'HLT_*' # not recommended
28 
29 ### Muon selection
30 
31 # Minimal selection for all muons, also basis for signal and veto muons
32 muonCut = 'isPFMuon' # general reconstruction property
33 muonCut += ' && (isGlobalMuon || isTrackerMuon)' # general reconstruction property
34 muonCut += ' && pt > 10.' # transverse momentum
35 muonCut += ' && abs(eta) < 2.5' # pseudo-rapisity range
36 muonCut += ' && (chargedHadronIso+neutralHadronIso+photonIso-0.5*puChargedHadronIso)/pt < 0.2' # relative isolation w/ Delta beta corrections (factor 0.5)
37 
38 ### Jet selection
39 
40 # Signal jet selection
41 jetCut = 'pt > 20.' # transverse momentum
42 jetCut += ' && abs(eta) < 2.5' # pseudo-rapisity range
43 jetCut += ' && numberOfDaughters > 1' # PF jet ID:
44 jetCut += ' && neutralHadronEnergyFraction < 0.99' # PF jet ID:
45 jetCut += ' && neutralEmEnergyFraction < 0.99' # PF jet ID:
46 jetCut += ' && (chargedEmEnergyFraction < 0.99 || abs(eta) >= 2.4)' # PF jet ID:
47 jetCut += ' && (chargedHadronEnergyFraction > 0. || abs(eta) >= 2.4)' # PF jet ID:
48 jetCut += ' && (chargedMultiplicity > 0 || abs(eta) >= 2.4)' # PF jet ID:
49 # varying jet pt thresholds
50 veryLooseJetCut = 'pt > 35.' # transverse momentum (all jets)
51 looseJetCut = 'pt > 50.' # transverse momentum (3rd jet, optional)
52 tightJetCut = 'pt > 60.' # transverse momentum (leading jets)
53 
54 ### Electron selection
55 
56 # Minimal selection for all electrons, also basis for signal and veto muons
57 electronCut = 'pt > 20.' # transverse energy
58 electronCut += ' && abs(eta) < 2.5' # pseudo-rapisity range
59 electronCut += ' && electronID("mvaTrigV0") > 0.' # MVA electrons ID
60 electronCut += ' && (chargedHadronIso+max(0.,neutralHadronIso)+photonIso-0.5*puChargedHadronIso)/et < 0.2' # relative isolation with Delta beta corrections
61 
62 ### ------------------------------------------------------------------------ ###
63 
64 
65 ### Trigger matching
66 
67 # Trigger object selection
68 triggerObjectSelectionDataRelVals = 'type("TriggerJet") && ( path("HLT_SixJet45_v*") )' # 2012A RelVals
69 triggerObjectSelectionData = 'type("TriggerJet") && ( path("HLT_*") )' # not defined yet
70 triggerObjectSelectionMC = 'type("TriggerJet") && ( path("HLT_*") )' # not recommended
----------------------— Reference selection -----------------------— ###