CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
HLTObjectMonitorProtonLead Class Reference

#include <DQM/HLTEvF/plugins/HLTObjectMonitorProtonLead.cc>

Inheritance diagram for HLTObjectMonitorProtonLead:

Classes

struct  hltPlot
 

Public Member Functions

 HLTObjectMonitorProtonLead (const edm::ParameterSet &)
 
 ~HLTObjectMonitorProtonLead () override
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
double get_wall_time (void)
 

Private Attributes

unordered_map< string, bool > acceptMap
 
edm::EDGetTokenT< trigger::TriggerEventaodTriggerToken_
 
string backupFolder
 
hltPlot caloAK4JetEta_
 
edm::ParameterSet caloAK4JetEta_pset
 
hltPlot caloAK4JetPhi_
 
edm::ParameterSet caloAK4JetPhi_pset
 
hltPlot caloAK4JetPt_
 
edm::ParameterSet caloAK4JetPt_pset
 
hltPlot caloBJetEta_
 
edm::ParameterSet caloBJetEta_pset
 
hltPlot caloBJetPhi_
 
edm::ParameterSet caloBJetPhi_pset
 
hltPlot caloBJetPt_
 
edm::ParameterSet caloBJetPt_pset
 
hltPlot caloDiAK4JetEta_
 
edm::ParameterSet caloDiAK4JetEta_pset
 
hltPlot caloDiAK4JetPhi_
 
edm::ParameterSet caloDiAK4JetPhi_pset
 
hltPlot caloDiAK4JetPt_
 
edm::ParameterSet caloDiAK4JetPt_pset
 
bool debugPrint
 
hltPlot electronEta_
 
edm::ParameterSet electronEta_pset
 
hltPlot electronPhi_
 
edm::ParameterSet electronPhi_pset
 
hltPlot electronPt_
 
edm::ParameterSet electronPt_pset
 
HLTConfigProvider hltConfig_
 
hltPlot l2muon12Eta_
 
edm::ParameterSet l2muon12Eta_pset
 
hltPlot l2muon12Phi_
 
edm::ParameterSet l2muon12Phi_pset
 
hltPlot l2muon12Pt_
 
edm::ParameterSet l2muon12Pt_pset
 
hltPlot l3muon12Eta_
 
edm::ParameterSet l3muon12Eta_pset
 
hltPlot l3muon12Phi_
 
edm::ParameterSet l3muon12Phi_pset
 
hltPlot l3muon12Pt_
 
edm::ParameterSet l3muon12Pt_pset
 
hltPlot l3muon3Eta_
 
edm::ParameterSet l3muon3Eta_pset
 
hltPlot l3muon3Phi_
 
edm::ParameterSet l3muon3Phi_pset
 
hltPlot l3muon3Pt_
 
edm::ParameterSet l3muon3Pt_pset
 
string mainShifterFolder
 
hltPlot pAL1DoubleMuZMass_
 
edm::ParameterSet pAL1DoubleMuZMass_pset
 
hltPlot pAL2DoubleMuZMass_
 
edm::ParameterSet pAL2DoubleMuZMass_pset
 
hltPlot pAL3DoubleMuZMass_
 
edm::ParameterSet pAL3DoubleMuZMass_pset
 
hltPlot pfAK4JetEta_
 
edm::ParameterSet pfAK4JetEta_pset
 
hltPlot pfAK4JetPhi_
 
edm::ParameterSet pfAK4JetPhi_pset
 
hltPlot pfAK4JetPt_
 
edm::ParameterSet pfAK4JetPt_pset
 
hltPlot pfBJetEta_
 
edm::ParameterSet pfBJetEta_pset
 
hltPlot pfBJetPhi_
 
edm::ParameterSet pfBJetPhi_pset
 
hltPlot pfBJetPt_
 
edm::ParameterSet pfBJetPt_pset
 
hltPlot pfDiAK4JetEta_
 
edm::ParameterSet pfDiAK4JetEta_pset
 
hltPlot pfDiAK4JetPhi_
 
edm::ParameterSet pfDiAK4JetPhi_pset
 
hltPlot pfDiAK4JetPt_
 
edm::ParameterSet pfDiAK4JetPt_pset
 
hltPlot photonEta_
 
edm::ParameterSet photonEta_pset
 
hltPlot photonPhi_
 
edm::ParameterSet photonPhi_pset
 
hltPlot photonPPEta_
 
edm::ParameterSet photonPPEta_pset
 
hltPlot photonPPPhi_
 
edm::ParameterSet photonPPPhi_pset
 
hltPlot photonPPPt_
 
edm::ParameterSet photonPPPt_pset
 
hltPlot photonPt_
 
edm::ParameterSet photonPt_pset
 
vector< hltPlot * > plotList
 
unordered_map< hltPlot *, edm::ParameterSet * > plotMap
 
string processName_
 
string topDirectoryName
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken_
 
hltPlot wallTime_
 
edm::ParameterSet wallTime_pset
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 67 of file HLTObjectMonitorProtonLead.cc.

Constructor & Destructor Documentation

◆ HLTObjectMonitorProtonLead()

HLTObjectMonitorProtonLead::HLTObjectMonitorProtonLead ( const edm::ParameterSet iConfig)
explicit

Definition at line 210 of file HLTObjectMonitorProtonLead.cc.

References edm::ParameterSet::getParameter(), B2GTnPMonitor_cfi::item, EcalCalibMonitorClient_cfi::moduleName, seedmultiplicitymonitor_newtracking_cfi::nBins, hltMonBTagIPClient_cfi::pathName, HLTObjectMonitor_cfi::plotLabel, multiplicitycorr_cfi::xMax, and photonAnalyzer_cfi::xMin.

212 {
213  //now do what ever initialization is needed
214  debugPrint = false;
215 
216  topDirectoryName = "HLT/ObjectMonitor";
217  mainShifterFolder = topDirectoryName + "/MainShifter";
218  backupFolder = topDirectoryName + "/Backup";
219 
220  //parse params
221  processName_ = iConfig.getParameter<string>("processName");
222 
223  caloAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetPt");
225  caloAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetEta");
227  caloAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetPhi");
229  pfAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetPt");
231  pfAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetEta");
233  pfAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetPhi");
235  caloDiAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetPt");
237  caloDiAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetEta");
239  caloDiAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetPhi");
241  pfDiAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetPt");
243  pfDiAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetEta");
245  pfDiAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetPhi");
247  photonPt_pset = iConfig.getParameter<edm::ParameterSet>("photonPt");
249  photonEta_pset = iConfig.getParameter<edm::ParameterSet>("photonEta");
251  photonPhi_pset = iConfig.getParameter<edm::ParameterSet>("photonPhi");
253  photonPPPt_pset = iConfig.getParameter<edm::ParameterSet>("photonPPPt");
255  photonPPEta_pset = iConfig.getParameter<edm::ParameterSet>("photonPPEta");
257  photonPPPhi_pset = iConfig.getParameter<edm::ParameterSet>("photonPPPhi");
259  caloBJetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetPt");
261  caloBJetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetEta");
263  caloBJetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetPhi");
265  pfBJetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetPt");
267  pfBJetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetEta");
269  pfBJetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetPhi");
271  electronPt_pset = iConfig.getParameter<edm::ParameterSet>("electronPt");
273  electronEta_pset = iConfig.getParameter<edm::ParameterSet>("electronEta");
275  electronPhi_pset = iConfig.getParameter<edm::ParameterSet>("electronPhi");
277  l3muon3Pt_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Pt");
279  l3muon3Eta_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Eta");
281  l3muon3Phi_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Phi");
283  l2muon12Pt_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Pt");
285  l2muon12Eta_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Eta");
287  l2muon12Phi_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Phi");
289  l3muon12Pt_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Pt");
291  l3muon12Eta_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Eta");
293  l3muon12Phi_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Phi");
295  pAL1DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL1DoubleMuZMass");
297  pAL2DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL2DoubleMuZMass");
299  pAL3DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL3DoubleMuZMass");
301  wallTime_pset = iConfig.getParameter<edm::ParameterSet>("wallTime");
303 
304  for (auto item = plotMap.begin(); item != plotMap.end(); item++) {
305  (*item->first).pathName = (*item->second).getParameter<string>("pathName");
306  (*item->first).moduleName = (*item->second).getParameter<string>("moduleName");
307  (*item->first).nBins = (*item->second).getParameter<int>("NbinsX");
308  (*item->first).xMin = (*item->second).getParameter<double>("Xmin");
309  (*item->first).xMax = (*item->second).getParameter<double>("Xmax");
310  (*item->first).xAxisLabel = (*item->second).getParameter<string>("axisLabel");
311  (*item->first).plotLabel = (*item->second).getParameter<string>("plotLabel");
312  (*item->first).displayInPrimary = (*item->second).getParameter<bool>("mainWorkspace");
313 
314  if ((*item->second).exists("pathName_OR")) {
315  (*item->first).pathNameOR = (*item->second).getParameter<string>("pathName_OR");
316  }
317  if ((*item->second).exists("moduleName_OR")) {
318  (*item->first).moduleNameOR = (*item->second).getParameter<string>("moduleName_OR");
319  }
320 
321  plotList.push_back(item->first);
322  }
323  plotMap.clear();
324 
325  //set Token(s)
326  triggerResultsToken_ = consumes<edm::TriggerResults>(iConfig.getParameter<edm::InputTag>("triggerResults"));
327  aodTriggerToken_ = consumes<trigger::TriggerEvent>(iConfig.getParameter<edm::InputTag>("triggerEvent"));
328 }
edm::EDGetTokenT< trigger::TriggerEvent > aodTriggerToken_
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
unordered_map< hltPlot *, edm::ParameterSet * > plotMap

◆ ~HLTObjectMonitorProtonLead()

HLTObjectMonitorProtonLead::~HLTObjectMonitorProtonLead ( )
override

Definition at line 330 of file HLTObjectMonitorProtonLead.cc.

330  {
331  // do anything here that needs to be done at desctruction time
332  // (e.g. close files, deallocate resources etc.)
333 }

Member Function Documentation

◆ analyze()

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

single-object plots


Definition at line 340 of file HLTObjectMonitorProtonLead.cc.

References funct::abs(), gather_cfg::cout, PVValHelper::eta, trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), iEvent, ProducerED_cfi::InputTag, edm::HandleBase::isValid(), submitPVResolutionJobs::key, relativeConstraints::keys, hltMonBTagIPClient_cfi::pathName, plotFactory::plot, DiDispStaMuonMonitor_cfi::pt, trigger::TriggerEvent::sizeFilters(), command_line::start, AlCaHLTBitMon_QueryRunRegistry::string, HigPhotonJetHLTOfflineSource_cfi::triggerAccept, triggerResults, and HLTObjectMonitor_cfi::wallTime.

340  {
341  double start = get_wall_time();
342 
343  using namespace edm;
344 
345  if (debugPrint)
346  std::cout << "Inside analyze(). " << std::endl;
347 
348  // access trigger results
351  if (!triggerResults.isValid())
352  return;
353 
354  edm::Handle<trigger::TriggerEvent> aodTriggerEvent;
355  iEvent.getByToken(aodTriggerToken_, aodTriggerEvent);
356  if (!aodTriggerEvent.isValid())
357  return;
358 
359  //reset everything to not accepted at beginning of each event
360  unordered_map<string, bool> firedMap = acceptMap;
361  for (auto plot : plotList) //loop over paths
362  {
363  if (firedMap[plot->pathName])
364  continue;
365  bool triggerAccept = false;
366  const TriggerObjectCollection objects = aodTriggerEvent->getObjects();
367  edm::InputTag moduleFilter;
369  if (plot->pathIndex > 0 && triggerResults->accept(plot->pathIndex) && hltConfig_.saveTags(plot->moduleName)) {
370  moduleFilter = edm::InputTag(plot->moduleName, "", processName_);
371  pathName = plot->pathName;
372  triggerAccept = true;
373  } else if (plot->pathIndexOR > 0 && triggerResults->accept(plot->pathIndexOR) &&
374  hltConfig_.saveTags(plot->moduleNameOR)) {
375  if (firedMap[plot->pathNameOR])
376  continue;
377  moduleFilter = edm::InputTag(plot->moduleNameOR, "", processName_);
378  pathName = plot->pathNameOR;
379  triggerAccept = true;
380  }
381 
382  if (triggerAccept) {
383  unsigned int moduleFilterIndex = aodTriggerEvent->filterIndex(moduleFilter);
384 
385  if (moduleFilterIndex + 1 > aodTriggerEvent->sizeFilters())
386  return;
387  const Keys& keys = aodTriggerEvent->filterKeys(moduleFilterIndex);
388 
394 
395  //calo AK4 jet pt + eta + phi
397  for (const auto& key : keys) {
401  }
402  }
403  //pf AK4 jet pt + eta + phi
404  else if (pathName == pfAK4JetPt_.pathName) {
405  for (const auto& key : keys) {
409  }
410  }
411  //calo AK4 di jet pt + eta + phi
412  else if (pathName == caloDiAK4JetPt_.pathName) {
413  for (const auto& key : keys) {
417  }
418  }
419  //pf AK4 di jet pt + eta + phi
420  else if (pathName == pfDiAK4JetPt_.pathName) {
421  for (const auto& key : keys) {
425  }
426  }
427  //photon pt + eta + phi
428  else if (pathName == photonPt_.pathName) {
429  for (const auto& key : keys) {
430  photonPt_.ME->Fill(objects[key].pt());
433  }
434  }
435  //photon PPStyle pt + eta + phi
436  else if (pathName == photonPPPt_.pathName) {
437  for (const auto& key : keys) {
441  }
442  }
443  //calo Bjet pt + eta + phi
444  else if (pathName == caloBJetPt_.pathName) {
445  for (const auto& key : keys) {
449  }
450  }
451  //PF Bjet pt + eta + phi
452  else if (pathName == pfBJetPt_.pathName) {
453  for (const auto& key : keys) {
454  pfBJetPt_.ME->Fill(objects[key].pt());
457  }
458  }
459  //electron pt + eta + phi
460  else if (pathName == electronPt_.pathName) {
461  for (const auto& key : keys) {
465  }
466  } else if (pathName == l3muon3Pt_.pathName) {
467  for (const auto& key : keys) {
471  }
472  } else if (pathName == l2muon12Pt_.pathName) {
473  for (const auto& key : keys) {
477  }
478  } else if (pathName == l3muon12Pt_.pathName) {
479  for (const auto& key : keys) {
483  }
484  }
485 
486  // ////////////////////////////////
487  // ///
488  // /// double-object plots
489  // ///
490  // ////////////////////////////////
491 
492  else if (pathName == pAL1DoubleMuZMass_.pathName) {
493  const double mu_mass(.105658);
494  unsigned int kCnt0 = 0;
495  for (const auto& key0 : keys) {
496  unsigned int kCnt1 = 0;
497  for (const auto& key1 : keys) {
498  if (key0 != key1 &&
499  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
500  // if (abs(objects[key0].id()) == 13 && (objects[key0].id()+objects[key1].id()==0)) // id is not filled for l1 stage2 muons
501  TLorentzVector mu1, mu2, dimu;
502  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
503  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
504  dimu = mu1 + mu2;
505  if (dimu.M() > pAL1DoubleMuZMass_.xMin && dimu.M() < pAL1DoubleMuZMass_.xMax)
506  pAL1DoubleMuZMass_.ME->Fill(dimu.M());
507  }
508  kCnt1 += 1;
509  }
510  kCnt0 += 1;
511  }
512  } else if (pathName == pAL2DoubleMuZMass_.pathName) {
513  const double mu_mass(.105658);
514  unsigned int kCnt0 = 0;
515  for (const auto& key0 : keys) {
516  unsigned int kCnt1 = 0;
517  for (const auto& key1 : keys) {
518  if (key0 != key1 &&
519  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
520  if (abs(objects[key0].id()) == 13 &&
521  (objects[key0].id() + objects[key1].id() == 0)) { // check muon id and dimuon charge
522  TLorentzVector mu1, mu2, dimu;
523  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
524  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
525  dimu = mu1 + mu2;
526  if (dimu.M() > pAL2DoubleMuZMass_.xMin && dimu.M() < pAL2DoubleMuZMass_.xMax)
527  pAL2DoubleMuZMass_.ME->Fill(dimu.M());
528  }
529  }
530  kCnt1 += 1;
531  }
532  kCnt0 += 1;
533  }
534  } else if (pathName == pAL3DoubleMuZMass_.pathName) {
535  const double mu_mass(.105658);
536  unsigned int kCnt0 = 0;
537  for (const auto& key0 : keys) {
538  unsigned int kCnt1 = 0;
539  for (const auto& key1 : keys) {
540  if (key0 != key1 &&
541  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
542  if (abs(objects[key0].id()) == 13 &&
543  (objects[key0].id() + objects[key1].id() == 0)) { // check muon id and dimuon charge
544  TLorentzVector mu1, mu2, dimu;
545  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
546  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
547  dimu = mu1 + mu2;
548  if (dimu.M() > pAL3DoubleMuZMass_.xMin && dimu.M() < pAL3DoubleMuZMass_.xMax)
549  pAL3DoubleMuZMass_.ME->Fill(dimu.M());
550  }
551  }
552  kCnt1 += 1;
553  }
554  kCnt0 += 1;
555  }
556  }
557 
558  firedMap[pathName] = true;
559  } //end if trigger accept
560  } //end loop over plots/paths
561 
562  // sleep(1); //sleep for 1s, used to calibrate timing
563  double end = get_wall_time();
564  double wallTime = end - start;
566 }
Definition: start.py:1
edm::EDGetTokenT< trigger::TriggerEvent > aodTriggerToken_
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:119
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:147
unordered_map< string, bool > acceptMap
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
void Fill(long long x)
int iEvent
Definition: GenABIO.cc:224
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:102
key
prepare the HTCondor submission files and eventually submit them
static std::string const triggerResults
Definition: EdmProvDump.cc:47
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:133
std::vector< size_type > Keys
bool isValid() const
Definition: HandleBase.h:70
HLT enums.

◆ bookHistograms()

void HLTObjectMonitorProtonLead::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivate

Main shifter workspace plots


Definition at line 608 of file HLTObjectMonitorProtonLead.cc.

References dqm::implementation::IBooker::book1D(), caHitNtupletGeneratorKernels::if(), plotFactory::plot, dqm::impl::MonitorElement::setAxisTitle(), dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

610  {
616 
617  //book wall time separately
618  ibooker.setCurrentFolder(mainShifterFolder);
619  wallTime_.ME =
622 
623  for (auto plot : plotList) {
624  std::string display_pathNames = plot->pathName;
625  if (!plot->pathNameOR.empty())
626  display_pathNames = plot->pathName + " OR " + plot->pathNameOR;
627 
628  if (plot->displayInPrimary) {
629  ibooker.setCurrentFolder(mainShifterFolder);
630  (*plot).ME = ibooker.book1D(plot->plotLabel, display_pathNames.c_str(), plot->nBins, plot->xMin, plot->xMax);
631  (*plot).ME->setAxisTitle(plot->xAxisLabel);
632  //need to add OR statement
633  } else {
634  ibooker.setCurrentFolder(backupFolder);
635  (*plot).ME = ibooker.book1D(plot->plotLabel, display_pathNames.c_str(), plot->nBins, plot->xMin, plot->xMax);
636  (*plot).ME->setAxisTitle(plot->xAxisLabel);
637  }
638  }
639 }
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

◆ dqmBeginRun()

void HLTObjectMonitorProtonLead::dqmBeginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 569 of file HLTObjectMonitorProtonLead.cc.

References gather_cfg::cout, hltMonBTagIPClient_cfi::pathName, plotFactory::plot, and triggerPaths.

569  {
570  if (debugPrint)
571  std::cout << "Calling beginRun. " << std::endl;
572  bool changed = true;
573  if (hltConfig_.init(iRun, iSetup, processName_, changed)) {
574  if (debugPrint)
575  std::cout << "Extracting HLTconfig. " << std::endl;
576  }
577 
578  //get path indicies from menu
579  string pathName_noVersion;
580  vector<string> triggerPaths = hltConfig_.triggerNames();
581 
582  for (const auto& pathName : triggerPaths) {
583  pathName_noVersion = hltConfig_.removeVersion(pathName);
584  for (auto plot : plotList) {
585  if (plot->pathName == pathName_noVersion) {
586  (*plot).pathIndex = hltConfig_.triggerIndex(pathName);
587  } else if (plot->pathNameOR == pathName_noVersion) {
588  (*plot).pathIndexOR = hltConfig_.triggerIndex(pathName);
589  }
590  }
591  }
592  vector<hltPlot*> plotList_temp;
593  for (auto plot : plotList) {
594  if (plot->pathIndex > 0 || plot->pathIndexOR > 0) {
595  plotList_temp.push_back(plot);
596  acceptMap[plot->pathName] = false;
597  if (plot->pathIndexOR > 0)
598  acceptMap[plot->pathNameOR] = false;
599  }
600  }
601  //now re-assign plotList to contain only the plots with paths in the menu.
602  plotList = plotList_temp;
603  plotList_temp.clear();
604 }
unordered_map< string, bool > acceptMap
static const std::string removeVersion(const std::string &trigger)
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
const std::vector< std::string > & triggerNames() const
names of trigger paths
static std::string const triggerPaths
Definition: EdmProvDump.cc:48

◆ get_wall_time()

double HLTObjectMonitorProtonLead::get_wall_time ( void  )
private

Definition at line 641 of file HLTObjectMonitorProtonLead.cc.

References hcalRecHitTable_cff::time.

641  {
642  struct timeval time;
643  if (gettimeofday(&time, nullptr))
644  return 0;
645  return (double)time.tv_sec + (double)time.tv_usec * .000001;
646 }

Member Data Documentation

◆ acceptMap

unordered_map<string, bool> HLTObjectMonitorProtonLead::acceptMap
private

Definition at line 105 of file HLTObjectMonitorProtonLead.cc.

◆ aodTriggerToken_

edm::EDGetTokenT<trigger::TriggerEvent> HLTObjectMonitorProtonLead::aodTriggerToken_
private

Definition at line 110 of file HLTObjectMonitorProtonLead.cc.

◆ backupFolder

string HLTObjectMonitorProtonLead::backupFolder
private

Definition at line 104 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetEta_
private

Definition at line 158 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetEta_pset
private

Definition at line 115 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetPhi_
private

Definition at line 159 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetPhi_pset
private

Definition at line 116 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetPt_
private

Definition at line 157 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetPt_pset
private

Definition at line 114 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetEta_

hltPlot HLTObjectMonitorProtonLead::caloBJetEta_
private

Definition at line 176 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetEta_pset
private

Definition at line 133 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPhi_

hltPlot HLTObjectMonitorProtonLead::caloBJetPhi_
private

Definition at line 177 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetPhi_pset
private

Definition at line 134 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPt_

hltPlot HLTObjectMonitorProtonLead::caloBJetPt_
private

Definition at line 175 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetPt_pset
private

Definition at line 132 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetEta_
private

Definition at line 164 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetEta_pset
private

Definition at line 121 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetPhi_
private

Definition at line 165 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetPhi_pset
private

Definition at line 122 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetPt_
private

Definition at line 163 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetPt_pset
private

Definition at line 120 of file HLTObjectMonitorProtonLead.cc.

◆ debugPrint

bool HLTObjectMonitorProtonLead::debugPrint
private

Definition at line 100 of file HLTObjectMonitorProtonLead.cc.

◆ electronEta_

hltPlot HLTObjectMonitorProtonLead::electronEta_
private

Definition at line 182 of file HLTObjectMonitorProtonLead.cc.

◆ electronEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronEta_pset
private

Definition at line 139 of file HLTObjectMonitorProtonLead.cc.

◆ electronPhi_

hltPlot HLTObjectMonitorProtonLead::electronPhi_
private

Definition at line 183 of file HLTObjectMonitorProtonLead.cc.

◆ electronPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronPhi_pset
private

Definition at line 140 of file HLTObjectMonitorProtonLead.cc.

◆ electronPt_

hltPlot HLTObjectMonitorProtonLead::electronPt_
private

Definition at line 181 of file HLTObjectMonitorProtonLead.cc.

◆ electronPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronPt_pset
private

Definition at line 138 of file HLTObjectMonitorProtonLead.cc.

◆ hltConfig_

HLTConfigProvider HLTObjectMonitorProtonLead::hltConfig_
private

Definition at line 101 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Eta_

hltPlot HLTObjectMonitorProtonLead::l2muon12Eta_
private

Definition at line 188 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Eta_pset
private

Definition at line 145 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Phi_

hltPlot HLTObjectMonitorProtonLead::l2muon12Phi_
private

Definition at line 189 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Phi_pset
private

Definition at line 146 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Pt_

hltPlot HLTObjectMonitorProtonLead::l2muon12Pt_
private

Definition at line 187 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Pt_pset
private

Definition at line 144 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Eta_

hltPlot HLTObjectMonitorProtonLead::l3muon12Eta_
private

Definition at line 191 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Eta_pset
private

Definition at line 148 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Phi_

hltPlot HLTObjectMonitorProtonLead::l3muon12Phi_
private

Definition at line 192 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Phi_pset
private

Definition at line 149 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Pt_

hltPlot HLTObjectMonitorProtonLead::l3muon12Pt_
private

Definition at line 190 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Pt_pset
private

Definition at line 147 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Eta_

hltPlot HLTObjectMonitorProtonLead::l3muon3Eta_
private

Definition at line 185 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Eta_pset
private

Definition at line 142 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Phi_

hltPlot HLTObjectMonitorProtonLead::l3muon3Phi_
private

Definition at line 186 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Phi_pset
private

Definition at line 143 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Pt_

hltPlot HLTObjectMonitorProtonLead::l3muon3Pt_
private

Definition at line 184 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Pt_pset
private

Definition at line 141 of file HLTObjectMonitorProtonLead.cc.

◆ mainShifterFolder

string HLTObjectMonitorProtonLead::mainShifterFolder
private

Definition at line 103 of file HLTObjectMonitorProtonLead.cc.

◆ pAL1DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL1DoubleMuZMass_
private

Definition at line 193 of file HLTObjectMonitorProtonLead.cc.

◆ pAL1DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL1DoubleMuZMass_pset
private

Definition at line 150 of file HLTObjectMonitorProtonLead.cc.

◆ pAL2DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL2DoubleMuZMass_
private

Definition at line 194 of file HLTObjectMonitorProtonLead.cc.

◆ pAL2DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL2DoubleMuZMass_pset
private

Definition at line 151 of file HLTObjectMonitorProtonLead.cc.

◆ pAL3DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL3DoubleMuZMass_
private

Definition at line 195 of file HLTObjectMonitorProtonLead.cc.

◆ pAL3DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL3DoubleMuZMass_pset
private

Definition at line 152 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetEta_
private

Definition at line 161 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetEta_pset
private

Definition at line 118 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetPhi_
private

Definition at line 162 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetPhi_pset
private

Definition at line 119 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetPt_
private

Definition at line 160 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetPt_pset
private

Definition at line 117 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetEta_

hltPlot HLTObjectMonitorProtonLead::pfBJetEta_
private

Definition at line 179 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetEta_pset
private

Definition at line 136 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPhi_

hltPlot HLTObjectMonitorProtonLead::pfBJetPhi_
private

Definition at line 180 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetPhi_pset
private

Definition at line 137 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPt_

hltPlot HLTObjectMonitorProtonLead::pfBJetPt_
private

Definition at line 178 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetPt_pset
private

Definition at line 135 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetEta_
private

Definition at line 167 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetEta_pset
private

Definition at line 124 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetPhi_
private

Definition at line 168 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetPhi_pset
private

Definition at line 125 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetPt_
private

Definition at line 166 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetPt_pset
private

Definition at line 123 of file HLTObjectMonitorProtonLead.cc.

◆ photonEta_

hltPlot HLTObjectMonitorProtonLead::photonEta_
private

Definition at line 170 of file HLTObjectMonitorProtonLead.cc.

◆ photonEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonEta_pset
private

Definition at line 127 of file HLTObjectMonitorProtonLead.cc.

◆ photonPhi_

hltPlot HLTObjectMonitorProtonLead::photonPhi_
private

Definition at line 171 of file HLTObjectMonitorProtonLead.cc.

◆ photonPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPhi_pset
private

Definition at line 128 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPEta_

hltPlot HLTObjectMonitorProtonLead::photonPPEta_
private

Definition at line 173 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPEta_pset
private

Definition at line 130 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPhi_

hltPlot HLTObjectMonitorProtonLead::photonPPPhi_
private

Definition at line 174 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPPhi_pset
private

Definition at line 131 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPt_

hltPlot HLTObjectMonitorProtonLead::photonPPPt_
private

Definition at line 172 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPPt_pset
private

Definition at line 129 of file HLTObjectMonitorProtonLead.cc.

◆ photonPt_

hltPlot HLTObjectMonitorProtonLead::photonPt_
private

Definition at line 169 of file HLTObjectMonitorProtonLead.cc.

◆ photonPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPt_pset
private

Definition at line 126 of file HLTObjectMonitorProtonLead.cc.

◆ plotList

vector<hltPlot*> HLTObjectMonitorProtonLead::plotList
private

Definition at line 94 of file HLTObjectMonitorProtonLead.cc.

◆ plotMap

unordered_map<hltPlot*, edm::ParameterSet*> HLTObjectMonitorProtonLead::plotMap
private

Definition at line 106 of file HLTObjectMonitorProtonLead.cc.

◆ processName_

string HLTObjectMonitorProtonLead::processName_
private

Definition at line 155 of file HLTObjectMonitorProtonLead.cc.

◆ topDirectoryName

string HLTObjectMonitorProtonLead::topDirectoryName
private

Definition at line 102 of file HLTObjectMonitorProtonLead.cc.

◆ triggerResultsToken_

edm::EDGetTokenT<edm::TriggerResults> HLTObjectMonitorProtonLead::triggerResultsToken_
private

Definition at line 109 of file HLTObjectMonitorProtonLead.cc.

◆ wallTime_

hltPlot HLTObjectMonitorProtonLead::wallTime_
private

Definition at line 196 of file HLTObjectMonitorProtonLead.cc.

◆ wallTime_pset

edm::ParameterSet HLTObjectMonitorProtonLead::wallTime_pset
private

Definition at line 153 of file HLTObjectMonitorProtonLead.cc.