CMS 3D CMS Logo

HLTTauDQMOffline_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 hltTauDQMofflineProcess = "HLT"
4 
5 #Ref Objects-------------------------------------------------------------------------------------------------------
6 TauRefProducer = cms.EDProducer("HLTTauRefProducer",
7 
8  PFTaus = cms.untracked.PSet(
9  PFTauDiscriminatorContainers = cms.untracked.VInputTag(),
10  PFTauDiscriminatorContainerWPs = cms.untracked.vstring(),
11  PFTauDiscriminators = cms.untracked.VInputTag(
12  cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding")
13  ),
14  doPFTaus = cms.untracked.bool(True),
15  ptMin = cms.untracked.double(15.0),
16  etaMin = cms.untracked.double(-2.5),
17  etaMax = cms.untracked.double(2.5),
18  phiMin = cms.untracked.double(-3.15),
19  phiMax = cms.untracked.double(3.15),
20  PFTauProducer = cms.untracked.InputTag("hpsPFTauProducer")
21  ),
22  Electrons = cms.untracked.PSet(
23  ElectronCollection = cms.untracked.InputTag("gedGsfElectrons"),
24  doID = cms.untracked.bool(False),
25  InnerConeDR = cms.untracked.double(0.02),
26  MaxIsoVar = cms.untracked.double(0.02),
27  doElectrons = cms.untracked.bool(True),
28  TrackCollection = cms.untracked.InputTag("generalTracks"),
29  OuterConeDR = cms.untracked.double(0.6),
30  ptMin = cms.untracked.double(15.0),
31  doTrackIso = cms.untracked.bool(True),
32  ptMinTrack = cms.untracked.double(1.5),
33  lipMinTrack = cms.untracked.double(0.2),
34  IdCollection = cms.untracked.InputTag("elecIDext")
35  ),
36  Jets = cms.untracked.PSet(
37  JetCollection = cms.untracked.InputTag("ak4PFJetsCHS"),
38  etMin = cms.untracked.double(15.0),
39  doJets = cms.untracked.bool(False)
40  ),
41  Towers = cms.untracked.PSet(
42  TowerCollection = cms.untracked.InputTag("towerMaker"),
43  etMin = cms.untracked.double(10.0),
44  doTowers = cms.untracked.bool(False),
45  towerIsolation = cms.untracked.double(5.0)
46  ),
47 
48  Muons = cms.untracked.PSet(
49  doMuons = cms.untracked.bool(True),
50  MuonCollection = cms.untracked.InputTag("muons"),
51  ptMin = cms.untracked.double(15.0)
52  ),
53 
54  Photons = cms.untracked.PSet(
55  doPhotons = cms.untracked.bool(False),
56  PhotonCollection = cms.untracked.InputTag("gedPhotons"),
57  etMin = cms.untracked.double(15.0),
58  ECALIso = cms.untracked.double(3.0)
59  ),
60 
61  MET = cms.untracked.PSet(
62  doMET = cms.untracked.bool(True),
63  METCollection = cms.untracked.InputTag("caloMet"),
64  ptMin = cms.untracked.double(0.0)
65  ),
66 
67  EtaMin = cms.untracked.double(-2.3),
68  EtaMax = cms.untracked.double(2.3),
69  PhiMin = cms.untracked.double(-3.15),
70  PhiMax = cms.untracked.double(3.15)
71  )
72 
73 #----------------------------------MONITORS--------------------------------------------------------------------------
74 kEverything = 0
75 kVital = 1
76 
77 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
78 hltTauOfflineMonitor_PFTaus = DQMEDAnalyzer('HLTTauDQMOfflineSource',
79  HLTProcessName = cms.untracked.string(hltTauDQMofflineProcess),
80  DQMBaseFolder = cms.untracked.string("HLT/TAU/PFTaus"),
81  PlotLevel = cms.untracked.int32(kVital),
82  TriggerResultsSrc = cms.untracked.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
83  TriggerEventSrc = cms.untracked.InputTag("hltTriggerSummaryAOD", "", hltTauDQMofflineProcess),
84  L1Plotter = cms.untracked.PSet(
85  DQMFolder = cms.untracked.string('L1'),
86  L1Taus = cms.untracked.InputTag("caloStage2Digis", "Tau"),
87  L1ETM = cms.untracked.InputTag("caloStage2Digis","EtSum"),
88  L1ETMMin = cms.untracked.double(50),
89  ),
90  Paths = cms.untracked.string("PFTau"),
91  PtHistoBins = cms.untracked.int32(50),
92  PtHistoMax = cms.untracked.double(500),
93  PathSummaryPlotter = cms.untracked.PSet(
94  DQMFolder = cms.untracked.string('Summary'),
95  ),
96  Matching = cms.PSet(
97  doMatching = cms.untracked.bool(True),
98  matchFilters = cms.untracked.VPSet(
99  cms.untracked.PSet(
100  FilterName = cms.untracked.InputTag("TauRefProducer","PFTaus"),
101  matchObjectID = cms.untracked.int32(15),
102  ),
103  cms.untracked.PSet(
104  FilterName = cms.untracked.InputTag("TauRefProducer","Electrons"),
105  matchObjectID = cms.untracked.int32(11),
106  ),
107  cms.untracked.PSet(
108  FilterName = cms.untracked.InputTag("TauRefProducer","Muons"),
109  matchObjectID = cms.untracked.int32(13),
110  ),
111  cms.untracked.PSet(
112  FilterName = cms.untracked.InputTag("TauRefProducer","MET"),
113  matchObjectID = cms.untracked.int32(0),
114  ),
115  ),
116  ),
117 )
118 
119 hltTauOfflineMonitor_PNetTaus = hltTauOfflineMonitor_PFTaus.clone(
120  DQMBaseFolder = cms.untracked.string("HLT/TAU/PNetTaus"),
121  Paths = cms.untracked.string("PNetTauh")
122 )
123 
124 hltTauOfflineMonitor_Inclusive = hltTauOfflineMonitor_PFTaus.clone(
125  DQMBaseFolder = "HLT/TAU/Inclusive",
126  Matching = cms.PSet(
127  doMatching = cms.untracked.bool(False),
128  matchFilters = cms.untracked.VPSet(),
129  )
130 )
131 
133  genericTriggerSelectionParameters = cms.PSet(
134  andOr = cms.bool( False ),#specifies the logical combination of the single filters' (L1, HLT and DCS) decisions at top level (True=OR)
135  dbLabel = cms.string("PFTauDQMTrigger"),#specifies the label under which the DB payload is available from the ESSource or Global Tag
136  andOrHlt = cms.bool(True),#specifies the logical combination of the single HLT paths' decisions (True=OR)
137  hltInputTag = cms.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
138  hltPaths = hltpaths,#Lists logical expressions of HLT paths, which should have accepted the event (fallback in case DB unaccessible)
139  errorReplyHlt = cms.bool(False),#specifies the desired return value of the HLT filter and the single HLT path filter in case of certain errors
140  verbosityLevel = cms.uint32(0) #0: complete silence (default), needed for T0 processing;
141  )
142  return genericTriggerSelectionParameters
143 
144 
145 hltTauOfflineMonitor_TagAndProbe = hltTauOfflineMonitor_PFTaus.clone(
146  DQMBaseFolder = "HLT/TAU/TagAndProbe",
147  Matching = cms.PSet(
148  doMatching = cms.untracked.bool(True),
149  matchFilters = cms.untracked.VPSet(
150  cms.untracked.PSet(
151  FilterName = cms.untracked.InputTag("TauRefProducer","PFTaus"),
152  matchObjectID = cms.untracked.int32(15),
153  ),
154  cms.untracked.PSet(
155  FilterName = cms.untracked.InputTag("TauRefProducer","Electrons"),
156  matchObjectID = cms.untracked.int32(11),
157  ),
158  cms.untracked.PSet(
159  FilterName = cms.untracked.InputTag("TauRefProducer","Muons"),
160  matchObjectID = cms.untracked.int32(13),
161  ),
162  cms.untracked.PSet(
163  FilterName = cms.untracked.InputTag("TauRefProducer","MET"),
164  matchObjectID = cms.untracked.int32(0),
165  ),
166  ),
167  ),
168  TagAndProbe = cms.untracked.VPSet(
169  cms.untracked.PSet(
170  name = cms.string('MuTauTemplate'),
171  xvariable = cms.string('Tau'),
172  nPtBins = cms.int32(20),
173  ptmin = cms.double(0.),
174  ptmax = cms.double(200.),
175  nEtaBins = cms.int32(20),
176  etamin = cms.double(-2.5),
177  etamax = cms.double(2.5),
178  nPhiBins = cms.int32(20),
179  phimin = cms.double(-3.15),
180  phimax = cms.double(3.15),
181  numerator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu24_eta2p1_.+PFTau.+')),
182  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
183  ),
184  cms.untracked.PSet(
185  name = cms.string('ETauTemplate'),
186  xvariable = cms.string('Tau'),
187  nPtBins = cms.int32(20),
188  ptmin = cms.double(0.),
189  ptmax = cms.double(200.),
190  nEtaBins = cms.int32(20),
191  etamin = cms.double(-2.5),
192  etamax = cms.double(2.5),
193  nPhiBins = cms.int32(20),
194  phimin = cms.double(-3.15),
195  phimax = cms.double(3.15),
196  numerator = TriggerSelectionParameters(cms.vstring('HLT_Ele.+PFTau.+')),
197  denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
198  ),
199  cms.untracked.PSet(
200  name = cms.string('TauMETTemplate'),
201  xvariable = cms.string('MET'),
202  nPtBins = cms.int32(50),
203  ptmin = cms.double(0.),
204  ptmax = cms.double(500.),
205  nPhiBins = cms.int32(20),
206  phimin = cms.double(-3.15),
207  phimax = cms.double(3.15),
208  numerator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_MET.*')),
209  denominator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_v*'))
210  ),
211  cms.untracked.PSet(
212  name = cms.string('IsoMu20_eta2p1'),
213  xvariable = cms.string('Muon'),
214  nPtBins = cms.int32(20),
215  ptmin = cms.double(0.),
216  ptmax = cms.double(200.),
217  nEtaBins = cms.int32(20),
218  etamin = cms.double(-2.5),
219  etamax = cms.double(2.5),
220  nPhiBins = cms.int32(20),
221  phimin = cms.double(-3.15),
222  phimax = cms.double(3.15),
223  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu20_eta2p1_v*')),
224  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*')),
225  nOfflObjs = cms.untracked.uint32(2)
226  ),
227  cms.untracked.PSet(
228  name = cms.string('IsoMu24_eta2p1'),
229  xvariable = cms.string('Muon'),
230  nPtBins = cms.int32(20),
231  ptmin = cms.double(0.),
232  ptmax = cms.double(200.),
233  nEtaBins = cms.int32(20),
234  etamin = cms.double(-2.5),
235  etamax = cms.double(2.5),
236  nPhiBins = cms.int32(20),
237  phimin = cms.double(-3.15),
238  phimax = cms.double(3.15),
239  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu24_eta2p1_v*')),
240  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
241  ),
242  cms.untracked.PSet(
243  name = cms.string('Ele24_eta2p1_WPTight_Gsf'),
244  xvariable = cms.string('Electron'),
245  nPtBins = cms.int32(20),
246  ptmin = cms.double(0.),
247  ptmax = cms.double(200.),
248  nEtaBins = cms.int32(20),
249  etamin = cms.double(-2.5),
250  etamax = cms.double(2.5),
251  nPhiBins = cms.int32(20),
252  phimin = cms.double(-3.15),
253  phimax = cms.double(3.15),
254  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleEle24_eta2p1_WPTight_Gsf_v*')),
255  denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
256  )
257  )
258 )
def TriggerSelectionParameters(hltpaths)