CMS 3D CMS Logo

B2GMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.JetMonitor_cfi import hltJetMETmonitoring
4 from DQMOffline.Trigger.HTMonitor_cfi import hltHTmonitoring
5 from DQMOffline.Trigger.MjjMonitor_cfi import hltMjjmonitoring
6 from DQMOffline.Trigger.SoftdropMonitor_cfi import hltSoftdropmonitoring
7 from DQMOffline.Trigger.B2GTnPMonitor_cfi import B2GegmGsfElectronIDsForDQM,B2GegHLTDQMOfflineTnPSource
8 from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring
9 
10 
18 
19 # HT and AK8jet monitoring
20 
21 PFHT1050_Mjjmonitoring = hltMjjmonitoring.clone(
22  FolderName = 'HLT/B2G/PFHT1050',
23  jets = "ak8PFJetsPuppi",
24  jetSelection = "pt > 200 && eta < 2.4",
25  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_PFHT1050_v*"])
26 )
27 
28 PFHT1050_Softdropmonitoring = hltSoftdropmonitoring.clone(
29  FolderName = 'HLT/B2G/PFHT1050',
30  jetSelection = "pt > 65 && eta < 2.4",
31  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_PFHT1050_v*"])
32 )
33 
34 AK8PFJet500_Mjjmonitoring = hltMjjmonitoring.clone(
35  FolderName = 'HLT/B2G/AK8PFJet500',
36  jets = "ak8PFJetsPuppi",
37  jetSelection = "pt > 200 && eta < 2.4",
38  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet500_v*"])
39 )
40 
41 AK8PFJet500_Softdropmonitoring = hltSoftdropmonitoring.clone(
42  FolderName = 'HLT/B2G/AK8PFJet500',
43  jetSelection = "pt > 65 && eta < 2.4",
44  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet500_v*"])
45 )
46 
47 # AK8PFHT800_TrimMass50 monitoring
48 
49 AK8PFHT800_TrimMass50_HTmonitoring = hltHTmonitoring.clone(
50  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
51  jets = "ak8PFJetsPuppi",
52  jetSelection = "pt > 0 && eta < 2.5",
53  jetSelection_HT = "pt > 200 && eta < 2.5",
54  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
55 )
56 
57 AK8PFHT800_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone(
58  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
59  jets = "ak8PFJetsPuppi",
60  jetSelection = "pt > 200 && eta < 2.4",
61  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
62 )
63 
64 AK8PFHT800_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone(
65  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
66  jetSelection = "pt > 65 && eta < 2.4",
67  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
68 )
69 
70 # AK8PFJet400_TrimMass30 monitoring
71 
72 AK8PFJet400_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone(
73  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
74  ptcut = 400,
75  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
76 )
77 
78 AK8PFJet400_TrimMass30_Mjjmonitoring = hltMjjmonitoring.clone(
79  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
80  jets = "ak8PFJetsPuppi",
81  jetSelection = "pt > 200 && eta < 2.4",
82  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
83 )
84 
85 AK8PFJet400_TrimMass30_Softdropmonitoring = hltSoftdropmonitoring.clone(
86  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
87  jetSelection = "pt > 65 && eta < 2.4",
88  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
89 )
90 
91 # Lepton cross trigger monitoring
92 
93 hltDQMonitorB2G_MuEle = hltTOPmonitoring.clone(
94  FolderName = 'HLT/B2G/Dileptonic/HLT_MuXX_EleXX_CaloIdL_MW',
95  nelectrons = 1,
96  eleSelection = 'pt>20 & abs(eta)<2.5',
97  nmuons = 1,
98  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
99  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_Ele27_CaloIdL_MW_v*', 'HLT_Mu27_Ele37_CaloIdL_MW_v*'])
100 )
101 
102 hltDQMonitorB2G_MuTkMu = hltTOPmonitoring.clone(
103  FolderName = 'HLT/B2G/Dileptonic/HLT_Mu37_TkMu27',
104  nmuons = 2,
105  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
106  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_TkMu27_v*'])
107 )
108 
109 
110 # the sequence
111 
112 b2gMonitorHLT = cms.Sequence(
113 
114  PFHT1050_Mjjmonitoring +
115 
116  AK8PFJet500_Mjjmonitoring +
117 
118  AK8PFHT800_TrimMass50_HTmonitoring +
119  AK8PFHT800_TrimMass50_Mjjmonitoring +
120 
121  AK8PFJet400_TrimMass30_PromptMonitoring +
122  AK8PFJet400_TrimMass30_Mjjmonitoring +
123 
124  B2GegHLTDQMOfflineTnPSource
125 
126  * hltDQMonitorB2G_MuEle
127  * hltDQMonitorB2G_MuTkMu
128 
129  , cms.Task(B2GegmGsfElectronIDsForDQM)
130 )
131 
132 
136 b2gHLTDQMSourceWithRECO = cms.Sequence(
137  PFHT1050_Softdropmonitoring +
138  AK8PFJet500_Softdropmonitoring +
139  AK8PFHT800_TrimMass50_Softdropmonitoring +
140  AK8PFJet400_TrimMass30_Softdropmonitoring
141 
142 )
143 
144 b2gHLTDQMSourceExtra = cms.Sequence(
145 )