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