#include <L1TGlobalUtil.h>
Public Member Functions | |
const std::vector< std::pair< std::string, bool > > & | decisionsFinal () |
const std::vector< std::pair< std::string, bool > > & | decisionsInitial () |
const std::vector< std::pair< std::string, bool > > & | decisionsInterm () |
const bool | getAlgBitFromName (const std::string &AlgName, int &bit) const |
const bool | getAlgNameFromBit (int &bit, std::string &AlgName) const |
const bool | getFinalDecisionByBit (int &bit, bool &decision) const |
const bool | getFinalDecisionByName (const std::string &algName, bool &decision) const |
bool | getFinalOR () const |
const bool | getInitialDecisionByBit (int &bit, bool &decision) const |
const bool | getInitialDecisionByName (const std::string &algName, bool &decision) const |
const bool | getIntermDecisionByBit (int &bit, bool &decision) const |
const bool | getIntermDecisionByName (const std::string &algName, bool &decision) const |
const bool | getMaskByBit (int &bit, std::vector< int > &mask) const |
const bool | getMaskByName (const std::string &algName, std::vector< int > &mask) const |
const bool | getPrescaleByBit (int &bit, int &prescale) const |
const bool | getPrescaleByName (const std::string &algName, int &prescale) const |
const std::string & | gtTriggerMenuComment () const |
const std::string & | gtTriggerMenuName () const |
const std::string & | gtTriggerMenuVersion () const |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC) | |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC) | |
template<typename T > | |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module) | |
template<typename T > | |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module) | |
template<typename T > | |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag) | |
template<typename T > | |
L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag) | |
const std::vector< std::pair< std::string, std::vector< int > > > & | masks () |
unsigned int | numberOfPreScaleColumns () const |
void | OverridePrescalesAndMasks (std::string filename, unsigned int psColumn=1) |
unsigned int | prescaleColumn () const |
const std::vector< std::pair< std::string, int > > & | prescales () |
void | retrieveL1 (const edm::Event &iEvent, const edm::EventSetup &evSetup) |
initialize the class (mainly reserve) More... | |
void | retrieveL1 (const edm::Event &iEvent, const edm::EventSetup &evSetup, edm::EDGetToken gtAlgToken) |
void | retrieveL1Event (const edm::Event &iEvent, const edm::EventSetup &evSetup) |
void | retrieveL1Event (const edm::Event &iEvent, const edm::EventSetup &evSetup, edm::EDGetToken gtAlgToken) |
void | retrieveL1Setup (const edm::EventSetup &evSetup) |
void | setUnprescaledUnmasked (bool unprescale, bool unmask) |
void | setVerbosity (const int verbosity) |
bool | valid () const |
check that the L1TGlobalUtil has been properly initialised More... | |
virtual | ~L1TGlobalUtil () |
destructor More... | |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &desc) |
Private Member Functions | |
L1TGlobalUtil () | |
void | loadPrescalesAndMasks () |
void | resetDecisionVectors () |
clear decision vectors on a menu change More... | |
void | resetMaskVectors () |
void | resetPrescaleVectors () |
Private Attributes | |
const std::map< std::string, L1TUtmAlgorithm > * | m_algorithmMap |
bool | m_algorithmTriggersUnmasked |
bool | m_algorithmTriggersUnprescaled |
std::vector< std::pair< std::string, bool > > | m_decisionsFinal |
std::vector< std::pair< std::string, bool > > | m_decisionsInitial |
std::vector< std::pair< std::string, bool > > | m_decisionsInterm |
bool | m_filledPrescales |
bool | m_finalOR |
std::vector< std::vector< int > > | m_initialPrescaleFactorsAlgoTrig |
const std::map< int, std::vector< int > > | m_initialTriggerMaskAlgoTrig |
const L1TUtmTriggerMenu * | m_l1GtMenu |
unsigned long long | m_l1GtMenuCacheID |
unsigned long long | m_l1GtPfAlgoCacheID |
const l1t::PrescalesVetosHelper * | m_l1GtPrescalesVetoes |
std::unique_ptr< L1TGlobalUtilHelper > | m_l1tGlobalUtilHelper |
std::vector< std::pair< std::string, std::vector< int > > > | m_masks |
const unsigned int | m_maxNumberPhysTriggers = 512 |
unsigned int | m_numberOfPreScaleColumns |
unsigned int | m_numberPhysTriggers |
unsigned int | m_PreScaleColumn |
const std::vector< std::vector< int > > * | m_prescaleFactorsAlgoTrig |
std::string | m_preScaleFileName |
std::vector< std::pair< std::string, int > > | m_prescales |
bool | m_readPrescalesFromFile |
const std::map< int, std::vector< int > > * | m_triggerMaskAlgoTrig |
edm::Handle< BXVector< GlobalAlgBlk > > | m_uGtAlgBlk |
int | m_verbosity |
verbosity level More... | |
Definition at line 31 of file L1TGlobalUtil.h.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 46 of file L1TGlobalUtil.cc.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 49 of file L1TGlobalUtil.cc.
References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
T & | module | ||
) |
Definition at line 216 of file L1TGlobalUtil.h.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 220 of file L1TGlobalUtil.h.
References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
T & | module, | ||
edm::InputTag const & | l1tAlgBlkInputTag, | ||
edm::InputTag const & | l1tExtBlkInputTag | ||
) |
Definition at line 226 of file L1TGlobalUtil.h.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module, | ||
edm::InputTag const & | l1tAlgBlkInputTag, | ||
edm::InputTag const & | l1tExtBlkInputTag | ||
) |
Definition at line 234 of file L1TGlobalUtil.h.
References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.
|
virtual |
|
private |
Definition at line 28 of file L1TGlobalUtil.cc.
References DeadROC_duringRun::f1, edm::FileInPath::fullPath(), m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_filledPrescales, m_l1GtMenuCacheID, m_l1GtPfAlgoCacheID, m_numberPhysTriggers, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_preScaleFileName, m_readPrescalesFromFile, and m_triggerMaskAlgoTrig.
Referenced by numberOfPreScaleColumns().
|
inline |
Definition at line 136 of file L1TGlobalUtil.h.
References m_decisionsFinal.
Referenced by HcalIsoTrkAnalyzer::analyze().
|
inline |
Definition at line 134 of file L1TGlobalUtil.h.
References m_decisionsInitial.
|
inline |
Definition at line 135 of file L1TGlobalUtil.h.
References m_decisionsInterm.
|
inlinestatic |
Definition at line 75 of file L1TGlobalUtil.h.
References corrVsCorr::filename, l1t::L1TGlobalUtilHelper::fillDescription(), iEvent, OverridePrescalesAndMasks(), HLT_2018_cff::psColumn, retrieveL1(), retrieveL1Event(), retrieveL1Setup(), and AlCaHLTBitMon_QueryRunRegistry::string.
const bool l1t::L1TGlobalUtil::getAlgBitFromName | ( | const std::string & | AlgName, |
int & | bit | ||
) | const |
Definition at line 429 of file L1TGlobalUtil.cc.
References m_algorithmMap.
Referenced by getFinalDecisionByName(), getFinalOR(), getInitialDecisionByName(), getIntermDecisionByName(), getMaskByName(), and getPrescaleByName().
const bool l1t::L1TGlobalUtil::getAlgNameFromBit | ( | int & | bit, |
std::string & | AlgName | ||
) | const |
Definition at line 439 of file L1TGlobalUtil.cc.
References dqmdumpme::first, and m_decisionsInitial.
Referenced by L1TdeStage2uGT::analyze(), and getFinalOR().
const bool l1t::L1TGlobalUtil::getFinalDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 471 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_decisionsFinal, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getFinalDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 519 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_decisionsFinal, and edm::second().
Referenced by getFinalOR().
|
inline |
Definition at line 98 of file L1TGlobalUtil.h.
References getAlgBitFromName(), getAlgNameFromBit(), getFinalDecisionByBit(), getFinalDecisionByName(), getInitialDecisionByBit(), getInitialDecisionByName(), getIntermDecisionByBit(), getIntermDecisionByName(), getMaskByBit(), getMaskByName(), getPrescaleByBit(), getPrescaleByName(), m_finalOR, and AlCaHLTBitMon_QueryRunRegistry::string.
const bool l1t::L1TGlobalUtil::getInitialDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 448 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_decisionsInitial, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getInitialDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 499 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_decisionsInitial, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getIntermDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 462 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_decisionsInterm, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getIntermDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 509 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_decisionsInterm, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getMaskByBit | ( | int & | bit, |
std::vector< int > & | mask | ||
) | const |
Definition at line 489 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_masks, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getMaskByName | ( | const std::string & | algName, |
std::vector< int > & | mask | ||
) | const |
Definition at line 537 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_masks, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getPrescaleByBit | ( | int & | bit, |
int & | prescale | ||
) | const |
Definition at line 480 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_prescales, and edm::second().
Referenced by L1TdeStage2uGT::analyze(), and getFinalOR().
const bool l1t::L1TGlobalUtil::getPrescaleByName | ( | const std::string & | algName, |
int & | prescale | ||
) | const |
Definition at line 528 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_prescales, and edm::second().
Referenced by getFinalOR(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().
|
inline |
Definition at line 147 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getComment(), and m_l1GtMenu.
|
inline |
Definition at line 145 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getName(), and m_l1GtMenu.
|
inline |
Definition at line 146 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getVersion(), and m_l1GtMenu.
|
private |
Definition at line 270 of file L1TGlobalUtil.cc.
References cuy::col, relativeConstraints::empty, dqmdumpme::first, createfilelist::int, mps_splice::line, LogTrace, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_numberPhysTriggers, m_PreScaleColumn, m_preScaleFileName, findQualityFiles::size, cms::dd::split(), AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
inline |
Definition at line 142 of file L1TGlobalUtil.h.
References m_masks.
Referenced by retrieveL1Setup().
|
inline |
Definition at line 151 of file L1TGlobalUtil.h.
References L1TGlobalUtil(), loadPrescalesAndMasks(), m_numberOfPreScaleColumns, resetDecisionVectors(), resetMaskVectors(), and resetPrescaleVectors().
void l1t::L1TGlobalUtil::OverridePrescalesAndMasks | ( | std::string | filename, |
unsigned int | psColumn = 1 |
||
) |
Definition at line 62 of file L1TGlobalUtil.cc.
References DeadROC_duringRun::f1, edm::FileInPath::fullPath(), m_PreScaleColumn, m_preScaleFileName, and HLT_2018_cff::psColumn.
Referenced by fillDescription().
|
inline |
Definition at line 150 of file L1TGlobalUtil.h.
References m_PreScaleColumn.
Referenced by HLTPrescaleProvider::prescaleSet().
|
inline |
Definition at line 139 of file L1TGlobalUtil.h.
References m_prescales.
Referenced by L1TdeStage2uGT::bookHistograms().
|
private |
clear decision vectors on a menu change
Definition at line 386 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_maxNumberPhysTriggers, and edm::second().
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 418 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_masks, and m_maxNumberPhysTriggers.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 407 of file L1TGlobalUtil.cc.
References dqmdumpme::first, m_maxNumberPhysTriggers, m_prescales, and edm::second().
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
void l1t::L1TGlobalUtil::retrieveL1 | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup | ||
) |
initialize the class (mainly reserve)
Definition at line 68 of file L1TGlobalUtil.cc.
References retrieveL1Event(), and retrieveL1Setup().
Referenced by L1TdeStage2uGT::analyze(), HcalIsoTrkAnalyzer::analyze(), and fillDescription().
void l1t::L1TGlobalUtil::retrieveL1 | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
edm::EDGetToken | gtAlgToken | ||
) |
Definition at line 75 of file L1TGlobalUtil.cc.
References retrieveL1Event(), and retrieveL1Setup().
void l1t::L1TGlobalUtil::retrieveL1Event | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup | ||
) |
Definition at line 198 of file L1TGlobalUtil.cc.
References m_l1tGlobalUtilHelper.
Referenced by fillDescription(), HLTPrescaleProvider::prescaleSet(), and retrieveL1().
void l1t::L1TGlobalUtil::retrieveL1Event | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
edm::EDGetToken | gtAlgToken | ||
) |
Definition at line 202 of file L1TGlobalUtil.cc.
References dqmdumpme::first, edm::Event::getByToken(), edm::HandleBase::isValid(), LogDebug, m_algorithmMap, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_finalOR, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_prescales, m_readPrescalesFromFile, m_uGtAlgBlk, edm::Event::run(), edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.
void l1t::L1TGlobalUtil::retrieveL1Setup | ( | const edm::EventSetup & | evSetup | ) |
Definition at line 84 of file L1TGlobalUtil.cc.
References dqmdumpme::first, edm::EventSetup::get(), L1TUtmTriggerMenu::getAlgorithmMap(), loadPrescalesAndMasks(), LogDebug, LogTrace, m_algorithmMap, m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_filledPrescales, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtPfAlgoCacheID, m_l1GtPrescalesVetoes, m_masks, m_numberOfPreScaleColumns, m_numberPhysTriggers, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_prescales, m_readPrescalesFromFile, m_triggerMaskAlgoTrig, masks(), or, l1t::PrescalesVetosHelper::prescaleTable(), edm::ESHandle< T >::product(), l1t::PrescalesVetosHelper::readFromEventSetup(), resetDecisionVectors(), resetMaskVectors(), resetPrescaleVectors(), edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, and l1t::PrescalesVetosHelper::triggerAlgoBxMask().
Referenced by L1TdeStage2uGT::bookHistograms(), fillDescription(), HLTPrescaleProvider::init(), and retrieveL1().
|
inline |
Definition at line 91 of file L1TGlobalUtil.h.
References m_algorithmTriggersUnmasked, and m_algorithmTriggersUnprescaled.
|
inline |
Definition at line 96 of file L1TGlobalUtil.h.
References m_verbosity, and HIPAlignmentAlgorithm_cfi::verbosity.
bool l1t::L1TGlobalUtil::valid | ( | ) | const |
check that the L1TGlobalUtil has been properly initialised
Definition at line 60 of file L1TGlobalUtil.cc.
References m_l1GtMenu, and m_l1GtMenuCacheID.
|
private |
Definition at line 180 of file L1TGlobalUtil.h.
Referenced by getAlgBitFromName(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 173 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 172 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 205 of file L1TGlobalUtil.h.
Referenced by decisionsFinal(), getFinalDecisionByBit(), getFinalDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 203 of file L1TGlobalUtil.h.
Referenced by decisionsInitial(), getAlgNameFromBit(), getInitialDecisionByBit(), getInitialDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 204 of file L1TGlobalUtil.h.
Referenced by decisionsInterm(), getIntermDecisionByBit(), getIntermDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 176 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 200 of file L1TGlobalUtil.h.
Referenced by getFinalOR(), and retrieveL1Event().
|
private |
Definition at line 191 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 193 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 163 of file L1TGlobalUtil.h.
Referenced by gtTriggerMenuComment(), gtTriggerMenuName(), gtTriggerMenuVersion(), retrieveL1Setup(), and valid().
|
private |
Definition at line 164 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and valid().
|
private |
Definition at line 169 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 168 of file L1TGlobalUtil.h.
Referenced by retrieveL1Setup().
|
private |
Definition at line 212 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Event().
|
private |
Definition at line 207 of file L1TGlobalUtil.h.
Referenced by getMaskByBit(), getMaskByName(), masks(), resetMaskVectors(), and retrieveL1Setup().
|
private |
Definition at line 184 of file L1TGlobalUtil.h.
Referenced by resetDecisionVectors(), resetMaskVectors(), and resetPrescaleVectors().
|
private |
Definition at line 189 of file L1TGlobalUtil.h.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 183 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 188 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), OverridePrescalesAndMasks(), prescaleColumn(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 192 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 187 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and OverridePrescalesAndMasks().
|
private |
Definition at line 206 of file L1TGlobalUtil.h.
Referenced by getPrescaleByBit(), getPrescaleByName(), prescales(), resetPrescaleVectors(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 167 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 194 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 197 of file L1TGlobalUtil.h.
Referenced by retrieveL1Event().
|
private |