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