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_Inclusive = hltTauOfflineMonitor_PFTaus.clone(
120  DQMBaseFolder = "HLT/TAU/Inclusive",
121  Matching = cms.PSet(
122  doMatching = cms.untracked.bool(False),
123  matchFilters = cms.untracked.VPSet(),
124  )
125 )
126 
128  genericTriggerSelectionParameters = cms.PSet(
129  andOr = cms.bool( False ),#specifies the logical combination of the single filters' (L1, HLT and DCS) decisions at top level (True=OR)
130  dbLabel = cms.string("PFTauDQMTrigger"),#specifies the label under which the DB payload is available from the ESSource or Global Tag
131  andOrHlt = cms.bool(True),#specifies the logical combination of the single HLT paths' decisions (True=OR)
132  hltInputTag = cms.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
133  hltPaths = hltpaths,#Lists logical expressions of HLT paths, which should have accepted the event (fallback in case DB unaccessible)
134  errorReplyHlt = cms.bool(False),#specifies the desired return value of the HLT filter and the single HLT path filter in case of certain errors
135  verbosityLevel = cms.uint32(0) #0: complete silence (default), needed for T0 processing;
136  )
137  return genericTriggerSelectionParameters
138 
139 
140 hltTauOfflineMonitor_TagAndProbe = hltTauOfflineMonitor_PFTaus.clone(
141  DQMBaseFolder = "HLT/TAU/TagAndProbe",
142  Matching = cms.PSet(
143  doMatching = cms.untracked.bool(True),
144  matchFilters = cms.untracked.VPSet(
145  cms.untracked.PSet(
146  FilterName = cms.untracked.InputTag("TauRefProducer","PFTaus"),
147  matchObjectID = cms.untracked.int32(15),
148  ),
149  cms.untracked.PSet(
150  FilterName = cms.untracked.InputTag("TauRefProducer","Electrons"),
151  matchObjectID = cms.untracked.int32(11),
152  ),
153  cms.untracked.PSet(
154  FilterName = cms.untracked.InputTag("TauRefProducer","Muons"),
155  matchObjectID = cms.untracked.int32(13),
156  ),
157  cms.untracked.PSet(
158  FilterName = cms.untracked.InputTag("TauRefProducer","MET"),
159  matchObjectID = cms.untracked.int32(0),
160  ),
161  ),
162  ),
163  TagAndProbe = cms.untracked.VPSet(
164  cms.untracked.PSet(
165  name = cms.string('MuTauTemplate'),
166  xvariable = cms.string('Tau'),
167  nPtBins = cms.int32(20),
168  ptmin = cms.double(0.),
169  ptmax = cms.double(200.),
170  nEtaBins = cms.int32(20),
171  etamin = cms.double(-2.5),
172  etamax = cms.double(2.5),
173  nPhiBins = cms.int32(20),
174  phimin = cms.double(-3.15),
175  phimax = cms.double(3.15),
176  numerator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu24_eta2p1_.+PFTau.+')),
177  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
178  ),
179  cms.untracked.PSet(
180  name = cms.string('ETauTemplate'),
181  xvariable = cms.string('Tau'),
182  nPtBins = cms.int32(20),
183  ptmin = cms.double(0.),
184  ptmax = cms.double(200.),
185  nEtaBins = cms.int32(20),
186  etamin = cms.double(-2.5),
187  etamax = cms.double(2.5),
188  nPhiBins = cms.int32(20),
189  phimin = cms.double(-3.15),
190  phimax = cms.double(3.15),
191  numerator = TriggerSelectionParameters(cms.vstring('HLT_Ele.+PFTau.+')),
192  denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
193  ),
194  cms.untracked.PSet(
195  name = cms.string('TauMETTemplate'),
196  xvariable = cms.string('MET'),
197  nPtBins = cms.int32(50),
198  ptmin = cms.double(0.),
199  ptmax = cms.double(500.),
200  nPhiBins = cms.int32(20),
201  phimin = cms.double(-3.15),
202  phimax = cms.double(3.15),
203  numerator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_MET.*')),
204  denominator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_v*'))
205  ),
206  cms.untracked.PSet(
207  name = cms.string('IsoMu20_eta2p1'),
208  xvariable = cms.string('Muon'),
209  nPtBins = cms.int32(20),
210  ptmin = cms.double(0.),
211  ptmax = cms.double(200.),
212  nEtaBins = cms.int32(20),
213  etamin = cms.double(-2.5),
214  etamax = cms.double(2.5),
215  nPhiBins = cms.int32(20),
216  phimin = cms.double(-3.15),
217  phimax = cms.double(3.15),
218  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu20_eta2p1_v*')),
219  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*')),
220  nOfflObjs = cms.untracked.uint32(2)
221  ),
222  cms.untracked.PSet(
223  name = cms.string('IsoMu24_eta2p1'),
224  xvariable = cms.string('Muon'),
225  nPtBins = cms.int32(20),
226  ptmin = cms.double(0.),
227  ptmax = cms.double(200.),
228  nEtaBins = cms.int32(20),
229  etamin = cms.double(-2.5),
230  etamax = cms.double(2.5),
231  nPhiBins = cms.int32(20),
232  phimin = cms.double(-3.15),
233  phimax = cms.double(3.15),
234  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu24_eta2p1_v*')),
235  denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
236  ),
237  cms.untracked.PSet(
238  name = cms.string('Ele24_eta2p1_WPTight_Gsf'),
239  xvariable = cms.string('Electron'),
240  nPtBins = cms.int32(20),
241  ptmin = cms.double(0.),
242  ptmax = cms.double(200.),
243  nEtaBins = cms.int32(20),
244  etamin = cms.double(-2.5),
245  etamax = cms.double(2.5),
246  nPhiBins = cms.int32(20),
247  phimin = cms.double(-3.15),
248  phimax = cms.double(3.15),
249  numerator = TriggerSelectionParameters(cms.vstring('HLT_DoubleEle24_eta2p1_WPTight_Gsf_v*')),
250  denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
251  )
252  )
253 )
def TriggerSelectionParameters(hltpaths)