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