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) | |
~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 | l1GtTriggerMenuLite_ |
std::vector< std::string > | l1SeedPaths_ |
edm::Handle< L1GtTriggerMenuLite > | triggerMenuLite_ |
edm::InputTag | triggerResults_ |
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 37 of file PrescaleWeightProvider.h.
PrescaleWeightProvider::PrescaleWeightProvider | ( | const edm::ParameterSet & | config | ) |
Definition at line 17 of file PrescaleWeightProvider.cc.
References configured_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), hltPaths_, l1GtTriggerMenuLite_, edm::InputTag::label(), edm::InputTag::process(), triggerResults_, and verbosity_.
|
inline |
Definition at line 55 of file PrescaleWeightProvider.h.
void PrescaleWeightProvider::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 47 of file PrescaleWeightProvider.cc.
References configured_, edm::Run::getByLabel(), hltConfig_, HLTConfigProvider::init(), init_, edm::HandleBase::isValid(), l1GtTriggerMenuLite_, edm::InputTag::label(), edm::InputTag::process(), HLTConfigProvider::size(), triggerMenuLite_, triggerResults_, and verbosity_.
|
private |
Definition at line 164 of file PrescaleWeightProvider.cc.
References l1SeedPaths_, and verbosity_.
Referenced by prescaleWeight().
int PrescaleWeightProvider::prescaleWeight | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 79 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(), HLTConfigProvider::triggerIndex(), triggerMenuLite_, triggerResults_, interactiveExample::ui, verbosity_, and CommonMethods::weight().
|
private |
Definition at line 39 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 41 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 40 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 49 of file PrescaleWeightProvider.h.
Referenced by initRun(), and PrescaleWeightProvider().
|
private |
Definition at line 44 of file PrescaleWeightProvider.h.
Referenced by parseL1Seeds(), and prescaleWeight().
|
private |
Definition at line 42 of file PrescaleWeightProvider.h.
Referenced by initRun(), and prescaleWeight().
|
private |
Definition at line 48 of file PrescaleWeightProvider.h.
Referenced by initRun(), prescaleWeight(), and PrescaleWeightProvider().
|
private |
Definition at line 47 of file PrescaleWeightProvider.h.
Referenced by initRun(), parseL1Seeds(), prescaleWeight(), and PrescaleWeightProvider().