#include <HLTPrescaleProvider.h>
Public Member Functions | |
HLTConfigProvider const & | hltConfigProvider () const |
template<typename T > | |
HLTPrescaleProvider (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module) | |
template<typename T > | |
HLTPrescaleProvider (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module) | |
bool | init (const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed) |
L1GtUtils const & | l1GtUtils () const |
l1t::L1TGlobalUtil const & | l1tGlobalUtil () const |
int | prescaleSet (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
unsigned int | prescaleValue (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) |
combining the two methods above More... | |
std::pair< int, int > | prescaleValues (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) |
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path. More... | |
std::pair< std::vector< std::pair< std::string, int > >, int > | prescaleValuesInDetail (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) |
Private Attributes | |
unsigned char | count_ [5] = {0,0,0,0,0} |
HLTConfigProvider | hltConfigProvider_ |
L1GtUtils | l1GtUtils_ |
l1t::L1TGlobalUtil | l1tGlobalUtil_ |
This class provides access routines to get hold of the HLT Configuration
Originally the functions in here were in HLTConfigProvider. The functions that use L1GtUtils and get products from the Event were moved into this class in 2015 when the consumes function calls were added. W. David Dagenhart
See header file for documentation
Definition at line 35 of file HLTPrescaleProvider.h.
HLTPrescaleProvider::HLTPrescaleProvider | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
T & | module | ||
) |
Definition at line 90 of file HLTPrescaleProvider.h.
HLTPrescaleProvider::HLTPrescaleProvider | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 96 of file HLTPrescaleProvider.h.
|
inline |
Definition at line 55 of file HLTPrescaleProvider.h.
Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), HLTEventAnalyzerAOD::analyze(), IsoTrig::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerAOD::beginRun(), pat::PATTriggerProducer::beginRun(), CandidateTriggerObjectProducer::produce(), and pat::PATTriggerProducer::produce().
bool HLTPrescaleProvider::init | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup, | ||
const std::string & | processName, | ||
bool & | changed | ||
) |
Run-dependent initialisation (non-const method) "init" return value indicates whether intitialisation has succeeded "changed" parameter indicates whether the config has actually changed
L1 GTA V3: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideL1TriggerL1GtUtils#Version_3
Definition at line 20 of file HLTPrescaleProvider.cc.
References count_, L1GtUtils::getL1GtRunCache(), hltConfigProvider_, HLTConfigProvider::init(), l1GtUtils_, l1tGlobalUtil_, HLTConfigProvider::l1tType(), mps_fire::result, l1t::L1TGlobalUtil::retrieveL1Setup(), useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by CandidateTriggerObjectProducer::beginRun(), HLTEventAnalyzerAOD::beginRun(), pat::PATTriggerProducer::beginRun(), IsoTrig::beginRun(), EwkElecDQM::dqmBeginRun(), and EwkMuDQM::dqmBeginRun().
|
inline |
Definition at line 56 of file HLTPrescaleProvider.h.
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Definition at line 57 of file HLTPrescaleProvider.h.
References iEvent, and AlCaHLTBitMon_QueryRunRegistry::string.
int HLTPrescaleProvider::prescaleSet | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
HLT prescale values via (L1) EventSetup current (default) prescale set index - to be taken from L1GtUtil via Event
error - notify user!
Definition at line 47 of file HLTPrescaleProvider.cc.
References L1GtUtils::AlgorithmTrigger, count_, countMax(), L1GtUtils::getL1GtRunCache(), hltConfigProvider_, l1GtUtils_, l1tGlobalUtil_, HLTConfigProvider::l1tType(), l1t::L1TGlobalUtil::prescaleColumn(), L1GtUtils::prescaleFactorSetIndex(), HLTConfigProvider::processName(), l1t::L1TGlobalUtil::retrieveL1Event(), L1GtUtils::TechnicalTrigger, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), prescaleValue(), prescaleValues(), prescaleValuesInDetail(), and pat::PATTriggerProducer::produce().
unsigned int HLTPrescaleProvider::prescaleValue | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const std::string & | trigger | ||
) |
combining the two methods above
Definition at line 87 of file HLTPrescaleProvider.cc.
References hltConfigProvider_, prescaleSet(), and HLTConfigProvider::prescaleValue().
std::pair< int, int > HLTPrescaleProvider::prescaleValues | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const std::string & | trigger | ||
) |
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.
error - can't handle properly multiple L1GTSeed modules
error - can't handle properly multiple L1TSeed modules
Definition at line 99 of file HLTPrescaleProvider.cc.
References count_, countMax(), FrontierConditions_GlobalTag_cff::dump, L1GtUtils::getL1GtRunCache(), l1t::L1TGlobalUtil::getPrescaleByName(), hltConfigProvider_, HLTConfigProvider::hltL1GTSeeds(), HLTConfigProvider::hltL1TSeeds(), mps_fire::i, l1GtUtils_, l1tGlobalUtil_, HLTConfigProvider::l1tType(), L1GtUtils::prescaleFactor(), prescaleSet(), HLTConfigProvider::prescaleValue(), mps_fire::result, l1t::L1TGlobalUtil::retrieveL1Event(), AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by IsoTrig::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), and CandidateTriggerObjectProducer::produce().
std::pair< std::vector< std::pair< std::string, int > >, int > HLTPrescaleProvider::prescaleValuesInDetail | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const std::string & | trigger | ||
) |
error - can't handle properly multiple L1GTSeed modules
error - can't handle properly multiple L1TSeed modules
Definition at line 208 of file HLTPrescaleProvider.cc.
References funct::abs(), count_, countMax(), FrontierConditions_GlobalTag_cff::dump, L1GtUtils::getL1GtRunCache(), l1t::L1TGlobalUtil::getPrescaleByName(), edm::Event::getRun(), hltConfigProvider_, HLTConfigProvider::hltL1GTSeeds(), HLTConfigProvider::hltL1TSeeds(), mps_fire::i, l1GtUtils_, l1tGlobalUtil_, HLTConfigProvider::l1tType(), python.rootplot.argparse::message, prescaleSet(), HLTConfigProvider::prescaleValue(), mps_fire::result, l1t::L1TGlobalUtil::retrieveL1Event(), AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by HLTEventAnalyzerAOD::analyzeTrigger(), and pat::PATTriggerProducer::produce().
|
private |
Definition at line 85 of file HLTPrescaleProvider.h.
Referenced by init(), prescaleSet(), prescaleValues(), and prescaleValuesInDetail().
|
private |
Definition at line 82 of file HLTPrescaleProvider.h.
Referenced by init(), prescaleSet(), prescaleValue(), prescaleValues(), and prescaleValuesInDetail().
|
private |
Definition at line 83 of file HLTPrescaleProvider.h.
Referenced by init(), prescaleSet(), prescaleValues(), and prescaleValuesInDetail().
|
private |
Definition at line 84 of file HLTPrescaleProvider.h.
Referenced by init(), prescaleSet(), prescaleValues(), and prescaleValuesInDetail().