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) |
template<typename T > | |
PrescaleWeightProvider (const edm::ParameterSet &config, edm::ConsumesCollector &&iC, T &module) | |
template<typename T > | |
PrescaleWeightProvider (const edm::ParameterSet &config, edm::ConsumesCollector &iC, T &module) | |
~PrescaleWeightProvider () | |
Private Member Functions | |
void | parseL1Seeds (const std::string &l1Seeds) |
PrescaleWeightProvider (const edm::ParameterSet &config, edm::ConsumesCollector &iC) | |
Private Attributes | |
bool | configured_ |
std::vector< std::string > | hltPaths_ |
std::unique_ptr < HLTPrescaleProvider > | hltPrescaleProvider_ |
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 50 of file PrescaleWeightProvider.h.
PrescaleWeightProvider::PrescaleWeightProvider | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | iC, | ||
T & | module | ||
) |
Definition at line 90 of file PrescaleWeightProvider.h.
PrescaleWeightProvider::PrescaleWeightProvider | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 95 of file PrescaleWeightProvider.h.
References hltPrescaleProvider_.
|
inline |
Definition at line 76 of file PrescaleWeightProvider.h.
|
private |
Definition at line 19 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_.
void PrescaleWeightProvider::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 56 of file PrescaleWeightProvider.cc.
References configured_, edm::Run::getByToken(), HltComparatorCreateWorkflow::hltConfig, hltPrescaleProvider_, init_, edm::HandleBase::isValid(), l1GtTriggerMenuLiteTag_, l1GtTriggerMenuLiteToken_, edm::InputTag::label(), edm::InputTag::process(), HLTConfigProvider::size(), triggerMenuLite_, triggerResultsTag_, and verbosity_.
|
private |
Definition at line 175 of file PrescaleWeightProvider.cc.
References l1SeedPaths_, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity_.
Referenced by prescaleWeight().
int PrescaleWeightProvider::prescaleWeight | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 89 of file PrescaleWeightProvider.cc.
References L1GtUtils::decision(), edm::InputTag::encode(), HltComparatorCreateWorkflow::hltConfig, HLTConfigProvider::hltL1GTSeeds(), hltPaths_, hltPrescaleProvider_, init_, edm::HandleBase::isValid(), l1SeedPaths_, parseL1Seeds(), L1GtUtils::prescaleFactor(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), triggerMenuLite_, triggerResults, triggerResultsTag_, triggerResultsToken_, interactiveExample::ui, verbosity_, and puppiForMET_cff::weight.
|
private |
Definition at line 52 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 65 of file PrescaleWeightProvider.h.
Referenced by prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 54 of file PrescaleWeightProvider.h.
Referenced by initRun(), prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 53 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 63 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 64 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 57 of file PrescaleWeightProvider.h.
Referenced by parseL1Seeds(), and prescaleWeight().
|
private |
Definition at line 55 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 61 of file PrescaleWeightProvider.h.
Referenced by initRun(), prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 62 of file PrescaleWeightProvider.h.
Referenced by prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 60 of file PrescaleWeightProvider.h.
Referenced by initRun(), parseL1Seeds(), prescaleWeight(), and PrescaleWeightProvider().