CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTTauDQMPath.cc
Go to the documentation of this file.
3 
5 
10 
11 #include<cstdio>
12 #include<sstream>
13 #include<algorithm>
14 
15 namespace {
16  // Used as a helper only in this file
17  class HLTPath {
18  public:
19  HLTPath(const std::string& name):
20  name_(name)
21  {}
22 
23  typedef HLTTauDQMPath::FilterIndex FilterIndex;
26  bool> FilterIndexSave;
27 
28  constexpr static size_t kName = HLTTauDQMPath::kName;
29  constexpr static size_t kModuleIndex = HLTTauDQMPath::kModuleIndex;
30  constexpr static size_t kSaveTags = 2;
31 
32  std::vector<FilterIndex> interestingFilters(const HLTConfigProvider& HLTCP, bool doRefAnalysis) {
33  const std::vector<std::string>& moduleLabels = HLTCP.moduleLabels(name_);
34  std::vector<std::string> leptonTauFilters;
35  allInterestingFilters_.clear();
36 
37  // Ignore all "Selector"s, for ref-analysis keep only those with saveTags=True
38  // Also record HLT2(Electron|Muon)(PF)?Tau module names
39  LogTrace("HLTTauDQMOffline") << "Path " << name_ << ", list of all filters (preceded by the module index in the path)";
40  for(std::vector<std::string>::const_iterator iLabel = moduleLabels.begin(); iLabel != moduleLabels.end(); ++iLabel) {
41  if(HLTCP.moduleEDMType(*iLabel) != "EDFilter")
42  continue;
43  const std::string type = HLTCP.moduleType(*iLabel);
44  LogTrace("HLTTauDQMOffline") << " " << std::distance(moduleLabels.begin(), iLabel) << " " << *iLabel << " " << type << " saveTags " << HLTCP.saveTags(*iLabel);
45  if(type.find("Selector") != std::string::npos)
46  continue;
47  if(type == "HLTTriggerTypeFilter" || type == "HLTBool")
48  continue;
49  if(type == "HLT2ElectronPFTau" || type == "HLT2MuonPFTau" || type == "HLT2ElectronTau" || type == "HLT2MuonTau")
50  leptonTauFilters.emplace_back(*iLabel);
51  else if(type.find("Electron") != std::string::npos || type.find("Egamma") != std::string::npos || type.find("Muon") != std::string::npos)
52  continue;
53  allInterestingFilters_.emplace_back(*iLabel, iLabel-moduleLabels.begin(), HLTCP.saveTags(*iLabel));
54  }
55 
56  // Insert the last filters of lepton legs
57  for(const std::string& leptonTauLabel: leptonTauFilters) {
58  const edm::ParameterSet& pset = HLTCP.modulePSet(leptonTauLabel);
59  std::string input1 = pset.getParameter<edm::InputTag>("inputTag1").label();
60  std::string input2 = pset.getParameter<edm::InputTag>("inputTag2").label();
61  unsigned idx1 = HLTCP.moduleIndex(name_, input1);
62  unsigned idx2 = HLTCP.moduleIndex(name_, input2);
63 
64  auto func = [&](const FilterIndexSave& a, unsigned idxb) {
65  return std::get<kModuleIndex>(a) < idxb;
66  };
67  std::vector<FilterIndexSave>::iterator found = std::lower_bound(allInterestingFilters_.begin(), allInterestingFilters_.end(), idx1, func);
68  if(found == allInterestingFilters_.end() || std::get<kModuleIndex>(*found) != idx1)
69  allInterestingFilters_.emplace(found, input1, idx1, HLTCP.saveTags(input1));
70  found = std::lower_bound(allInterestingFilters_.begin(), allInterestingFilters_.end(), idx2, func);
71  if(found == allInterestingFilters_.end() || std::get<kModuleIndex>(*found) != idx2)
72  allInterestingFilters_.emplace(found, input2, idx2, HLTCP.saveTags(input1));
73  }
74 
75  std::vector<FilterIndex> selectedFilters;
76  // For reference-matched case exclude filters with saveTags=False.
77  // However, they are needed a bit later to find the position of the
78  // first L3 tau filter.
79  for(const auto& item: allInterestingFilters_) {
80  if(!doRefAnalysis || (doRefAnalysis && std::get<kSaveTags>(item)))
81  selectedFilters.emplace_back(std::get<kName>(item), std::get<kModuleIndex>(item));
82  }
83 
84  return selectedFilters;
85  }
86 
87  bool isL3TauProducer(const HLTConfigProvider& HLTCP, const std::string& producerLabel) const {
88  const std::string type = HLTCP.moduleType(producerLabel);
89  if(type == "PFRecoTauProducer" || type == "RecoTauPiZeroUnembedder") {
90  LogDebug("HLTTauDQMOffline") << "Found tau producer " << type << " with label " << producerLabel << " from path " << name_;
91  return true;
92  }
93  return false;
94  }
95 
96  bool isL3TauFilter(const HLTConfigProvider& HLTCP, const std::string& filterLabel) const {
97  const edm::ParameterSet& pset = HLTCP.modulePSet(filterLabel);
98  if(pset.exists("inputTag"))
99  return isL3TauProducer(HLTCP, pset.getParameter<edm::InputTag>("inputTag").label());
100  if(pset.exists("inputTag1"))
101  return isL3TauProducer(HLTCP, pset.getParameter<edm::InputTag>("inputTag1").label());
102  if(pset.exists("inputTag2"))
103  return isL3TauProducer(HLTCP, pset.getParameter<edm::InputTag>("inputTag2").label());
104  return false;
105  }
106 
107  size_t firstL3TauFilterIndex(const HLTConfigProvider& HLTCP) const {
108  // Loop over filters and check if a filter uses L3 tau producer
109  // output.
110  for(const auto& filter: allInterestingFilters_) {
111  if(isL3TauFilter(HLTCP, std::get<kName>(filter)))
112  return std::get<kModuleIndex>(filter);
113  }
115  }
116 
117  const std::string& name() const { return name_; }
118 
119  private:
120  std::string name_;
121 
122  std::vector<FilterIndexSave> allInterestingFilters_;
123  };
124 
125  int getParameterSafe(const HLTConfigProvider& HLTCP, const std::string& filterName, const std::string& parameterName) {
126  const edm::ParameterSet& pset = HLTCP.modulePSet(filterName);
127  if(pset.existsAs<int>(parameterName))
128  return pset.getParameter<int>(parameterName);
129  else {
130  edm::LogWarning("HLTTauDQMOfflineSource") << "No parameter '" << parameterName << "' in configuration of filter " << filterName << " pset " << pset.dump() << std::endl;
131  return 0;
132  }
133  }
134 
135  struct TauLeptonMultiplicity {
136  TauLeptonMultiplicity(): tau(0), electron(0), muon(0) {}
137  int tau;
138  int electron;
139  int muon;
140  };
141  TauLeptonMultiplicity inferTauLeptonMultiplicity(const HLTConfigProvider& HLTCP, const std::string& filterName, const std::string& moduleType, const std::string& pathName) {
142  TauLeptonMultiplicity n;
143 
144  if(moduleType == "HLTLevel1GTSeed") {
145  if(filterName.find("SingleMu") != std::string::npos) {
146  n.muon = 1;
147  }
148  else if(filterName.find("SingleEG") != std::string::npos) {
149  n.electron = 1;
150  }
151  else if(filterName.find("DoubleTau") != std::string::npos) {
152  n.tau = 2;
153  }
154  }
155  else if(moduleType == "HLT1CaloJet" || moduleType == "HLT1PFJet") {
156  //const edm::ParameterSet& pset = HLTCP.modulePSet(filterName);
157  //pset.getParameter<int>("triggerType") == trigger::TriggerTau) {
158  if(getParameterSafe(HLTCP, filterName, "triggerType") == trigger::TriggerTau) {
159  //n.tau = pset.getParameter<int>("MinN");
160  n.tau = getParameterSafe(HLTCP, filterName, "MinN");
161  }
162  }
163  else if(moduleType == "HLTCaloJetTag") {
164  //const edm::ParameterSet& pset = HLTCP.modulePSet(filterName);
165  //if(pset.getParameter<int>("triggerType") == trigger::TriggerTau) {
166  if(getParameterSafe(HLTCP, filterName, "TriggerType") == trigger::TriggerTau) {
167  //n.tau = pset.getParameter<int>("MinJets");
168  n.tau = getParameterSafe(HLTCP, filterName, "MinJets");
169  }
170  }
171  else if(moduleType == "HLT1Tau" || moduleType == "HLT1PFTau") {
172  //n.tau = HLTCP.modulePSet(filterName).getParameter<int>("MinN");
173  n.tau = getParameterSafe(HLTCP, filterName, "MinN");
174  }
175  else if(moduleType == "HLTPFTauPairDzMatchFilter") {
176  n.tau = 2;
177  }
178  else if(moduleType == "HLTElectronGenericFilter") {
179  //n.electron = HLTCP.modulePSet(filterName).getParameter<int>("ncandcut");
180  n.electron = getParameterSafe(HLTCP, filterName, "ncandcut");
181  }
182  else if(moduleType == "HLTMuonIsoFilter" || moduleType == "HLTMuonL3PreFilter") {
183  n.muon = HLTCP.modulePSet(filterName).getParameter<int>("MinN");
184  }
185  else if(moduleType == "HLT2ElectronTau" || moduleType == "HLT2ElectronPFTau") {
186  //int num = HLTCP.modulePSet(filterName).getParameter<int>("MinN");
187  int num = getParameterSafe(HLTCP, filterName, "MinN");
188  n.tau = num;
189  n.electron = num;
190  }
191  else if(moduleType == "HLT2MuonTau" || moduleType == "HLT2MuonPFTau") {
192  //int num = HLTCP.modulePSet(filterName).getParameter<int>("MinN");
193  int num = getParameterSafe(HLTCP, filterName, "MinN");
194  n.tau = num;
195  n.muon = num;
196  }
197  else if(moduleType == "HLTPrescaler" || moduleType == "HLT1CaloMET") {
198  // ignore
199  }
200  else {
201  edm::LogWarning("HLTTauDQMOfflineSource") << "HLTTauDQMPath.cc, inferTauLeptonMultiplicity(): module type '" << moduleType << "' not recognized, filter '" << filterName << "' in path '" << pathName << "' will be ignored for offline matching." << std::endl;
202  }
203 
204  return n;
205  }
206 
207  template <typename T1, typename T2>
208  bool deltaRmatch(const T1& obj, const std::vector<T2>& refColl, double dR, std::vector<bool>& refMask, std::vector<T2>& matchedRefs) {
209  double minDr = 2*dR;
210  size_t found = refColl.size();
211  //std::cout << "Matching with DR " << dR << ", obj eta " << obj.eta() << " phi " << obj.phi() << std::endl;
212  for(size_t i=0; i<refColl.size(); ++i) {
213  if(!refMask[i])
214  continue;
215 
216  double dr = reco::deltaR(obj, refColl[i]);
217  //std::cout << " " << i << " ref eta " << refColl[i].eta() << " phi " << refColl[i].phi() << " dr " << dr << std::endl;
218  if(dr < minDr) {
219  minDr = dr;
220  found = i;
221  }
222  }
223  if(found < refColl.size()) {
224  matchedRefs.emplace_back(refColl[found]);
225  refMask[found] = false;
226  return true;
227  }
228  return false;
229  }
230 }
231 
232 
233 HLTTauDQMPath::HLTTauDQMPath(const std::string& pathName, const std::string& hltProcess, bool doRefAnalysis, const HLTConfigProvider& HLTCP):
234  hltProcess_(hltProcess),
235  doRefAnalysis_(doRefAnalysis),
236  pathName_(pathName),
237  pathIndex_(HLTCP.triggerIndex(pathName_)),
238  lastFilterBeforeL2TauIndex_(0), lastL2TauFilterIndex_(0),
239  lastFilterBeforeL3TauIndex_(0), lastL3TauFilterIndex_(0),
240  isFirstL1Seed_(false),
241  isValid_(false)
242 {
243 #ifdef EDM_ML_DEBUG
244  std::stringstream ss;
245  ss << "HLTTauDQMPath: " << pathName_ << "\n";
246 #endif
247 
248  // Get the filters
249  HLTPath thePath(pathName_);
250  filterIndices_ = thePath.interestingFilters(HLTCP, doRefAnalysis_);
251  if(filterIndices_.empty()) {
252  edm::LogInfo("HLTTauDQMOffline") << "HLTTauDQMPath: " << pathName_ << " no interesting filters found";
253  return;
254  }
255  isFirstL1Seed_ = HLTCP.moduleType(std::get<kName>(filterIndices_[0])) == "HLTLevel1GTSeed";
256 #ifdef EDM_ML_DEBUG
257  ss << " Interesting filters (preceded by the module index in the path)";
258 #endif
259  // Set the filter multiplicity counts
260  filterTauN_.clear();
261  filterElectronN_.clear();
262  filterMuonN_.clear();
263  filterTauN_.reserve(filterIndices_.size());
264  filterElectronN_.reserve(filterIndices_.size());
265  filterMuonN_.reserve(filterIndices_.size());
266  for(size_t i=0; i<filterIndices_.size(); ++i) {
267  const std::string& filterName = std::get<kName>(filterIndices_[i]);
268  const std::string& moduleType = HLTCP.moduleType(filterName);
269 
270  TauLeptonMultiplicity n = inferTauLeptonMultiplicity(HLTCP, filterName, moduleType, pathName_);
271  filterTauN_.push_back(n.tau);
272  filterElectronN_.push_back(n.electron);
273  filterMuonN_.push_back(n.muon);
274 
275 #ifdef EDM_ML_DEBUG
276  ss << "\n " << std::get<kModuleIndex>(filterIndices_[i])
277  << " " << filterName
278  << " " << moduleType
279  << " ntau " << n.tau
280  << " nele " << n.electron
281  << " nmu " << n.muon;
282 #endif
283 
284  }
285 #ifdef EDM_ML_DEBUG
286  LogDebug("HLTTauDQMOffline") << ss.str();
287 #endif
288 
289 
290  // Find the position of tau producer, use filters with taus before
291  // it for L2 tau efficiency, and filters with taus after it for L3
292  // tau efficiency. Here we have to take into account that for
293  // reference-matched case filterIndices_ contains only those filters
294  // that have saveTags=True, while for searching the first L3 tau
295  // filter we have to consider all filters
296  const size_t firstL3TauFilterIndex = thePath.firstL3TauFilterIndex(HLTCP);
297  if(firstL3TauFilterIndex == kInvalidIndex) {
298  edm::LogInfo("HLTTauDQMOffline") << "Did not find a filter with L3 tau producer as input in path " << pathName_;
299  }
300 
305  size_t i = 0;
306  for(; i<filtersSize() && getFilterIndex(i) < firstL3TauFilterIndex; ++i) {
309  if(getFilterNTaus(i) > 0 && getFilterNElectrons(i) == 0 && getFilterNMuons(i) == 0)
311  }
313  for(; i<filtersSize(); ++i) {
316  if(getFilterNTaus(i) > 0 && getFilterNElectrons(i) == 0 && getFilterNMuons(i) == 0)
318  }
319  LogDebug("HLTTauDQMOffline") << "lastFilterBeforeL2 " << lastFilterBeforeL2TauIndex_
320  << " lastL2TauFilter " << lastL2TauFilterIndex_
321  << " lastFilterBeforeL3 " << lastFilterBeforeL3TauIndex_
322  << " lastL3TauFilter " << lastL3TauFilterIndex_;
323  isValid_ = true;
324 }
325 
327 
328 
330  return triggerResults.accept(pathIndex_);
331 }
332 
334  if(fired(triggerResults)) {
335  //std::cout << "Event passed" << std::endl;
336  return filterIndices_.size()-1;
337  }
338 
339  unsigned int firstFailedFilter = triggerResults.index(pathIndex_);
340  int lastPassedFilter = -1;
341  for(size_t i=0; i<filterIndices_.size(); ++i) {
342  if(std::get<kModuleIndex>(filterIndices_[i]) < firstFailedFilter) {
343  lastPassedFilter = i;
344  }
345  else {
346  //std::cout << "Decision-making filter " << firstFailedFilter << " this " << std::get<kModuleIndex>(filterIndices_[i]) << std::endl;
347  break;
348  }
349  }
350  return lastPassedFilter;
351 }
352 
353 void HLTTauDQMPath::getFilterObjects(const trigger::TriggerEvent& triggerEvent, size_t i, std::vector<Object>& retval) const {
354  trigger::size_type filterIndex = triggerEvent.filterIndex(edm::InputTag(getFilterName(i), "", hltProcess_));
355  if(filterIndex != triggerEvent.sizeFilters()) {
356  const trigger::Keys& keys = triggerEvent.filterKeys(filterIndex);
357  const trigger::Vids& ids = triggerEvent.filterIds(filterIndex);
358  const trigger::TriggerObjectCollection& triggerObjects = triggerEvent.getObjects();
359  //std::cout << "Filter name " << getFilterName(i) << std::endl;
360  for(size_t i=0; i<keys.size(); ++i) {
361  const trigger::TriggerObject& object = triggerObjects[keys[i]];
362  retval.emplace_back(Object{object, ids[i]});
363  //std::cout << " object id " << object.id() << std::endl;
364  }
365  }
366 }
367 
368 bool HLTTauDQMPath::offlineMatching(size_t i, const std::vector<Object>& triggerObjects, const HLTTauDQMOfflineObjects& offlineObjects, double dR, std::vector<Object>& matchedTriggerObjects, HLTTauDQMOfflineObjects& matchedOfflineObjects) const {
369  bool isL1 = (i==0 && isFirstL1Seed_);
370  std::vector<bool> offlineMask;
371  if(filterTauN_[i] > 0) {
372  int matchedObjects = 0;
373  offlineMask.resize(offlineObjects.taus.size());
374  std::fill(offlineMask.begin(), offlineMask.end(), true);
375  for(const Object& trgObj: triggerObjects) {
376  //std::cout << "trigger object id " << trgObj.id << std::endl;
377  if(! ((isL1 && (trgObj.id == trigger::TriggerL1TauJet || trgObj.id == trigger::TriggerL1CenJet))
378  || trgObj.id == trigger::TriggerTau) )
379  continue;
380  if(deltaRmatch(trgObj.object, offlineObjects.taus, dR, offlineMask, matchedOfflineObjects.taus)) {
381  ++matchedObjects;
382  matchedTriggerObjects.emplace_back(trgObj);
383  }
384  }
385  if(matchedObjects < filterTauN_[i])
386  return false;
387  }
388  if(filterElectronN_[i] > 0) {
389  int matchedObjects = 0;
390  offlineMask.resize(offlineObjects.electrons.size());
391  std::fill(offlineMask.begin(), offlineMask.end(), true);
392  for(const Object& trgObj: triggerObjects) {
393  //std::cout << "trigger object id " << trgObj.id << std::endl;
394  if(! ((isL1 && (trgObj.id == trigger::TriggerL1NoIsoEG || trgObj.id == trigger::TriggerL1IsoEG))
395  || trgObj.id == trigger::TriggerElectron) )
396  continue;
397  if(deltaRmatch(trgObj.object, offlineObjects.electrons, dR, offlineMask, matchedOfflineObjects.electrons)) {
398  ++matchedObjects;
399  matchedTriggerObjects.emplace_back(trgObj);
400  }
401  }
402  if(matchedObjects < filterElectronN_[i])
403  return false;
404  }
405  if(filterMuonN_[i] > 0) {
406  int matchedObjects = 0;
407  offlineMask.resize(offlineObjects.muons.size());
408  std::fill(offlineMask.begin(), offlineMask.end(), true);
409  for(const Object& trgObj: triggerObjects) {
410  //std::cout << "trigger object id " << trgObj.id << std::endl;
411  if(! ((isL1 && trgObj.id == trigger::TriggerL1Mu)
412  || trgObj.id == trigger::TriggerMuon) )
413  continue;
414  if(deltaRmatch(trgObj.object, offlineObjects.muons, dR, offlineMask, matchedOfflineObjects.muons)) {
415  ++matchedObjects;
416  matchedTriggerObjects.emplace_back(trgObj);
417  }
418  }
419  if(matchedObjects < filterMuonN_[i])
420  return false;
421  }
422  // Sort offline objects by pt
423  std::sort(matchedOfflineObjects.taus.begin(), matchedOfflineObjects.taus.end(), [](const LV& a, const LV&b) { return a.pt() > b.pt();});
424  std::sort(matchedOfflineObjects.electrons.begin(), matchedOfflineObjects.electrons.end(), [](const LV& a, const LV&b) { return a.pt() > b.pt();});
425  std::sort(matchedOfflineObjects.muons.begin(), matchedOfflineObjects.muons.end(), [](const LV& a, const LV&b) { return a.pt() > b.pt();});
426 
427  return true;
428 }
429 
430 bool HLTTauDQMPath::goodOfflineEvent(size_t i, const HLTTauDQMOfflineObjects& offlineObjects) const {
431  return (static_cast<size_t>(getFilterNTaus(i)) <= offlineObjects.taus.size() &&
432  static_cast<size_t>(getFilterNElectrons(i)) <= offlineObjects.electrons.size() &&
433  static_cast<size_t>(getFilterNMuons(i)) <= offlineObjects.muons.size());
434 }
#define LogDebug(id)
type
Definition: HCALResponse.h:21
T getParameter(std::string const &) const
const std::string pathName_
Definition: HLTTauDQMPath.h:86
int i
Definition: DBlmapReader.cc:9
std::tuple< std::string, size_t > FilterIndex
Definition: HLTTauDQMPath.h:26
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
bool isValid_(value_type const &hash)
Definition: Hash.cc:72
bool goodOfflineEvent(size_t i, const HLTTauDQMOfflineObjects &offlineObjects) const
string fill
Definition: lumiContext.py:319
const std::string moduleType(const std::string &module) const
C++ class name of module.
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:184
std::vector< LV > electrons
The single EDProduct to be saved for each event (AOD case)
Definition: TriggerEvent.h:25
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:135
std::vector< LV > taus
std::string dump(unsigned int indent=0) const
enum start value shifted to 81 so as to avoid clashes with PDG codes
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:111
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:123
bool exists(std::string const &parameterName) const
checks if a parameter exists
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
int lastPassedFilter(const edm::TriggerResults &triggerResults) const
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
int getFilterNElectrons(size_t i) const
Definition: HLTTauDQMPath.h:54
int getFilterNTaus(size_t i) const
Definition: HLTTauDQMPath.h:53
uint16_t size_type
#define input2
Definition: AMPTWrapper.h:149
const std::string hltProcess_
Definition: HLTTauDQMPath.h:79
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:22
const Vids & filterIds(trigger::size_type index) const
Definition: TriggerEvent.h:110
void getFilterObjects(const trigger::TriggerEvent &triggerEvent, size_t i, std::vector< Object > &retval) const
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 to size-1)
int getFilterNMuons(size_t i) const
Definition: HLTTauDQMPath.h:55
const unsigned int pathIndex_
Definition: HLTTauDQMPath.h:87
size_t lastFilterBeforeL2TauIndex_
Definition: HLTTauDQMPath.h:88
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:98
static constexpr size_t kName
Definition: HLTTauDQMPath.h:28
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
size_t filtersSize() const
Definition: HLTTauDQMPath.h:51
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
#define input1
Definition: AMPTWrapper.h:129
size_t lastFilterBeforeL3TauIndex_
Definition: HLTTauDQMPath.h:90
static std::string const triggerResults
Definition: EdmProvDump.cc:41
#define LogTrace(id)
bool offlineMatching(size_t i, const std::vector< Object > &triggerObjects, const HLTTauDQMOfflineObjects &offlineObjects, double dR, std::vector< Object > &matchedTriggerObjects, HLTTauDQMOfflineObjects &matchedOfflineObjects) const
std::vector< int > filterTauN_
Definition: HLTTauDQMPath.h:83
math::XYZTLorentzVectorD LV
Definition: HLTTauDQMPath.h:24
std::vector< FilterIndex > filterIndices_
Definition: HLTTauDQMPath.h:82
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:81
size_t getFilterIndex(size_t i) const
Definition: HLTTauDQMPath.h:68
const bool doRefAnalysis_
Definition: HLTTauDQMPath.h:80
std::vector< size_type > Keys
const std::string & getFilterName(size_t i) const
Definition: HLTTauDQMPath.h:52
size_t lastL3TauFilterIndex_
Definition: HLTTauDQMPath.h:91
double b
Definition: hdecay.h:120
bool fired(const edm::TriggerResults &triggerResults) const
list object
Definition: dbtoconf.py:77
std::string const & label() const
Definition: InputTag.h:42
size_t lastL2TauFilterIndex_
Definition: HLTTauDQMPath.h:89
HLTTauDQMPath(const std::string &pathName, const std::string &hltProcess, bool doRefAnalysis, const HLTConfigProvider &HLTCP)
double a
Definition: hdecay.h:121
std::vector< int > filterElectronN_
Definition: HLTTauDQMPath.h:84
volatile std::atomic< bool > shutdown_flag false
std::vector< int > filterMuonN_
Definition: HLTTauDQMPath.h:85
static constexpr size_t kModuleIndex
Definition: HLTTauDQMPath.h:29
std::vector< int > Vids
#define constexpr
std::vector< LV > muons
static constexpr size_t kInvalidIndex
Definition: HLTTauDQMPath.h:30