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 > 200 && 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 > 200 && eta < 2.4",
44  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet500_v*"]),
45  histoPSet = dict(
46  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
47  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
48  )
49 )
50 
51 
52 # AK8PFJet420_MassSD30 monitoring
53 
54 AK8PFJet420_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
55  FolderName = 'HLT/B2G/AK8PFJet420_MassSD30',
56  ptcut = 200,
57  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet420_MassSD30_v*"])
58 )
59 
60 AK8PFJet420_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
61  FolderName = 'HLT/B2G/AK8PFJet420_MassSD30',
62  jets = "ak8PFJetsPuppi",
63  jetSelection = "pt > 200 && eta < 2.4",
64  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet420_MassSD30_v*"])
65 )
66 
67 AK8PFJet420_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
68  FolderName = 'HLT/B2G/AK8PFJet420_MassSD30',
69  jetSelection = "pt > 200 && eta < 2.4",
70  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet420_MassSD30_v*"]),
71  histoPSet = dict(
72  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
73  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
74  )
75 )
76 
77 # AK8DiPFJet270_270_MassSD30 monitoring
78 
79 AK8DiPFJet270_270_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
80  FolderName = 'HLT/B2G/AK8DiPFJet270_270_MassSD30',
81  ptcut = 200,
82  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet270_270_MassSD30_v*"])
83 )
84 
85 AK8DiPFJet270_270_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
86  FolderName = 'HLT/B2G/AK8DiPFJet270_270_MassSD30',
87  jets = "ak8PFJetsPuppi",
88  jetSelection = "pt > 200 && eta < 2.4",
89  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8DiPFJet270_270_MassSD30_v*"])
90 )
91 
92 AK8DiPFJet270_270_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
93  FolderName = 'HLT/B2G/AK8DiPFJet270_270_MassSD30',
94  jetSelection = "pt > 200 && eta < 2.4",
95  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet270_270_MassSD30_v*"]),
96  histoPSet = dict(
97  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
98  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
99  )
100 )
101 
102 # Lepton cross trigger monitoring
103 
104 hltDQMonitorB2G_MuEle = hltTOPmonitoring.clone(
105  FolderName = 'HLT/B2G/Dileptonic/HLT_MuXX_EleXX_CaloIdL_MW',
106  nelectrons = 1,
107  eleSelection = 'pt>20 & abs(eta)<2.4',
108  nmuons = 1,
109  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
110  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_Ele27_CaloIdL_MW_v*', 'HLT_Mu27_Ele37_CaloIdL_MW_v*'])
111 )
112 
113 hltDQMonitorB2G_MuTkMu = hltTOPmonitoring.clone(
114  FolderName = 'HLT/B2G/Dileptonic/HLT_Mu37_TkMu27',
115  nmuons = 2,
116  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
117  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_TkMu27_v*'])
118 )
119 
120 
121 # the sequence
122 
123 b2gMonitorHLT = cms.Sequence(
124 
125  PFHT1050_Mjjmonitoring +
126 
127  AK8PFJet500_Mjjmonitoring +
128 
129  AK8PFJet420_MassSD30_PromptMonitoring +
130  AK8PFJet420_MassSD30_Mjjmonitoring +
131 
132  AK8DiPFJet270_270_MassSD30_PromptMonitoring +
133  AK8DiPFJet270_270_MassSD30_Mjjmonitoring +
134 
135  B2GegHLTDQMOfflineTnPSource
136 
137  * hltDQMonitorB2G_MuEle
138  * hltDQMonitorB2G_MuTkMu
139 
140  , cms.Task(B2GegmGsfElectronIDsForDQM)
141 )
142 
143 
147 b2gHLTDQMSourceWithRECO = cms.Sequence(
148  PFHT1050_Softdropmonitoring +
149  AK8PFJet500_Softdropmonitoring +
150  AK8PFJet420_MassSD30_Softdropmonitoring +
151  AK8DiPFJet270_270_MassSD30_Softdropmonitoring
152 )
153 
154 b2gHLTDQMSourceExtra = cms.Sequence(
155 )