CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HLTMuonPlotter Class Reference

#include <HLTMuonPlotter.h>

Classes

struct  matchesByDescendingPt
 
struct  MatchStruct
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
void beginRun (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)
 
 HLTMuonPlotter (const edm::ParameterSet &, std::string, const std::vector< std::string > &, const std::vector< std::string > &, const boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > &)
 

Static Public Member Functions

static boost::tuple
< edm::EDGetTokenT
< trigger::TriggerEventWithRefs >
, edm::EDGetTokenT
< reco::GenParticleCollection >
, edm::EDGetTokenT
< reco::MuonCollection > > 
getTokens (const edm::ParameterSet &, edm::ConsumesCollector &&)
 

Private Member Functions

void analyzePath (const edm::Event &, const std::string &, const std::string &, const std::vector< MatchStruct > &, edm::Handle< trigger::TriggerEventWithRefs >)
 
void bookHist (DQMStore::IBooker &, std::string, std::string, std::string, std::string)
 
void findMatches (std::vector< MatchStruct > &, const std::vector< l1extra::L1MuonParticleRef > &, const std::vector< std::vector< const reco::RecoChargedCandidate * > > &)
 

Private Attributes

double cutMaxEta_
 
double cutMinPt_
 
unsigned int cutMotherId_
 
std::vector< double > cutsDr_
 
std::map< std::string,
MonitorElement * > 
elements_
 
std::string genMuonCut_
 
StringCutObjectSelector
< reco::GenParticle > * 
genMuonSelector_
 
edm::EDGetTokenT
< reco::GenParticleCollection
genParticleLabel_
 
std::string hltPath_
 
std::string hltProcessName_
 
edm::EDGetTokenT
< trigger::TriggerEventWithRefs
hltTriggerSummaryRAW_
 
L1MuonMatcherAlgo l1Matcher_
 
std::vector< std::string > moduleLabels_
 
std::vector< double > parametersEta_
 
std::vector< double > parametersPhi_
 
std::vector< double > parametersTurnOn_
 
std::string recMuonCut_
 
edm::EDGetTokenT
< reco::MuonCollection
recMuonLabel_
 
StringCutObjectSelector
< reco::Muon > * 
recMuonSelector_
 
std::vector< std::string > stepLabels_
 

Detailed Description

Generate histograms for muon trigger efficiencies Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance

Author
J. Klukas, M. Vander Donckt, J. Alcaraz

Definition at line 58 of file HLTMuonPlotter.h.

Constructor & Destructor Documentation

HLTMuonPlotter::HLTMuonPlotter ( const edm::ParameterSet ,
std::string  ,
const std::vector< std::string > &  ,
const std::vector< std::string > &  ,
const boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > &   
)

Definition at line 36 of file HLTMuonPlotter.cc.

References cutsDr_, genMuonCut_, genMuonSelector_, genParticleLabel_, edm::ParameterSet::getParameter(), hltPath_, hltProcessName_, hltTriggerSummaryRAW_, moduleLabels_, parametersEta_, parametersPhi_, parametersTurnOn_, recMuonCut_, recMuonLabel_, recMuonSelector_, and stepLabels_.

43  :
44 
45  l1Matcher_(pset)
46 {
47 
48  hltPath_ = hltPath;
49  moduleLabels_ = moduleLabels;
50  stepLabels_ = stepLabels;
51  hltProcessName_ = pset.getParameter<string>("hltProcessName");
52 
53  cutsDr_ = pset.getParameter< vector<double> >("cutsDr" );
54 
55  parametersEta_ = pset.getParameter< vector<double> >("parametersEta");
56  parametersPhi_ = pset.getParameter< vector<double> >("parametersPhi");
57  parametersTurnOn_ = pset.getParameter< vector<double> >("parametersTurnOn");
58 
59  genMuonCut_ = pset.getParameter<string>("genMuonCut");
60  recMuonCut_ = pset.getParameter<string>("recMuonCut");
61 
62  genMuonSelector_ = 0;
63  recMuonSelector_ = 0;
64 
65  //set tokens
66  hltTriggerSummaryRAW_ = tokens.get<0>();
67  genParticleLabel_ = tokens.get<1>();
68  recMuonLabel_ = tokens.get<2>();
69 
70 }
std::string hltPath_
std::vector< double > parametersEta_
L1MuonMatcherAlgo l1Matcher_
std::string genMuonCut_
std::vector< std::string > moduleLabels_
std::string recMuonCut_
StringCutObjectSelector< reco::Muon > * recMuonSelector_
std::vector< double > cutsDr_
edm::EDGetTokenT< reco::MuonCollection > recMuonLabel_
StringCutObjectSelector< reco::GenParticle > * genMuonSelector_
std::vector< std::string > stepLabels_
std::vector< double > parametersPhi_
std::string hltProcessName_
edm::EDGetTokenT< reco::GenParticleCollection > genParticleLabel_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > hltTriggerSummaryRAW_
std::vector< double > parametersTurnOn_

Member Function Documentation

void HLTMuonPlotter::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 137 of file HLTMuonPlotter.cc.

References prof2calltree::count, cutMaxEta_, cutMinPt_, elements_, eta(), edm::HandleBase::failedToGet(), HcalObjRepresent::Fill(), spr::find(), findMatches(), genMuonCut_, genMuonSelector_, genParticleLabel_, genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByToken(), hltPath_, hltProcessName_, hltTriggerSummaryRAW_, i, edm::HandleBase::isValid(), j, testEve_cfg::level, LogTrace, moduleLabels_, phi, RecoTauCleanerPlugins::pt, recMuonCut_, recMuonLabel_, recMuonSelector_, findQualityFiles::size, python.multivaluedict::sort(), source, relval_parameters_module::step, stepLabels_, GlobalPosition_Frontier_DevDB_cff::tag, trigger::TriggerL1Mu, and trigger::TriggerMuon.

138 {
139 
140  static int eventNumber = 0;
141  eventNumber++;
142  LogTrace("HLTMuonVal") << "In HLTMuonPlotter::analyze, "
143  << "Event: " << eventNumber;
144 
145  // cout << hltPath_ << endl;
146  // for (size_t i = 0; i < moduleLabels_.size(); i++)
147  // cout << " " << moduleLabels_[i] << endl;
148 
149  Handle< TriggerEventWithRefs> rawTriggerEvent;
150  Handle< MuonCollection> recMuons;
152 
153  iEvent.getByToken(hltTriggerSummaryRAW_, rawTriggerEvent);
154  if (rawTriggerEvent.failedToGet())
155  {LogError("HLTMuonVal") << "No trigger summary found"; return;}
156  iEvent.getByToken(recMuonLabel_, recMuons);
157  iEvent.getByToken(genParticleLabel_, genParticles );
158 
159  vector<string> sources;
160  if (genParticles.isValid()) sources.push_back("gen");
161  if ( recMuons.isValid()) sources.push_back("rec");
162 
163  for (size_t sourceNo = 0; sourceNo < sources.size(); sourceNo++) {
164 
165  string source = sources[sourceNo];
166 
167  // If this is the first event, initialize selectors
172 
173  // Make each good gen/rec muon into the base cand for a MatchStruct
174  vector<MatchStruct> matches;
175  if (source == "gen" && genParticles.isValid())
176  for (size_t i = 0; i < genParticles->size(); i++)
177  if ((*genMuonSelector_)(genParticles->at(i)))
178  matches.push_back(MatchStruct(& genParticles->at(i)));
179  if (source == "rec" && recMuons.isValid())
180  for (size_t i = 0; i < recMuons->size(); i++)
181  if ((*recMuonSelector_)(recMuons->at(i)))
182  matches.push_back(MatchStruct(& recMuons->at(i)));
183 
184  // Sort the MatchStructs by pT for later filling of turn-on curve
185  sort(matches.begin(), matches.end(), matchesByDescendingPt());
186 
187  const bool isDoubleMuonPath = (hltPath_.find("Double") != string::npos);
188  const size_t nFilters = moduleLabels_.size();
189  const size_t nSteps = stepLabels_.size();
190  const size_t nStepsHlt = nSteps - 2;
191  const int nObjectsToPassPath = (isDoubleMuonPath) ? 2 : 1;
192  vector< L1MuonParticleRef > candsL1;
193  vector< vector< RecoChargedCandidateRef > > refsHlt(nStepsHlt);
194  vector< vector< const RecoChargedCandidate * > > candsHlt(nStepsHlt);
195 
196  for (size_t i = 0; i < nFilters; i++) {
197  const int hltStep = i - 1;
199  size_t iFilter = rawTriggerEvent->filterIndex(tag);
200  if (iFilter < rawTriggerEvent->size()) {
201  if (i == 0)
202  rawTriggerEvent->getObjects(iFilter, TriggerL1Mu, candsL1);
203  else
204  rawTriggerEvent->getObjects(iFilter, TriggerMuon,
205  refsHlt[hltStep]);
206  }
207  else LogTrace("HLTMuonVal") << "No collection with label " << tag;
208  }
209  for (size_t i = 0; i < nStepsHlt; i++)
210  for (size_t j = 0; j < refsHlt[i].size(); j++)
211  if (refsHlt[i][j].isAvailable()) {
212  candsHlt[i].push_back(& * refsHlt[i][j]);
213  } else {
214  LogWarning("HLTMuonPlotter")
215  << "Ref refsHlt[i][j]: product not available "
216  << i << " " << j;
217  }
218 
219  // Add trigger objects to the MatchStructs
220  findMatches(matches, candsL1, candsHlt);
221 
222  vector<size_t> matchesInEtaRange;
223  vector<bool> hasMatch(matches.size(), true);
224 
225  for (size_t step = 0; step < nSteps; step++) {
226 
227  const size_t hltStep = (step >= 2) ? step - 2 : 0;
228  size_t level = 0;
229  if (stepLabels_[step].find("L3") != string::npos) level = 3;
230  else if (stepLabels_[step].find("L2") != string::npos) level = 2;
231  else if (stepLabels_[step].find("L1") != string::npos) level = 1;
232 
233  for (size_t j = 0; j < matches.size(); j++) {
234  if (level == 0) {
235  if (fabs(matches[j].candBase->eta()) < cutMaxEta_)
236  matchesInEtaRange.push_back(j);
237  }
238  else if (level == 1) {
239  if (matches[j].candL1 == 0)
240  hasMatch[j] = false;
241  }
242  else if (level >= 2) {
243  if (matches[j].candHlt[hltStep] == 0)
244  hasMatch[j] = false;
245  else if (!hasMatch[j]) {
246  LogTrace("HLTMuonVal") << "Match found for HLT step " << hltStep
247  << " of " << nStepsHlt
248  << " without previous match!";
249  break;
250  }
251  }
252  }
253 
254  if (std::count(hasMatch.begin(), hasMatch.end(), true) <
255  nObjectsToPassPath)
256  break;
257 
258  string pre = source + "Pass";
259  string post = "_" + stepLabels_[step];
260 
261  for (size_t j = 0; j < matches.size(); j++) {
262  float pt = matches[j].candBase->pt();
263  float eta = matches[j].candBase->eta();
264  float phi = matches[j].candBase->phi();
265  if (hasMatch[j]) {
266  if (matchesInEtaRange.size() >= 1 && j == matchesInEtaRange[0])
267  elements_[pre + "MaxPt1" + post]->Fill(pt);
268  if (matchesInEtaRange.size() >= 2 && j == matchesInEtaRange[1])
269  elements_[pre + "MaxPt2" + post]->Fill(pt);
270  if (pt > cutMinPt_) {
271  elements_[pre + "Eta" + post]->Fill(eta);
272  if (fabs(eta) < cutMaxEta_)
273  elements_[pre + "Phi" + post]->Fill(phi);
274  }
275  }
276  }
277 
278  }
279 
280 
281 
282  } // End loop over sources
283 
284 }
int i
Definition: DBlmapReader.cc:9
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
enum start value shifted to 81 so as to avoid clashes with PDG codes
std::string hltPath_
T eta() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::string genMuonCut_
std::vector< std::string > moduleLabels_
std::string recMuonCut_
StringCutObjectSelector< reco::Muon > * recMuonSelector_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::EDGetTokenT< reco::MuonCollection > recMuonLabel_
int j
Definition: DBlmapReader.cc:9
bool isValid() const
Definition: HandleBase.h:76
StringCutObjectSelector< reco::GenParticle > * genMuonSelector_
#define LogTrace(id)
std::vector< std::string > stepLabels_
bool failedToGet() const
Definition: HandleBase.h:80
void findMatches(std::vector< MatchStruct > &, const std::vector< l1extra::L1MuonParticleRef > &, const std::vector< std::vector< const reco::RecoChargedCandidate * > > &)
Helper structure to order MatchStruct.
Definition: MatchStruct.cc:66
tuple level
Definition: testEve_cfg.py:34
std::map< std::string, MonitorElement * > elements_
std::string hltProcessName_
edm::EDGetTokenT< reco::GenParticleCollection > genParticleLabel_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > hltTriggerSummaryRAW_
static std::string const source
Definition: EdmProvDump.cc:43
tuple size
Write out results.
Definition: DDAxes.h:10
void HLTMuonPlotter::analyzePath ( const edm::Event ,
const std::string &  ,
const std::string &  ,
const std::vector< MatchStruct > &  ,
edm::Handle< trigger::TriggerEventWithRefs  
)
private
void HLTMuonPlotter::beginJob ( void  )

Definition at line 75 of file HLTMuonPlotter.cc.

76 {
77 
78 }
void HLTMuonPlotter::beginRun ( DQMStore::IBooker iBooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)

Definition at line 83 of file HLTMuonPlotter.cc.

References DQMStore::IBooker::bookFloat(), bookHist(), cutMaxEta_, cutMinPt_, elements_, hltPath_, i, L1MuonMatcherAlgo::init(), j, l1Matcher_, convertSQLiteXML::runNumber, DQMStore::IBooker::setCurrentFolder(), source, stepLabels_, and dtDQMClient_cfg::threshold.

85 {
86 
87  static int runNumber = 0;
88  runNumber++;
89 
90  l1Matcher_.init(iSetup);
91 
92  cutMaxEta_ = 2.4;
93  if (hltPath_.find("eta2p1") != string::npos)
94  cutMaxEta_ = 2.1;
95 
96  // Choose a pT cut for gen/rec muons based on the pT cut in the hltPath_
97  unsigned int threshold = 0;
98  TPRegexp ptRegexp("Mu([0-9]+)");
99  TObjArray * regexArray = ptRegexp.MatchS(hltPath_);
100  if (regexArray->GetEntriesFast() == 2) {
101  threshold = atoi(((TObjString *)regexArray->At(1))->GetString());
102  }
103  delete regexArray;
104  // We select a whole number min pT cut slightly above the hltPath_'s final
105  // pt threshold, then subtract a bit to let through particle gun muons with
106  // exact integer pT:
107  cutMinPt_ = ceil(threshold * 1.1) - 0.01;
108  if (cutMinPt_ < 0.) cutMinPt_ = 0.;
109 
110  string baseDir = "HLT/Muon/Distributions/";
111  iBooker.setCurrentFolder(baseDir + hltPath_);
112 
113  vector<string> sources(2);
114  sources[0] = "gen";
115  sources[1] = "rec";
116 
117  elements_["CutMinPt" ] = iBooker.bookFloat("CutMinPt" );
118  elements_["CutMaxEta"] = iBooker.bookFloat("CutMaxEta");
119  elements_["CutMinPt" ]->Fill(cutMinPt_);
120  elements_["CutMaxEta"]->Fill(cutMaxEta_);
121 
122  for (size_t i = 0; i < sources.size(); i++) {
123  string source = sources[i];
124  for (size_t j = 0; j < stepLabels_.size(); j++) {
125  bookHist(iBooker, hltPath_, stepLabels_[j], source, "Eta");
126  bookHist(iBooker, hltPath_, stepLabels_[j], source, "Phi");
127  bookHist(iBooker, hltPath_, stepLabels_[j], source, "MaxPt1");
128  bookHist(iBooker, hltPath_, stepLabels_[j], source, "MaxPt2");
129  }
130  }
131 
132 }
int i
Definition: DBlmapReader.cc:9
void init(const edm::EventSetup &iSetup)
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators...
std::string hltPath_
L1MuonMatcherAlgo l1Matcher_
int j
Definition: DBlmapReader.cc:9
std::vector< std::string > stepLabels_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
void bookHist(DQMStore::IBooker &, std::string, std::string, std::string, std::string)
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:107
std::map< std::string, MonitorElement * > elements_
static std::string const source
Definition: EdmProvDump.cc:43
void HLTMuonPlotter::bookHist ( DQMStore::IBooker ,
std::string  ,
std::string  ,
std::string  ,
std::string   
)
private

Definition at line 394 of file HLTMuonPlotter.cc.

References DQMStore::IBooker::book1D(), prof2calltree::edges, elements_, h, i, diffTwoXMLs::label, max(), bookConverter::min, mergeVDriftHistosByStation::name, parametersEta_, parametersPhi_, parametersTurnOn_, source, and indexGen::title.

Referenced by beginRun().

397 {
398 
399  string sourceUpper = source;
400  sourceUpper[0] = toupper(sourceUpper[0]);
401  string name = source + "Pass" + type + "_" + label;
402  TH1F * h;
403 
404  if (type.find("MaxPt") != string::npos) {
405  string desc = (type == "MaxPt1") ? "Leading" : "Next-to-Leading";
406  string title = "pT of " + desc + " " + sourceUpper + " Muon "+
407  "matched to " + label;
408  const size_t nBins = parametersTurnOn_.size() - 1;
409  float * edges = new float[nBins + 1];
410  for (size_t i = 0; i < nBins + 1; i++) edges[i] = parametersTurnOn_[i];
411  h = new TH1F(name.c_str(), title.c_str(), nBins, edges);
412  }
413 
414  else {
415  string symbol = (type == "Eta") ? "#eta" : "#phi";
416  string title = symbol + " of " + sourceUpper + " Muons " +
417  "matched to " + label;
418  vector<double> params = (type == "Eta") ? parametersEta_ : parametersPhi_;
419  int nBins = (int)params[0];
420  double min = params[1];
421  double max = params[2];
422  h = new TH1F(name.c_str(), title.c_str(), nBins, min, max);
423  }
424 
425  h->Sumw2();
426  elements_[name] = iBooker.book1D(name, h);
427  delete h;
428 
429 }
type
Definition: HCALResponse.h:21
int i
Definition: DBlmapReader.cc:9
std::vector< double > parametersEta_
dictionary edges
const T & max(const T &a, const T &b)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::vector< double > parametersPhi_
std::map< std::string, MonitorElement * > elements_
std::vector< double > parametersTurnOn_
static std::string const source
Definition: EdmProvDump.cc:43
void HLTMuonPlotter::findMatches ( std::vector< MatchStruct > &  matches,
const std::vector< l1extra::L1MuonParticleRef > &  candsL1,
const std::vector< std::vector< const reco::RecoChargedCandidate * > > &  candsHlt 
)
private

Definition at line 309 of file HLTMuonPlotter.cc.

References begin, cutsDr_, deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::Candidate::eta(), i, edm::eventsetup::heterocontainer::insert(), j, kNull, testEve_cfg::level, and reco::Candidate::phi().

Referenced by analyze().

313 {
314 
315  set<size_t>::iterator it;
316 
317  set<size_t> indicesL1;
318  for (size_t i = 0; i < candsL1.size(); i++)
319  indicesL1.insert(i);
320 
321  vector< set<size_t> > indicesHlt(candsHlt.size());
322  for (size_t i = 0; i < candsHlt.size(); i++)
323  for (size_t j = 0; j < candsHlt[i].size(); j++)
324  indicesHlt[i].insert(j);
325 
326  for (size_t i = 0; i < matches.size(); i++) {
327 
328  const Candidate * cand = matches[i].candBase;
329 
330  double bestDeltaR = cutsDr_[0];
331  size_t bestMatch = kNull;
332  for (it = indicesL1.begin(); it != indicesL1.end(); it++) {
333  if (candsL1[*it].isAvailable()) {
334  double dR = deltaR(cand->eta(), cand->phi(),
335  candsL1[*it]->eta(), candsL1[*it]->phi());
336  if (dR < bestDeltaR) {
337  bestMatch = *it;
338  bestDeltaR = dR;
339  }
340  // TrajectoryStateOnSurface propagated;
341  // float dR = 999., dPhi = 999.;
342  // bool isValid = l1Matcher_.match(* cand, * candsL1[*it],
343  // dR, dPhi, propagated);
344  // if (isValid && dR < bestDeltaR) {
345  // bestMatch = *it;
346  // bestDeltaR = dR;
347  // }
348  } else {
349  LogWarning("HLTMuonPlotter")
350  << "Ref candsL1[*it]: product not available "
351  << *it;
352  }
353  }
354  if (bestMatch != kNull)
355  matches[i].candL1 = & * candsL1[bestMatch];
356  indicesL1.erase(bestMatch);
357 
358  matches[i].candHlt.assign(candsHlt.size(), 0);
359  for (size_t j = 0; j < candsHlt.size(); j++) {
360  size_t level = (candsHlt.size() == 4) ? (j < 2) ? 2 : 3 :
361  (candsHlt.size() == 2) ? (j < 1) ? 2 : 3 :
362  2;
363  bestDeltaR = cutsDr_[level - 2];
364  bestMatch = kNull;
365  for (it = indicesHlt[j].begin(); it != indicesHlt[j].end(); it++) {
366  double dR = deltaR(cand->eta(), cand->phi(),
367  candsHlt[j][*it]->eta(), candsHlt[j][*it]->phi());
368  if (dR < bestDeltaR) {
369  bestMatch = *it;
370  bestDeltaR = dR;
371  }
372  }
373  if (bestMatch != kNull)
374  matches[i].candHlt[j] = candsHlt[j][bestMatch];
375  indicesHlt[j].erase(bestMatch);
376  }
377 
378 // cout << " Muon: " << cand->eta() << ", ";
379 // if (matches[i].candL1) cout << matches[i].candL1->eta() << ", ";
380 // else cout << "none, ";
381 // for (size_t j = 0; j < candsHlt.size(); j++)
382 // if (matches[i].candHlt[j]) cout << matches[i].candHlt[j]->eta() << ", ";
383 // else cout << "none, ";
384 // cout << endl;
385 
386  }
387 
388 }
int i
Definition: DBlmapReader.cc:9
virtual float eta() const =0
momentum pseudorapidity
virtual float phi() const =0
momentum azimuthal angle
std::vector< double > cutsDr_
const unsigned int kNull
int j
Definition: DBlmapReader.cc:9
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:49
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
#define begin
Definition: vmac.h:30
tuple level
Definition: testEve_cfg.py:34

Definition at line 291 of file HLTMuonPlotter.cc.

References edm::ParameterSet::getParameter().

Referenced by HLTMuonValidator::HLTMuonValidator().

292 {
293 
294  edm::EDGetTokenT<trigger::TriggerEventWithRefs> _hltTriggerSummaryRAW = iC.consumes<TriggerEventWithRefs>(edm::InputTag("hltTriggerSummaryRAW"));
295  edm::EDGetTokenT<reco::GenParticleCollection> _genParticleLabel = iC.consumes<GenParticleCollection>(pset.getParameter<string>("genParticleLabel"));
296  edm::EDGetTokenT<reco::MuonCollection> _recMuonLabel = iC.consumes<MuonCollection>(pset.getParameter<string>("recMuonLabel"));
297 
298  boost::tuple<
301  edm::EDGetTokenT<reco::MuonCollection> > myTuple(_hltTriggerSummaryRAW,_genParticleLabel,_recMuonLabel);
302 
303  return (myTuple);
304 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9

Member Data Documentation

double HLTMuonPlotter::cutMaxEta_
private

Definition at line 132 of file HLTMuonPlotter.h.

Referenced by analyze(), and beginRun().

double HLTMuonPlotter::cutMinPt_
private

Definition at line 131 of file HLTMuonPlotter.h.

Referenced by analyze(), and beginRun().

unsigned int HLTMuonPlotter::cutMotherId_
private

Definition at line 133 of file HLTMuonPlotter.h.

std::vector<double> HLTMuonPlotter::cutsDr_
private

Definition at line 134 of file HLTMuonPlotter.h.

Referenced by findMatches(), and HLTMuonPlotter().

std::map<std::string, MonitorElement *> HLTMuonPlotter::elements_
private

Definition at line 143 of file HLTMuonPlotter.h.

Referenced by analyze(), beginRun(), and bookHist().

std::string HLTMuonPlotter::genMuonCut_
private

Definition at line 135 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

StringCutObjectSelector<reco::GenParticle>* HLTMuonPlotter::genMuonSelector_
private

Definition at line 138 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

edm::EDGetTokenT<reco::GenParticleCollection> HLTMuonPlotter::genParticleLabel_
private

Definition at line 124 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

std::string HLTMuonPlotter::hltPath_
private

Definition at line 117 of file HLTMuonPlotter.h.

Referenced by analyze(), beginRun(), and HLTMuonPlotter().

std::string HLTMuonPlotter::hltProcessName_
private

Definition at line 118 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

edm::EDGetTokenT<trigger::TriggerEventWithRefs> HLTMuonPlotter::hltTriggerSummaryRAW_
private

Definition at line 123 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

L1MuonMatcherAlgo HLTMuonPlotter::l1Matcher_
private

Definition at line 141 of file HLTMuonPlotter.h.

Referenced by beginRun().

std::vector<std::string> HLTMuonPlotter::moduleLabels_
private

Definition at line 120 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

std::vector<double> HLTMuonPlotter::parametersEta_
private

Definition at line 127 of file HLTMuonPlotter.h.

Referenced by bookHist(), and HLTMuonPlotter().

std::vector<double> HLTMuonPlotter::parametersPhi_
private

Definition at line 128 of file HLTMuonPlotter.h.

Referenced by bookHist(), and HLTMuonPlotter().

std::vector<double> HLTMuonPlotter::parametersTurnOn_
private

Definition at line 129 of file HLTMuonPlotter.h.

Referenced by bookHist(), and HLTMuonPlotter().

std::string HLTMuonPlotter::recMuonCut_
private

Definition at line 136 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

edm::EDGetTokenT<reco::MuonCollection> HLTMuonPlotter::recMuonLabel_
private

Definition at line 125 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

StringCutObjectSelector<reco::Muon >* HLTMuonPlotter::recMuonSelector_
private

Definition at line 139 of file HLTMuonPlotter.h.

Referenced by analyze(), and HLTMuonPlotter().

std::vector<std::string> HLTMuonPlotter::stepLabels_
private

Definition at line 121 of file HLTMuonPlotter.h.

Referenced by analyze(), beginRun(), and HLTMuonPlotter().