CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
B2GSingleLeptonHLTValidation Class Reference

#include <B2GSingleLeptonHLTValidation.h>

Inheritance diagram for B2GSingleLeptonHLTValidation:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 B2GSingleLeptonHLTValidation (const edm::ParameterSet &)
 
 ~B2GSingleLeptonHLTValidation () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
std::string monitorPath (const std::string &label) const
 
void triggerBinLabels (const std::vector< std::string > &labels)
 set configurable labels for trigger monitoring histograms More...
 

Private Attributes

edm::Ptr< reco::GsfElectronelec_
 
double etaElectrons_
 
double etaJets_
 
double etaMuons_
 
MonitorElementhDenJetEta
 
MonitorElementhDenJetPt
 
MonitorElementhDenLeptonEta
 
MonitorElementhDenLeptonPt
 
MonitorElementhDenTriggerMon
 
MonitorElementhNumJetEta
 
MonitorElementhNumJetPt
 
MonitorElementhNumLeptonEta
 
MonitorElementhNumLeptonPt
 
MonitorElementhNumTriggerMon
 
bool isAll_ = false
 
double isoElectrons_
 
double isoMuons_
 
bool isSel_ = false
 
edm::Ptr< reco::Jetjet_
 
unsigned int minElectrons_
 
unsigned int minJets_
 
unsigned int minMuons_
 
edm::Ptr< reco::Muonmu_
 
double ptElectrons_
 
double ptJets0_
 
double ptJets1_
 
double ptJets_
 
double ptMuons_
 
std::string sDir_
 
std::string sElectrons_
 
std::string sJets_
 
std::string sMuons_
 
std::string sTrigger_
 
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
 
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
 
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
 
edm::EDGetTokenT< edm::TriggerResultstokTrigger_
 
std::vector< std::string > vsPaths_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

HLTriggerOffline/B2G/interface/B2GSingleLeptonHLTValidation.h

Description: compute efficiencies of trigger paths on offline reco selection with respect to pt and eta

Implementation: harvesting

HLTriggerOffline/B2G/src/B2GSingleLeptonHLTValidation.cc

Description:

Description: compute efficiencies of trigger paths on offline reco selection with respect to pt and eta

Implementation: harvesting

Definition at line 49 of file B2GSingleLeptonHLTValidation.h.

Constructor & Destructor Documentation

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

Definition at line 130 of file B2GSingleLeptonHLTValidation.h.

References HLT_2018_cff::InputTag, sElectrons_, sJets_, sMuons_, sTrigger_, tokElectrons_, tokJets_, tokMuons_, and tokTrigger_.

131  : sDir_(iConfig.getUntrackedParameter<std::string>("sDir", "HLTValidation/B2G/Efficiencies/")),
132  sElectrons_(iConfig.getUntrackedParameter<std::string>("sElectrons", "gsfElectrons")),
133  ptElectrons_(iConfig.getUntrackedParameter<double>("ptElectrons", 0.)),
134  etaElectrons_(iConfig.getUntrackedParameter<double>("etaElectrons", 0.)),
135  isoElectrons_(iConfig.getUntrackedParameter<double>("isoElectrons", 0.)),
136  minElectrons_(iConfig.getUntrackedParameter<unsigned int>("minElectrons", 0)),
137  sMuons_(iConfig.getUntrackedParameter<std::string>("sMuons", "muons")),
138  ptMuons_(iConfig.getUntrackedParameter<double>("ptMuons", 0.)),
139  etaMuons_(iConfig.getUntrackedParameter<double>("etaMuons", 0.)),
140  isoMuons_(iConfig.getUntrackedParameter<double>("isoMuons", 0.)),
141  minMuons_(iConfig.getUntrackedParameter<unsigned int>("minMuons", 0)),
142  sJets_(iConfig.getUntrackedParameter<std::string>("sJets", "ak5PFJets")),
143  ptJets_(iConfig.getUntrackedParameter<double>("ptJets", 0.)),
144  ptJets0_(iConfig.getUntrackedParameter<double>("ptJets0", 0.)),
145  ptJets1_(iConfig.getUntrackedParameter<double>("ptJets1", 0.)),
146  etaJets_(iConfig.getUntrackedParameter<double>("etaJets", 0.)),
147  minJets_(iConfig.getUntrackedParameter<unsigned int>("minJets", 0)),
148  sTrigger_(iConfig.getUntrackedParameter<std::string>("sTrigger", "TriggerResults")),
149  vsPaths_(iConfig.getUntrackedParameter<std::vector<std::string>>("vsPaths"))
150 
151 {
152  // Electrons
153  tokElectrons_ = consumes<edm::View<reco::GsfElectron>>(edm::InputTag(sElectrons_));
154  // Muons
155  tokMuons_ = consumes<edm::View<reco::Muon>>(edm::InputTag(sMuons_));
156  // Jets
157  tokJets_ = consumes<edm::View<reco::Jet>>(edm::InputTag(sJets_));
158  // Trigger
159  tokTrigger_ = consumes<edm::TriggerResults>(edm::InputTag(sTrigger_, "", "HLT"));
160 }
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
B2GSingleLeptonHLTValidation::~B2GSingleLeptonHLTValidation ( )
override

Definition at line 162 of file B2GSingleLeptonHLTValidation.h.

References DEFINE_FWK_MODULE.

162  {
163  // do anything here that needs to be done at desctruction time
164  // (e.g. close files, deallocate resources etc.)
165 }

Member Function Documentation

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

Definition at line 46 of file B2GSingleLeptonHLTValidation.cc.

References MillePedeFileConverter_cfg::e, elec_, pwdgSkimBPark_cfi::electrons, reco::LeafCandidate::eta(), etaElectrons_, etaJets_, etaMuons_, dqm::impl::MonitorElement::Fill(), edm::Event::getByToken(), hDenJetEta, hDenJetPt, hDenLeptonEta, hDenLeptonPt, hDenTriggerMon, hNumJetEta, hNumJetPt, hNumLeptonEta, hNumLeptonPt, hNumTriggerMon, mps_fire::i, training_settings::idx, isAll_, edm::Ptr< T >::isNonnull(), isSel_, dqmiolumiharvest::j, jet_, singleTopDQM_cfi::jets, visualization-live-secondInstance_cfg::m, minElectrons_, minJets_, minMuons_, mu_, PDWG_BPHSkim_cff::muons, Skims_PA_cff::name, reco::LeafCandidate::pt(), ptElectrons_, ptJets0_, ptJets1_, ptJets_, ptMuons_, tokElectrons_, tokJets_, tokMuons_, tokTrigger_, L1TEGammaOffline_cfi::triggerNames, edm::TriggerNames::triggerNames(), edm::Event::triggerNames(), and vsPaths_.

46  {
47  using namespace edm;
48 
49  isAll_ = false;
50  isSel_ = false;
51 
52  // Electrons
54  if (!iEvent.getByToken(tokElectrons_, electrons))
55  edm::LogWarning("B2GSingleLeptonHLTValidation") << "Electrons collection not found \n";
56  unsigned int nGoodE = 0;
57  for (edm::View<reco::GsfElectron>::const_iterator e = electrons->begin(); e != electrons->end(); ++e) {
58  if (e->pt() < ptElectrons_)
59  continue;
60  if (fabs(e->eta()) > etaElectrons_)
61  continue;
62  nGoodE++;
63  if (nGoodE == 1)
64  elec_ = electrons->ptrAt(e - electrons->begin());
65  }
66  // Muons
68  if (!iEvent.getByToken(tokMuons_, muons))
69  edm::LogWarning("B2GSingleLeptonHLTValidation") << "Muons collection not found \n";
70  unsigned int nGoodM = 0;
71  for (edm::View<reco::Muon>::const_iterator m = muons->begin(); m != muons->end(); ++m) {
72  if (!m->isPFMuon() || !m->isGlobalMuon())
73  continue;
74  if (m->pt() < ptMuons_)
75  continue;
76  if (fabs(m->eta()) > etaMuons_)
77  continue;
78  nGoodM++;
79  if (nGoodM == 1)
80  mu_ = muons->ptrAt(m - muons->begin());
81  }
82  // Jets
84  if (!iEvent.getByToken(tokJets_, jets))
85  edm::LogWarning("B2GSingleLeptonHLTValidation") << "Jets collection not found \n";
86  unsigned int nGoodJ = 0;
87 
88  // Check to see if we want asymmetric jet pt cuts
89  if (ptJets0_ > 0.0 || ptJets1_ > 0.0) {
90  if (ptJets0_ > 0.0) {
91  if (!jets->empty() && jets->at(0).pt() > ptJets0_) {
92  nGoodJ++;
93  jet_ = jets->ptrAt(0);
94  }
95  }
96  if (ptJets1_ > 0.0) {
97  if (jets->size() > 1 && jets->at(1).pt() > ptJets1_) {
98  nGoodJ++;
99  jet_ = jets->ptrAt(1);
100  }
101  }
102  } else {
103  for (edm::View<reco::Jet>::const_iterator j = jets->begin(); j != jets->end(); ++j) {
104  if (j->pt() < ptJets_)
105  continue;
106  if (fabs(j->eta()) > etaJets_)
107  continue;
108  nGoodJ++;
109  if (nGoodJ == minJets_)
110  jet_ = jets->ptrAt(j - jets->begin());
111  }
112  }
113 
114  if (nGoodE >= minElectrons_ && nGoodM >= minMuons_ && nGoodJ >= minJets_)
115  isAll_ = true;
116 
117  // Trigger
118  Handle<edm::TriggerResults> triggerTable;
119  if (!iEvent.getByToken(tokTrigger_, triggerTable))
120  edm::LogWarning("B2GSingleLeptonHLTValidation") << "Trigger collection not found \n";
121  const edm::TriggerNames &triggerNames = iEvent.triggerNames(*triggerTable);
122  bool isInteresting = false;
123  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
124  TString name = triggerNames.triggerNames()[i].c_str();
125  for (unsigned int j = 0; j < vsPaths_.size(); j++) {
126  if (name.Contains(TString(vsPaths_[j]), TString::kIgnoreCase)) {
127  isInteresting = true;
128  break;
129  }
130  }
131  if (isInteresting)
132  break;
133  }
134 
135  if (isAll_ && isInteresting)
136  isSel_ = true;
137  else
138  isSel_ = false;
139 
140  // Histos
141  if (isAll_) {
142  if (minElectrons_ > 0 && elec_.isNonnull()) {
143  hDenLeptonPt->Fill(elec_->pt());
145  }
146  if (minMuons_ > 0 && mu_.isNonnull()) {
147  hDenLeptonPt->Fill(mu_->pt());
148  hDenLeptonEta->Fill(mu_->eta());
149  }
150  if (jet_.isNonnull()) {
151  hDenJetPt->Fill(jet_->pt());
152  hDenJetEta->Fill(jet_->eta());
153  }
154  for (unsigned int idx = 0; idx < vsPaths_.size(); ++idx) {
155  hDenTriggerMon->Fill(idx + 0.5);
156  }
157  }
158  if (isSel_) {
159  if (minElectrons_ > 0 && elec_.isNonnull()) {
160  hNumLeptonPt->Fill(elec_->pt());
162  }
163  if (minMuons_ > 0 && mu_.isNonnull()) {
164  hNumLeptonPt->Fill(mu_->pt());
165  hNumLeptonEta->Fill(mu_->eta());
166  }
167  if (jet_.isNonnull()) {
168  hNumJetPt->Fill(jet_->pt());
169  hNumJetEta->Fill(jet_->eta());
170  }
171  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
172  TString name = triggerNames.triggerNames()[i].c_str();
173  for (unsigned int j = 0; j < vsPaths_.size(); j++) {
174  if (name.Contains(TString(vsPaths_[j]), TString::kIgnoreCase)) {
175  hNumTriggerMon->Fill(j + 0.5);
176  }
177  }
178  }
179  }
180 }
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
double pt() const final
transverse momentum
edm::Ptr< reco::GsfElectron > elec_
Strings const & triggerNames() const
Definition: TriggerNames.cc:20
void Fill(long long x)
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:146
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
HLT enums.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
Definition: Event.cc:265
void B2GSingleLeptonHLTValidation::bookHistograms ( DQMStore::IBooker dbe,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 183 of file B2GSingleLeptonHLTValidation.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), hDenJetEta, hDenJetPt, hDenLeptonEta, hDenLeptonPt, hDenTriggerMon, hNumJetEta, hNumJetPt, hNumLeptonEta, hNumLeptonPt, hNumTriggerMon, sDir_, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), triggerBinLabels(), and vsPaths_.

183  {
184  dbe.setCurrentFolder(sDir_);
185  hDenLeptonPt = dbe.book1D("PtLeptonAll", "PtLeptonAll", 50, 0., 2500.);
186  hDenLeptonEta = dbe.book1D("EtaLeptonAll", "EtaLeptonAll", 30, -3., 3.);
187  hDenJetPt = dbe.book1D("PtLastJetAll", "PtLastJetAll", 60, 0., 3000.);
188  hDenJetEta = dbe.book1D("EtaLastJetAll", "EtaLastJetAll", 30, -3., 3.);
189  hNumLeptonPt = dbe.book1D("PtLeptonSel", "PtLeptonSel", 50, 0., 2500.);
190  hNumLeptonEta = dbe.book1D("EtaLeptonSel", "EtaLeptonSel", 30, -3., 3.);
191  hNumJetPt = dbe.book1D("PtLastJetSel", "PtLastJetSel", 60, 0., 3000.);
192  hNumJetEta = dbe.book1D("EtaLastJetSel", "EtaLastJetSel", 30, -3., 3.);
193  // determine number of bins for trigger monitoring
194  unsigned int nPaths = vsPaths_.size();
195  // monitored trigger occupancy for single lepton triggers
196  hNumTriggerMon = dbe.book1D("TriggerMonSel", "TriggerMonSel", nPaths, 0., nPaths);
197  hDenTriggerMon = dbe.book1D("TriggerMonAll", "TriggerMonAll", nPaths, 0., nPaths);
198  // set bin labels for trigger monitoring
200 }
void triggerBinLabels(const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
void B2GSingleLeptonHLTValidation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 204 of file B2GSingleLeptonHLTValidation.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

204  {
205  // The following says we do not know what parameters are allowed so do no
206  // validation
207  // Please change this to state exactly what you do use, even if it is no
208  // parameters
210  desc.setUnknown();
211  descriptions.addDefault(desc);
212 }
void addDefault(ParameterSetDescription const &psetDescription)
std::string B2GSingleLeptonHLTValidation::monitorPath ( const std::string &  label) const
inlineprivate

deduce monitorPath from label, the label is expected to be of type 'selectionPath:monitorPath'

Definition at line 61 of file B2GSingleLeptonHLTValidation.h.

References SummaryClient_cfi::labels, and triggerBinLabels().

Referenced by triggerBinLabels().

61 { return label.substr(label.find(':') + 1); };
char const * label
void B2GSingleLeptonHLTValidation::triggerBinLabels ( const std::vector< std::string > &  labels)
inlineprivate

set configurable labels for trigger monitoring histograms

Definition at line 112 of file B2GSingleLeptonHLTValidation.h.

References hDenTriggerMon, hNumTriggerMon, training_settings::idx, monitorPath(), and dqm::impl::MonitorElement::setBinLabel().

Referenced by bookHistograms(), and monitorPath().

112  {
113  for (unsigned int idx = 0; idx < labels.size(); ++idx) {
114  hNumTriggerMon->setBinLabel(idx + 1, "[" + monitorPath(labels[idx]) + "]", 1);
115  hDenTriggerMon->setBinLabel(idx + 1, "[" + monitorPath(labels[idx]) + "]", 1);
116  }
117 }
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::string monitorPath(const std::string &label) const

Member Data Documentation

edm::Ptr<reco::GsfElectron> B2GSingleLeptonHLTValidation::elec_
private

Definition at line 79 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::etaElectrons_
private

Definition at line 83 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::etaJets_
private

Definition at line 101 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::etaMuons_
private

Definition at line 91 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

MonitorElement* B2GSingleLeptonHLTValidation::hDenJetEta
private

Definition at line 75 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hDenJetPt
private

Definition at line 73 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hDenLeptonEta
private

Definition at line 71 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hDenLeptonPt
private

Definition at line 69 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hDenTriggerMon
private

Definition at line 77 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), bookHistograms(), and triggerBinLabels().

MonitorElement* B2GSingleLeptonHLTValidation::hNumJetEta
private

Definition at line 74 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hNumJetPt
private

Definition at line 72 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hNumLeptonEta
private

Definition at line 70 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hNumLeptonPt
private

Definition at line 68 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* B2GSingleLeptonHLTValidation::hNumTriggerMon
private

Definition at line 76 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), bookHistograms(), and triggerBinLabels().

bool B2GSingleLeptonHLTValidation::isAll_ = false
private

Definition at line 108 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::isoElectrons_
private

Definition at line 84 of file B2GSingleLeptonHLTValidation.h.

double B2GSingleLeptonHLTValidation::isoMuons_
private

Definition at line 92 of file B2GSingleLeptonHLTValidation.h.

bool B2GSingleLeptonHLTValidation::isSel_ = false
private

Definition at line 109 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

edm::Ptr<reco::Jet> B2GSingleLeptonHLTValidation::jet_
private

Definition at line 95 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

unsigned int B2GSingleLeptonHLTValidation::minElectrons_
private

Definition at line 85 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

unsigned int B2GSingleLeptonHLTValidation::minJets_
private

Definition at line 102 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

unsigned int B2GSingleLeptonHLTValidation::minMuons_
private

Definition at line 93 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

edm::Ptr<reco::Muon> B2GSingleLeptonHLTValidation::mu_
private

Definition at line 87 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::ptElectrons_
private

Definition at line 82 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::ptJets0_
private

Definition at line 99 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::ptJets1_
private

Definition at line 100 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::ptJets_
private

Definition at line 98 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

double B2GSingleLeptonHLTValidation::ptMuons_
private

Definition at line 90 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze().

std::string B2GSingleLeptonHLTValidation::sDir_
private

Definition at line 67 of file B2GSingleLeptonHLTValidation.h.

Referenced by bookHistograms().

std::string B2GSingleLeptonHLTValidation::sElectrons_
private

Definition at line 80 of file B2GSingleLeptonHLTValidation.h.

Referenced by B2GSingleLeptonHLTValidation().

std::string B2GSingleLeptonHLTValidation::sJets_
private

Definition at line 96 of file B2GSingleLeptonHLTValidation.h.

Referenced by B2GSingleLeptonHLTValidation().

std::string B2GSingleLeptonHLTValidation::sMuons_
private

Definition at line 88 of file B2GSingleLeptonHLTValidation.h.

Referenced by B2GSingleLeptonHLTValidation().

std::string B2GSingleLeptonHLTValidation::sTrigger_
private

Definition at line 104 of file B2GSingleLeptonHLTValidation.h.

Referenced by B2GSingleLeptonHLTValidation().

edm::EDGetTokenT<edm::View<reco::GsfElectron> > B2GSingleLeptonHLTValidation::tokElectrons_
private

Definition at line 81 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and B2GSingleLeptonHLTValidation().

edm::EDGetTokenT<edm::View<reco::Jet> > B2GSingleLeptonHLTValidation::tokJets_
private

Definition at line 97 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and B2GSingleLeptonHLTValidation().

edm::EDGetTokenT<edm::View<reco::Muon> > B2GSingleLeptonHLTValidation::tokMuons_
private

Definition at line 89 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and B2GSingleLeptonHLTValidation().

edm::EDGetTokenT<edm::TriggerResults> B2GSingleLeptonHLTValidation::tokTrigger_
private

Definition at line 105 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and B2GSingleLeptonHLTValidation().

std::vector<std::string> B2GSingleLeptonHLTValidation::vsPaths_
private

Definition at line 106 of file B2GSingleLeptonHLTValidation.h.

Referenced by analyze(), and bookHistograms().