This class takes a vector of HLT paths and returns a weight based on their HLT and L1 prescales. The weight is equal to the lowest combined (L1*HLT) prescale of the selected paths. More...
#include "CommonTools/TriggerUtils/interface/PrescaleWeightProvider.h"
Public Member Functions | |
void | initRun (const edm::Run &run, const edm::EventSetup &setup) |
int | prescaleWeight (const edm::Event &event, const edm::EventSetup &setup) |
PrescaleWeightProvider (const edm::ParameterSet &config, edm::ConsumesCollector &&iC) | |
PrescaleWeightProvider (const edm::ParameterSet &config, edm::ConsumesCollector &iC) | |
~PrescaleWeightProvider () | |
Private Member Functions | |
void | parseL1Seeds (const std::string &l1Seeds) |
Private Attributes | |
bool | configured_ |
HLTConfigProvider | hltConfig_ |
std::vector< std::string > | hltPaths_ |
bool | init_ |
edm::InputTag | l1GtTriggerMenuLiteTag_ |
edm::EDGetTokenT < L1GtTriggerMenuLite > | l1GtTriggerMenuLiteToken_ |
std::vector< std::string > | l1SeedPaths_ |
edm::Handle< L1GtTriggerMenuLite > | triggerMenuLite_ |
edm::InputTag | triggerResultsTag_ |
edm::EDGetTokenT < edm::TriggerResults > | triggerResultsToken_ |
unsigned | verbosity_ |
This class takes a vector of HLT paths and returns a weight based on their HLT and L1 prescales. The weight is equal to the lowest combined (L1*HLT) prescale of the selected paths.
Definition at line 35 of file PrescaleWeightProvider.h.
|
inline |
Definition at line 54 of file PrescaleWeightProvider.h.
PrescaleWeightProvider::PrescaleWeightProvider | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 16 of file PrescaleWeightProvider.cc.
References configured_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), hltPaths_, edm::InRun, l1GtTriggerMenuLiteTag_, l1GtTriggerMenuLiteToken_, edm::InputTag::label(), edm::ConsumesCollector::mayConsume(), edm::InputTag::process(), triggerResultsTag_, triggerResultsToken_, and verbosity_.
|
inline |
Definition at line 56 of file PrescaleWeightProvider.h.
void PrescaleWeightProvider::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 52 of file PrescaleWeightProvider.cc.
References configured_, edm::Run::getByToken(), hltConfig_, HLTConfigProvider::init(), init_, edm::HandleBase::isValid(), l1GtTriggerMenuLiteTag_, l1GtTriggerMenuLiteToken_, edm::InputTag::label(), edm::InputTag::process(), HLTConfigProvider::size(), triggerMenuLite_, triggerResultsTag_, and verbosity_.
Referenced by AnotherPrimaryVertexAnalyzer::beginRun().
|
private |
Definition at line 169 of file PrescaleWeightProvider.cc.
References l1SeedPaths_, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity_.
Referenced by prescaleWeight().
int PrescaleWeightProvider::prescaleWeight | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 84 of file PrescaleWeightProvider.cc.
References L1GtUtils::decision(), edm::InputTag::encode(), hltConfig_, HLTConfigProvider::hltL1GTSeeds(), hltPaths_, init_, edm::HandleBase::isValid(), l1SeedPaths_, parseL1Seeds(), L1GtUtils::prescaleFactor(), HLTConfigProvider::prescaleValue(), L1GtUtils::retrieveL1EventSetup(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), triggerMenuLite_, triggerResults, triggerResultsTag_, triggerResultsToken_, interactiveExample::ui, verbosity_, and histoStyle::weight.
Referenced by AnotherPrimaryVertexAnalyzer::analyze().
|
private |
Definition at line 37 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 39 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 50 of file PrescaleWeightProvider.h.
Referenced by prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 38 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 48 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 49 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 42 of file PrescaleWeightProvider.h.
Referenced by parseL1Seeds(), and prescaleWeight().
|
private |
Definition at line 40 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 46 of file PrescaleWeightProvider.h.
Referenced by initRun(), prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 47 of file PrescaleWeightProvider.h.
Referenced by prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 45 of file PrescaleWeightProvider.h.
Referenced by initRun(), parseL1Seeds(), prescaleWeight(), and PrescaleWeightProvider().