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 &)
 

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 207 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.

209 {
210  //now do what ever initialization is needed
211  debugPrint = false;
212 
213  topDirectoryName = "HLT/ObjectMonitor";
214  mainShifterFolder = topDirectoryName + "/MainShifter";
215  backupFolder = topDirectoryName + "/Backup";
216 
217  //parse params
218  processName_ = iConfig.getParameter<string>("processName");
219 
220  caloAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetPt");
222  caloAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetEta");
224  caloAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloAK4JetPhi");
226  pfAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetPt");
228  pfAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetEta");
230  pfAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfAK4JetPhi");
232  caloDiAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetPt");
234  caloDiAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetEta");
236  caloDiAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloDiAK4JetPhi");
238  pfDiAK4JetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetPt");
240  pfDiAK4JetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetEta");
242  pfDiAK4JetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfDiAK4JetPhi");
244  photonPt_pset = iConfig.getParameter<edm::ParameterSet>("photonPt");
246  photonEta_pset = iConfig.getParameter<edm::ParameterSet>("photonEta");
248  photonPhi_pset = iConfig.getParameter<edm::ParameterSet>("photonPhi");
250  photonPPPt_pset = iConfig.getParameter<edm::ParameterSet>("photonPPPt");
252  photonPPEta_pset = iConfig.getParameter<edm::ParameterSet>("photonPPEta");
254  photonPPPhi_pset = iConfig.getParameter<edm::ParameterSet>("photonPPPhi");
256  caloBJetPt_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetPt");
258  caloBJetEta_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetEta");
260  caloBJetPhi_pset = iConfig.getParameter<edm::ParameterSet>("caloBJetPhi");
262  pfBJetPt_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetPt");
264  pfBJetEta_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetEta");
266  pfBJetPhi_pset = iConfig.getParameter<edm::ParameterSet>("pfBJetPhi");
268  electronPt_pset = iConfig.getParameter<edm::ParameterSet>("electronPt");
270  electronEta_pset = iConfig.getParameter<edm::ParameterSet>("electronEta");
272  electronPhi_pset = iConfig.getParameter<edm::ParameterSet>("electronPhi");
274  l3muon3Pt_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Pt");
276  l3muon3Eta_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Eta");
278  l3muon3Phi_pset = iConfig.getParameter<edm::ParameterSet>("l3muon3Phi");
280  l2muon12Pt_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Pt");
282  l2muon12Eta_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Eta");
284  l2muon12Phi_pset = iConfig.getParameter<edm::ParameterSet>("l2muon12Phi");
286  l3muon12Pt_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Pt");
288  l3muon12Eta_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Eta");
290  l3muon12Phi_pset = iConfig.getParameter<edm::ParameterSet>("l3muon12Phi");
292  pAL1DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL1DoubleMuZMass");
294  pAL2DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL2DoubleMuZMass");
296  pAL3DoubleMuZMass_pset = iConfig.getParameter<edm::ParameterSet>("pAL3DoubleMuZMass");
298  wallTime_pset = iConfig.getParameter<edm::ParameterSet>("wallTime");
300 
301  for (auto item = plotMap.begin(); item != plotMap.end(); item++) {
302  (*item->first).pathName = (*item->second).getParameter<string>("pathName");
303  (*item->first).moduleName = (*item->second).getParameter<string>("moduleName");
304  (*item->first).nBins = (*item->second).getParameter<int>("NbinsX");
305  (*item->first).xMin = (*item->second).getParameter<double>("Xmin");
306  (*item->first).xMax = (*item->second).getParameter<double>("Xmax");
307  (*item->first).xAxisLabel = (*item->second).getParameter<string>("axisLabel");
308  (*item->first).plotLabel = (*item->second).getParameter<string>("plotLabel");
309  (*item->first).displayInPrimary = (*item->second).getParameter<bool>("mainWorkspace");
310 
311  if ((*item->second).exists("pathName_OR")) {
312  (*item->first).pathNameOR = (*item->second).getParameter<string>("pathName_OR");
313  }
314  if ((*item->second).exists("moduleName_OR")) {
315  (*item->first).moduleNameOR = (*item->second).getParameter<string>("moduleName_OR");
316  }
317 
318  plotList.push_back(item->first);
319  }
320  plotMap.clear();
321 
322  //set Token(s)
323  triggerResultsToken_ = consumes<edm::TriggerResults>(iConfig.getParameter<edm::InputTag>("triggerResults"));
324  aodTriggerToken_ = consumes<trigger::TriggerEvent>(iConfig.getParameter<edm::InputTag>("triggerEvent"));
325 }
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

Member Function Documentation

◆ analyze()

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

single-object plots


Definition at line 332 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.

332  {
333  double start = get_wall_time();
334 
335  using namespace edm;
336 
337  if (debugPrint)
338  std::cout << "Inside analyze(). " << std::endl;
339 
340  // access trigger results
343  if (!triggerResults.isValid())
344  return;
345 
346  edm::Handle<trigger::TriggerEvent> aodTriggerEvent;
347  iEvent.getByToken(aodTriggerToken_, aodTriggerEvent);
348  if (!aodTriggerEvent.isValid())
349  return;
350 
351  //reset everything to not accepted at beginning of each event
352  unordered_map<string, bool> firedMap = acceptMap;
353  for (auto plot : plotList) //loop over paths
354  {
355  if (firedMap[plot->pathName])
356  continue;
357  bool triggerAccept = false;
358  const TriggerObjectCollection objects = aodTriggerEvent->getObjects();
359  edm::InputTag moduleFilter;
361  if (plot->pathIndex > 0 && triggerResults->accept(plot->pathIndex) && hltConfig_.saveTags(plot->moduleName)) {
362  moduleFilter = edm::InputTag(plot->moduleName, "", processName_);
363  pathName = plot->pathName;
364  triggerAccept = true;
365  } else if (plot->pathIndexOR > 0 && triggerResults->accept(plot->pathIndexOR) &&
366  hltConfig_.saveTags(plot->moduleNameOR)) {
367  if (firedMap[plot->pathNameOR])
368  continue;
369  moduleFilter = edm::InputTag(plot->moduleNameOR, "", processName_);
370  pathName = plot->pathNameOR;
371  triggerAccept = true;
372  }
373 
374  if (triggerAccept) {
375  unsigned int moduleFilterIndex = aodTriggerEvent->filterIndex(moduleFilter);
376 
377  if (moduleFilterIndex + 1 > aodTriggerEvent->sizeFilters())
378  return;
379  const Keys& keys = aodTriggerEvent->filterKeys(moduleFilterIndex);
380 
386 
387  //calo AK4 jet pt + eta + phi
389  for (const auto& key : keys) {
393  }
394  }
395  //pf AK4 jet pt + eta + phi
396  else if (pathName == pfAK4JetPt_.pathName) {
397  for (const auto& key : keys) {
401  }
402  }
403  //calo AK4 di jet pt + eta + phi
404  else if (pathName == caloDiAK4JetPt_.pathName) {
405  for (const auto& key : keys) {
409  }
410  }
411  //pf AK4 di jet pt + eta + phi
412  else if (pathName == pfDiAK4JetPt_.pathName) {
413  for (const auto& key : keys) {
417  }
418  }
419  //photon pt + eta + phi
420  else if (pathName == photonPt_.pathName) {
421  for (const auto& key : keys) {
422  photonPt_.ME->Fill(objects[key].pt());
425  }
426  }
427  //photon PPStyle pt + eta + phi
428  else if (pathName == photonPPPt_.pathName) {
429  for (const auto& key : keys) {
433  }
434  }
435  //calo Bjet pt + eta + phi
436  else if (pathName == caloBJetPt_.pathName) {
437  for (const auto& key : keys) {
441  }
442  }
443  //PF Bjet pt + eta + phi
444  else if (pathName == pfBJetPt_.pathName) {
445  for (const auto& key : keys) {
446  pfBJetPt_.ME->Fill(objects[key].pt());
449  }
450  }
451  //electron pt + eta + phi
452  else if (pathName == electronPt_.pathName) {
453  for (const auto& key : keys) {
457  }
458  } else if (pathName == l3muon3Pt_.pathName) {
459  for (const auto& key : keys) {
463  }
464  } else if (pathName == l2muon12Pt_.pathName) {
465  for (const auto& key : keys) {
469  }
470  } else if (pathName == l3muon12Pt_.pathName) {
471  for (const auto& key : keys) {
475  }
476  }
477 
478  // ////////////////////////////////
479  // ///
480  // /// double-object plots
481  // ///
482  // ////////////////////////////////
483 
484  else if (pathName == pAL1DoubleMuZMass_.pathName) {
485  const double mu_mass(.105658);
486  unsigned int kCnt0 = 0;
487  for (const auto& key0 : keys) {
488  unsigned int kCnt1 = 0;
489  for (const auto& key1 : keys) {
490  if (key0 != key1 &&
491  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
492  // if (abs(objects[key0].id()) == 13 && (objects[key0].id()+objects[key1].id()==0)) // id is not filled for l1 stage2 muons
493  TLorentzVector mu1, mu2, dimu;
494  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
495  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
496  dimu = mu1 + mu2;
497  if (dimu.M() > pAL1DoubleMuZMass_.xMin && dimu.M() < pAL1DoubleMuZMass_.xMax)
498  pAL1DoubleMuZMass_.ME->Fill(dimu.M());
499  }
500  kCnt1 += 1;
501  }
502  kCnt0 += 1;
503  }
504  } else if (pathName == pAL2DoubleMuZMass_.pathName) {
505  const double mu_mass(.105658);
506  unsigned int kCnt0 = 0;
507  for (const auto& key0 : keys) {
508  unsigned int kCnt1 = 0;
509  for (const auto& key1 : keys) {
510  if (key0 != key1 &&
511  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
512  if (abs(objects[key0].id()) == 13 &&
513  (objects[key0].id() + objects[key1].id() == 0)) { // check muon id and dimuon charge
514  TLorentzVector mu1, mu2, dimu;
515  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
516  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
517  dimu = mu1 + mu2;
518  if (dimu.M() > pAL2DoubleMuZMass_.xMin && dimu.M() < pAL2DoubleMuZMass_.xMax)
519  pAL2DoubleMuZMass_.ME->Fill(dimu.M());
520  }
521  }
522  kCnt1 += 1;
523  }
524  kCnt0 += 1;
525  }
526  } else if (pathName == pAL3DoubleMuZMass_.pathName) {
527  const double mu_mass(.105658);
528  unsigned int kCnt0 = 0;
529  for (const auto& key0 : keys) {
530  unsigned int kCnt1 = 0;
531  for (const auto& key1 : keys) {
532  if (key0 != key1 &&
533  kCnt1 > kCnt0) { // avoid filling hists with same objs && avoid double counting separate objs
534  if (abs(objects[key0].id()) == 13 &&
535  (objects[key0].id() + objects[key1].id() == 0)) { // check muon id and dimuon charge
536  TLorentzVector mu1, mu2, dimu;
537  mu1.SetPtEtaPhiM(objects[key0].pt(), objects[key0].eta(), objects[key0].phi(), mu_mass);
538  mu2.SetPtEtaPhiM(objects[key1].pt(), objects[key1].eta(), objects[key1].phi(), mu_mass);
539  dimu = mu1 + mu2;
540  if (dimu.M() > pAL3DoubleMuZMass_.xMin && dimu.M() < pAL3DoubleMuZMass_.xMax)
541  pAL3DoubleMuZMass_.ME->Fill(dimu.M());
542  }
543  }
544  kCnt1 += 1;
545  }
546  kCnt0 += 1;
547  }
548  }
549 
550  firedMap[pathName] = true;
551  } //end if trigger accept
552  } //end loop over plots/paths
553 
554  // sleep(1); //sleep for 1s, used to calibrate timing
555  double end = get_wall_time();
556  double wallTime = end - start;
558 }
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 600 of file HLTObjectMonitorProtonLead.cc.

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

602  {
608 
609  //book wall time separately
610  ibooker.setCurrentFolder(mainShifterFolder);
611  wallTime_.ME =
614 
615  for (auto plot : plotList) {
616  std::string display_pathNames = plot->pathName;
617  if (!plot->pathNameOR.empty())
618  display_pathNames = plot->pathName + " OR " + plot->pathNameOR;
619 
620  if (plot->displayInPrimary) {
621  ibooker.setCurrentFolder(mainShifterFolder);
622  (*plot).ME = ibooker.book1D(plot->plotLabel, display_pathNames.c_str(), plot->nBins, plot->xMin, plot->xMax);
623  (*plot).ME->setAxisTitle(plot->xAxisLabel);
624  //need to add OR statement
625  } else {
626  ibooker.setCurrentFolder(backupFolder);
627  (*plot).ME = ibooker.book1D(plot->plotLabel, display_pathNames.c_str(), plot->nBins, plot->xMin, plot->xMax);
628  (*plot).ME->setAxisTitle(plot->xAxisLabel);
629  }
630  }
631 }
if(threadIdxLocalY==0 &&threadIdxLocalX==0)
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 561 of file HLTObjectMonitorProtonLead.cc.

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

561  {
562  if (debugPrint)
563  std::cout << "Calling beginRun. " << std::endl;
564  bool changed = true;
565  if (hltConfig_.init(iRun, iSetup, processName_, changed)) {
566  if (debugPrint)
567  std::cout << "Extracting HLTconfig. " << std::endl;
568  }
569 
570  //get path indicies from menu
571  string pathName_noVersion;
572  vector<string> triggerPaths = hltConfig_.triggerNames();
573 
574  for (const auto& pathName : triggerPaths) {
575  pathName_noVersion = hltConfig_.removeVersion(pathName);
576  for (auto plot : plotList) {
577  if (plot->pathName == pathName_noVersion) {
578  (*plot).pathIndex = hltConfig_.triggerIndex(pathName);
579  } else if (plot->pathNameOR == pathName_noVersion) {
580  (*plot).pathIndexOR = hltConfig_.triggerIndex(pathName);
581  }
582  }
583  }
584  vector<hltPlot*> plotList_temp;
585  for (auto plot : plotList) {
586  if (plot->pathIndex > 0 || plot->pathIndexOR > 0) {
587  plotList_temp.push_back(plot);
588  acceptMap[plot->pathName] = false;
589  if (plot->pathIndexOR > 0)
590  acceptMap[plot->pathNameOR] = false;
591  }
592  }
593  //now re-assign plotList to contain only the plots with paths in the menu.
594  plotList = plotList_temp;
595  plotList_temp.clear();
596 }
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 633 of file HLTObjectMonitorProtonLead.cc.

References hcalRecHitTable_cff::time.

633  {
634  struct timeval time;
635  if (gettimeofday(&time, nullptr))
636  return 0;
637  return (double)time.tv_sec + (double)time.tv_usec * .000001;
638 }

Member Data Documentation

◆ acceptMap

unordered_map<string, bool> HLTObjectMonitorProtonLead::acceptMap
private

Definition at line 102 of file HLTObjectMonitorProtonLead.cc.

◆ aodTriggerToken_

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

Definition at line 107 of file HLTObjectMonitorProtonLead.cc.

◆ backupFolder

string HLTObjectMonitorProtonLead::backupFolder
private

Definition at line 101 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetEta_
private

Definition at line 155 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetEta_pset
private

Definition at line 112 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetPhi_
private

Definition at line 156 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetPhi_pset
private

Definition at line 113 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::caloAK4JetPt_
private

Definition at line 154 of file HLTObjectMonitorProtonLead.cc.

◆ caloAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloAK4JetPt_pset
private

Definition at line 111 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetEta_

hltPlot HLTObjectMonitorProtonLead::caloBJetEta_
private

Definition at line 173 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetEta_pset
private

Definition at line 130 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPhi_

hltPlot HLTObjectMonitorProtonLead::caloBJetPhi_
private

Definition at line 174 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetPhi_pset
private

Definition at line 131 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPt_

hltPlot HLTObjectMonitorProtonLead::caloBJetPt_
private

Definition at line 172 of file HLTObjectMonitorProtonLead.cc.

◆ caloBJetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloBJetPt_pset
private

Definition at line 129 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetEta_
private

Definition at line 161 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetEta_pset
private

Definition at line 118 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetPhi_
private

Definition at line 162 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetPhi_pset
private

Definition at line 119 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::caloDiAK4JetPt_
private

Definition at line 160 of file HLTObjectMonitorProtonLead.cc.

◆ caloDiAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::caloDiAK4JetPt_pset
private

Definition at line 117 of file HLTObjectMonitorProtonLead.cc.

◆ debugPrint

bool HLTObjectMonitorProtonLead::debugPrint
private

Definition at line 97 of file HLTObjectMonitorProtonLead.cc.

◆ electronEta_

hltPlot HLTObjectMonitorProtonLead::electronEta_
private

Definition at line 179 of file HLTObjectMonitorProtonLead.cc.

◆ electronEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronEta_pset
private

Definition at line 136 of file HLTObjectMonitorProtonLead.cc.

◆ electronPhi_

hltPlot HLTObjectMonitorProtonLead::electronPhi_
private

Definition at line 180 of file HLTObjectMonitorProtonLead.cc.

◆ electronPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronPhi_pset
private

Definition at line 137 of file HLTObjectMonitorProtonLead.cc.

◆ electronPt_

hltPlot HLTObjectMonitorProtonLead::electronPt_
private

Definition at line 178 of file HLTObjectMonitorProtonLead.cc.

◆ electronPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::electronPt_pset
private

Definition at line 135 of file HLTObjectMonitorProtonLead.cc.

◆ hltConfig_

HLTConfigProvider HLTObjectMonitorProtonLead::hltConfig_
private

Definition at line 98 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Eta_

hltPlot HLTObjectMonitorProtonLead::l2muon12Eta_
private

Definition at line 185 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Eta_pset
private

Definition at line 142 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Phi_

hltPlot HLTObjectMonitorProtonLead::l2muon12Phi_
private

Definition at line 186 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Phi_pset
private

Definition at line 143 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Pt_

hltPlot HLTObjectMonitorProtonLead::l2muon12Pt_
private

Definition at line 184 of file HLTObjectMonitorProtonLead.cc.

◆ l2muon12Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l2muon12Pt_pset
private

Definition at line 141 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Eta_

hltPlot HLTObjectMonitorProtonLead::l3muon12Eta_
private

Definition at line 188 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Eta_pset
private

Definition at line 145 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Phi_

hltPlot HLTObjectMonitorProtonLead::l3muon12Phi_
private

Definition at line 189 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Phi_pset
private

Definition at line 146 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Pt_

hltPlot HLTObjectMonitorProtonLead::l3muon12Pt_
private

Definition at line 187 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon12Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon12Pt_pset
private

Definition at line 144 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Eta_

hltPlot HLTObjectMonitorProtonLead::l3muon3Eta_
private

Definition at line 182 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Eta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Eta_pset
private

Definition at line 139 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Phi_

hltPlot HLTObjectMonitorProtonLead::l3muon3Phi_
private

Definition at line 183 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Phi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Phi_pset
private

Definition at line 140 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Pt_

hltPlot HLTObjectMonitorProtonLead::l3muon3Pt_
private

Definition at line 181 of file HLTObjectMonitorProtonLead.cc.

◆ l3muon3Pt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::l3muon3Pt_pset
private

Definition at line 138 of file HLTObjectMonitorProtonLead.cc.

◆ mainShifterFolder

string HLTObjectMonitorProtonLead::mainShifterFolder
private

Definition at line 100 of file HLTObjectMonitorProtonLead.cc.

◆ pAL1DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL1DoubleMuZMass_
private

Definition at line 190 of file HLTObjectMonitorProtonLead.cc.

◆ pAL1DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL1DoubleMuZMass_pset
private

Definition at line 147 of file HLTObjectMonitorProtonLead.cc.

◆ pAL2DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL2DoubleMuZMass_
private

Definition at line 191 of file HLTObjectMonitorProtonLead.cc.

◆ pAL2DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL2DoubleMuZMass_pset
private

Definition at line 148 of file HLTObjectMonitorProtonLead.cc.

◆ pAL3DoubleMuZMass_

hltPlot HLTObjectMonitorProtonLead::pAL3DoubleMuZMass_
private

Definition at line 192 of file HLTObjectMonitorProtonLead.cc.

◆ pAL3DoubleMuZMass_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pAL3DoubleMuZMass_pset
private

Definition at line 149 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetEta_
private

Definition at line 158 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetEta_pset
private

Definition at line 115 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetPhi_
private

Definition at line 159 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetPhi_pset
private

Definition at line 116 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::pfAK4JetPt_
private

Definition at line 157 of file HLTObjectMonitorProtonLead.cc.

◆ pfAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfAK4JetPt_pset
private

Definition at line 114 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetEta_

hltPlot HLTObjectMonitorProtonLead::pfBJetEta_
private

Definition at line 176 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetEta_pset
private

Definition at line 133 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPhi_

hltPlot HLTObjectMonitorProtonLead::pfBJetPhi_
private

Definition at line 177 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetPhi_pset
private

Definition at line 134 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPt_

hltPlot HLTObjectMonitorProtonLead::pfBJetPt_
private

Definition at line 175 of file HLTObjectMonitorProtonLead.cc.

◆ pfBJetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfBJetPt_pset
private

Definition at line 132 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetEta_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetEta_
private

Definition at line 164 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetEta_pset
private

Definition at line 121 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPhi_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetPhi_
private

Definition at line 165 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetPhi_pset
private

Definition at line 122 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPt_

hltPlot HLTObjectMonitorProtonLead::pfDiAK4JetPt_
private

Definition at line 163 of file HLTObjectMonitorProtonLead.cc.

◆ pfDiAK4JetPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::pfDiAK4JetPt_pset
private

Definition at line 120 of file HLTObjectMonitorProtonLead.cc.

◆ photonEta_

hltPlot HLTObjectMonitorProtonLead::photonEta_
private

Definition at line 167 of file HLTObjectMonitorProtonLead.cc.

◆ photonEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonEta_pset
private

Definition at line 124 of file HLTObjectMonitorProtonLead.cc.

◆ photonPhi_

hltPlot HLTObjectMonitorProtonLead::photonPhi_
private

Definition at line 168 of file HLTObjectMonitorProtonLead.cc.

◆ photonPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPhi_pset
private

Definition at line 125 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPEta_

hltPlot HLTObjectMonitorProtonLead::photonPPEta_
private

Definition at line 170 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPEta_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPEta_pset
private

Definition at line 127 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPhi_

hltPlot HLTObjectMonitorProtonLead::photonPPPhi_
private

Definition at line 171 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPhi_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPPhi_pset
private

Definition at line 128 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPt_

hltPlot HLTObjectMonitorProtonLead::photonPPPt_
private

Definition at line 169 of file HLTObjectMonitorProtonLead.cc.

◆ photonPPPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPPPt_pset
private

Definition at line 126 of file HLTObjectMonitorProtonLead.cc.

◆ photonPt_

hltPlot HLTObjectMonitorProtonLead::photonPt_
private

Definition at line 166 of file HLTObjectMonitorProtonLead.cc.

◆ photonPt_pset

edm::ParameterSet HLTObjectMonitorProtonLead::photonPt_pset
private

Definition at line 123 of file HLTObjectMonitorProtonLead.cc.

◆ plotList

vector<hltPlot*> HLTObjectMonitorProtonLead::plotList
private

Definition at line 93 of file HLTObjectMonitorProtonLead.cc.

◆ plotMap

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

Definition at line 103 of file HLTObjectMonitorProtonLead.cc.

◆ processName_

string HLTObjectMonitorProtonLead::processName_
private

Definition at line 152 of file HLTObjectMonitorProtonLead.cc.

◆ topDirectoryName

string HLTObjectMonitorProtonLead::topDirectoryName
private

Definition at line 99 of file HLTObjectMonitorProtonLead.cc.

◆ triggerResultsToken_

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

Definition at line 106 of file HLTObjectMonitorProtonLead.cc.

◆ wallTime_

hltPlot HLTObjectMonitorProtonLead::wallTime_
private

Definition at line 193 of file HLTObjectMonitorProtonLead.cc.

◆ wallTime_pset

edm::ParameterSet HLTObjectMonitorProtonLead::wallTime_pset
private

Definition at line 150 of file HLTObjectMonitorProtonLead.cc.