test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
patRefSel_refMuJets.py
Go to the documentation of this file.
1 #
2 # This file contains the Top PAG reference selection for mu + jets analysis.
3 #
4 
5 ### Muon configuration
6 
7 # PAT muons
8 muonsUsePV = False # use beam spot rather than PV, which is necessary for 'dB' cut
9 muonEmbedTrack = True # embedded track needed for muon ID cuts
10 
11 ### Jet configuration
12 
13 # Jet algorithm
14 jetAlgo = 'AK5'
15 
16 # JEC sets
17 jecSetBase = jetAlgo
18 
19 
20 ### ------------------------- Reference selection -------------------------- ###
21 
22 
23 # PF2PAT settings
25 
26 ### Trigger selection
27 
28 # HLT selection
29 triggerSelectionDataRelVals = 'HLT_IsoMu17_eta2p1_TriCentralPFJet30_v*' # 2012A RelVals
30 triggerSelectionData = 'HLT_IsoMu17_eta2p1_TriCentralPFNoPUJet30_30_20_v*'
31 triggerSelectionMC = 'HLT_*' # not recommended
32 
33 ### Muon selection
34 
35 # Minimal selection for all muons, also basis for signal and veto muons
36 muonCut = 'isPFMuon' # general reconstruction property
37 muonCut += ' && (isGlobalMuon || isTrackerMuon)' # general reconstruction property
38 muonCut += ' && pt > 10.' # transverse momentum
39 muonCut += ' && abs(eta) < 2.5' # pseudo-rapisity range
40 muonCut += ' && (chargedHadronIso+neutralHadronIso+photonIso-0.5*puChargedHadronIso)/pt < 0.2' # relative isolation w/ Delta beta corrections (factor 0.5)
41 
42 # Signal muon selection on top of 'muonCut'
43 signalMuonCut = 'isPFMuon' # general reconstruction property
44 signalMuonCut += ' && isGlobalMuon' # general reconstruction property
45 signalMuonCut += ' && pt > 26.' # transverse momentum
46 signalMuonCut += ' && abs(eta) < 2.1' # pseudo-rapisity range
47 signalMuonCut += ' && globalTrack.normalizedChi2 < 10.' # muon ID: 'isGlobalMuonPromptTight'
48 signalMuonCut += ' && track.hitPattern.trackerLayersWithMeasurement > 5' # muon ID: 'isGlobalMuonPromptTight'
49 signalMuonCut += ' && globalTrack.hitPattern.numberOfValidMuonHits > 0' # muon ID: 'isGlobalMuonPromptTight'
50 signalMuonCut += ' && abs(dB) < 0.2' # 2-dim impact parameter with respect to beam spot (s. "PAT muon configuration" above)
51 signalMuonCut += ' && innerTrack.hitPattern.numberOfValidPixelHits > 0' # tracker reconstruction
52 signalMuonCut += ' && numberOfMatchedStations > 1' # muon chamber reconstruction
53 signalMuonCut += ' && (chargedHadronIso+neutralHadronIso+photonIso-0.5*puChargedHadronIso)/pt < 0.12' # relative isolation w/ Delta beta corrections (factor 0.5)
54 
55 muonVertexMaxDZ = 0.5 # DeltaZ between muon vertex and PV
56 
57 ### Jet selection
58 
59 # Signal jet selection
60 jetCut = 'abs(eta) < 2.5' # pseudo-rapisity range
61 jetCut += ' && numberOfDaughters > 1' # PF jet ID:
62 jetCut += ' && neutralHadronEnergyFraction < 0.99' # PF jet ID:
63 jetCut += ' && neutralEmEnergyFraction < 0.99' # PF jet ID:
64 jetCut += ' && (chargedEmEnergyFraction < 0.99 || abs(eta) >= 2.4)' # PF jet ID:
65 jetCut += ' && (chargedHadronEnergyFraction > 0. || abs(eta) >= 2.4)' # PF jet ID:
66 jetCut += ' && (chargedMultiplicity > 0 || abs(eta) >= 2.4)' # PF jet ID:
67 # varying jet pt thresholds
68 veryLooseJetCut = 'pt > 20.' # transverse momentum (all jets)
69 looseJetCut = 'pt > 35.' # transverse momentum (3rd jet, optional)
70 tightJetCut = 'pt > 45.' # transverse momentum (leading jets)
71 
72 ### Electron selection
73 
74 # Minimal selection for all electrons, also basis for signal and veto muons
75 electronCut = 'pt > 20.' # transverse energy
76 electronCut += ' && abs(eta) < 2.5' # pseudo-rapisity range
77 electronCut += ' && electronID("mvaTrigV0") > 0.' # MVA electrons ID
78 electronCut += ' && (chargedHadronIso+max(0.,neutralHadronIso)+photonIso-0.5*puChargedHadronIso)/et < 0.2' # relative isolation with Delta beta corrections
79 
80 ### ------------------------------------------------------------------------ ###
81 
82 
83 ### Trigger matching
84 
85 # Trigger object selection
86 triggerObjectSelectionDataRelVals = 'type("TriggerMuon") && ( path("HLT_IsoMu17_eta2p1_TriCentralPFJet30_v*") )' # 2012A RelVals
87 triggerObjectSelectionData = 'type("TriggerMuon") && ( path("HLT_IsoMu17_eta2p1_TriCentralPFNoPUJet30_30_20_v*") )'
88 triggerObjectSelectionMC = 'type("TriggerMuon") && ( path("HLT_*") )' # not recommended
----------------------— Reference selection -----------------------— ###