#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 |
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 | |
HLTConfigProvider | hltConfigProvider_ |
L1GtUtils | l1GtUtils_ |
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 33 of file HLTPrescaleProvider.h.
HLTPrescaleProvider::HLTPrescaleProvider | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
T & | module | ||
) |
Definition at line 84 of file HLTPrescaleProvider.h.
HLTPrescaleProvider::HLTPrescaleProvider | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 90 of file HLTPrescaleProvider.h.
|
inline |
Definition at line 53 of file HLTPrescaleProvider.h.
References hltConfigProvider_.
Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), HLTEventAnalyzerAOD::analyze(), IsoTrig::analyze(), IsoTrackCalib::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerAOD::beginRun(), pat::PATTriggerProducer::beginRun(), TriggerJSONMonitoring::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 19 of file HLTPrescaleProvider.cc.
References L1GtUtils::getL1GtRunCache(), hltConfigProvider_, HLTConfigProvider::init(), l1GtUtils_, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by CandidateTriggerObjectProducer::beginRun(), HLTEventAnalyzerAOD::beginRun(), pat::PATTriggerProducer::beginRun(), IsoTrig::beginRun(), IsoTrackCalib::beginRun(), TriggerJSONMonitoring::beginRun(), GammaJetAnalysis::beginRun(), EwkElecDQM::dqmBeginRun(), and EwkMuDQM::dqmBeginRun().
|
inline |
Definition at line 54 of file HLTPrescaleProvider.h.
References l1GtUtils_.
Referenced by pat::PATTriggerProducer::produce().
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 30 of file HLTPrescaleProvider.cc.
References L1GtUtils::AlgorithmTrigger, assert(), L1GtUtils::getL1GtRunCache(), l1GtUtils_, L1GtUtils::prescaleFactorSetIndex(), L1GtUtils::TechnicalTrigger, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), TriggerJSONMonitoring::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 51 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
Definition at line 63 of file HLTPrescaleProvider.cc.
References hcal_timing_source_file_cfg::dump, L1GtUtils::getL1GtRunCache(), hltConfigProvider_, HLTConfigProvider::hltL1GTSeeds(), i, l1GtUtils_, L1GtUtils::prescaleFactor(), prescaleSet(), HLTConfigProvider::prescaleValue(), query::result, AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by IsoTrig::analyze(), IsoTrackCalib::analyze(), GammaJetAnalysis::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
Definition at line 117 of file HLTPrescaleProvider.cc.
References funct::abs(), hcal_timing_source_file_cfg::dump, L1GtUtils::getL1GtRunCache(), edm::Event::getRun(), hltConfigProvider_, HLTConfigProvider::hltL1GTSeeds(), i, l1GtUtils_, python.rootplot.argparse::message, prescaleSet(), HLTConfigProvider::prescaleValue(), query::result, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by HLTEventAnalyzerAOD::analyzeTrigger(), and pat::PATTriggerProducer::produce().
|
private |
Definition at line 79 of file HLTPrescaleProvider.h.
Referenced by hltConfigProvider(), init(), prescaleValue(), prescaleValues(), and prescaleValuesInDetail().
|
private |
Definition at line 80 of file HLTPrescaleProvider.h.
Referenced by init(), l1GtUtils(), prescaleSet(), prescaleValues(), and prescaleValuesInDetail().