#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 (const bool unprescale, const bool unmask) |
void | setVerbosity (const int verbosity) |
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 48 of file L1TGlobalUtil.cc.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 53 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 228 of file L1TGlobalUtil.h.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 234 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 245 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 253 of file L1TGlobalUtil.h.
References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.
|
virtual |
|
private |
Definition at line 30 of file L1TGlobalUtil.cc.
References connectstrParser::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 145 of file L1TGlobalUtil.h.
References m_decisionsFinal.
|
inline |
Definition at line 143 of file L1TGlobalUtil.h.
References m_decisionsInitial.
|
inline |
Definition at line 144 of file L1TGlobalUtil.h.
References m_decisionsInterm.
|
inlinestatic |
Definition at line 80 of file L1TGlobalUtil.h.
References corrVsCorr::filename, l1t::L1TGlobalUtilHelper::fillDescription(), iEvent, OverridePrescalesAndMasks(), retrieveL1(), retrieveL1Event(), retrieveL1Setup(), and AlCaHLTBitMon_QueryRunRegistry::string.
const bool l1t::L1TGlobalUtil::getAlgBitFromName | ( | const std::string & | AlgName, |
int & | bit | ||
) | const |
Definition at line 468 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 479 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, and m_decisionsInitial.
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getFinalDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 515 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_decisionsFinal, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getFinalDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 568 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_decisionsFinal, and edm::second().
Referenced by getFinalOR().
|
inline |
Definition at line 107 of file L1TGlobalUtil.h.
References getAlgBitFromName(), getAlgNameFromBit(), getFinalDecisionByBit(), getFinalDecisionByName(), getInitialDecisionByBit(), getInitialDecisionByName(), getIntermDecisionByBit(), getIntermDecisionByName(), getMaskByBit(), getMaskByName(), getPrescaleByBit(), getPrescaleByName(), m_finalOR, RecoTauDiscriminantConfiguration::mask, and AlCaHLTBitMon_QueryRunRegistry::string.
const bool l1t::L1TGlobalUtil::getInitialDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 490 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_decisionsInitial, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getInitialDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 546 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 505 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_decisionsInterm, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getIntermDecisionByName | ( | const std::string & | algName, |
bool & | decision | ||
) | const |
Definition at line 557 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 535 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::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 588 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 525 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_prescales, and edm::second().
Referenced by getFinalOR().
const bool l1t::L1TGlobalUtil::getPrescaleByName | ( | const std::string & | algName, |
int & | prescale | ||
) | const |
Definition at line 578 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_prescales, and edm::second().
Referenced by getFinalOR(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().
|
inline |
Definition at line 156 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getComment(), and m_l1GtMenu.
|
inline |
Definition at line 154 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getName(), and m_l1GtMenu.
|
inline |
Definition at line 155 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getVersion(), and m_l1GtMenu.
|
private |
Definition at line 288 of file L1TGlobalUtil.cc.
References cuy::col, relativeConstraints::empty, plotBeamSpotDB::first, createfilelist::int, geometryCSVtoXML::line, LogTrace, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_numberPhysTriggers, m_PreScaleColumn, m_preScaleFileName, findQualityFiles::size, split, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
inline |
Definition at line 151 of file L1TGlobalUtil.h.
References m_masks.
Referenced by retrieveL1Event(), and retrieveL1Setup().
|
inline |
Definition at line 160 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 67 of file L1TGlobalUtil.cc.
References connectstrParser::f1, edm::FileInPath::fullPath(), m_PreScaleColumn, and m_preScaleFileName.
Referenced by fillDescription().
|
inline |
Definition at line 159 of file L1TGlobalUtil.h.
References m_PreScaleColumn.
Referenced by HLTPrescaleProvider::prescaleSet().
|
inline |
Definition at line 148 of file L1TGlobalUtil.h.
References m_prescales.
|
private |
clear decision vectors on a menu change
Definition at line 411 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_maxNumberPhysTriggers, and edm::second().
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 453 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_masks, and m_maxNumberPhysTriggers.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 438 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::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 73 of file L1TGlobalUtil.cc.
References retrieveL1Event(), and retrieveL1Setup().
Referenced by fillDescription().
void l1t::L1TGlobalUtil::retrieveL1 | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
edm::EDGetToken | gtAlgToken | ||
) |
Definition at line 80 of file L1TGlobalUtil.cc.
References retrieveL1Event(), and retrieveL1Setup().
void l1t::L1TGlobalUtil::retrieveL1Event | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup | ||
) |
Definition at line 204 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 208 of file L1TGlobalUtil.cc.
References BXVector< T >::begin(), BXVector< T >::end(), plotBeamSpotDB::first, edm::Event::getByToken(), edm::HandleBase::isValid(), LogDebug, m_algorithmMap, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_finalOR, m_masks, m_PreScaleColumn, m_prescales, m_readPrescalesFromFile, m_triggerMaskAlgoTrig, m_uGtAlgBlk, masks(), edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.
void l1t::L1TGlobalUtil::retrieveL1Setup | ( | const edm::EventSetup & | evSetup | ) |
Definition at line 88 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::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 fillDescription(), HLTPrescaleProvider::init(), and retrieveL1().
|
inline |
Definition at line 98 of file L1TGlobalUtil.h.
References m_algorithmTriggersUnmasked, and m_algorithmTriggersUnprescaled.
|
inline |
Definition at line 103 of file L1TGlobalUtil.h.
References m_verbosity, and HIPAlignmentAlgorithm_cfi::verbosity.
|
private |
Definition at line 191 of file L1TGlobalUtil.h.
Referenced by getAlgBitFromName(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 184 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 183 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 216 of file L1TGlobalUtil.h.
Referenced by decisionsFinal(), getFinalDecisionByBit(), getFinalDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 214 of file L1TGlobalUtil.h.
Referenced by decisionsInitial(), getAlgNameFromBit(), getInitialDecisionByBit(), getInitialDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 215 of file L1TGlobalUtil.h.
Referenced by decisionsInterm(), getIntermDecisionByBit(), getIntermDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 187 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 211 of file L1TGlobalUtil.h.
Referenced by getFinalOR(), and retrieveL1Event().
|
private |
Definition at line 202 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 204 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 173 of file L1TGlobalUtil.h.
Referenced by gtTriggerMenuComment(), gtTriggerMenuName(), gtTriggerMenuVersion(), and retrieveL1Setup().
|
private |
Definition at line 174 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 180 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 179 of file L1TGlobalUtil.h.
Referenced by retrieveL1Setup().
|
private |
Definition at line 223 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Event().
|
private |
Definition at line 218 of file L1TGlobalUtil.h.
Referenced by getMaskByBit(), getMaskByName(), masks(), resetMaskVectors(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 195 of file L1TGlobalUtil.h.
Referenced by resetDecisionVectors(), resetMaskVectors(), and resetPrescaleVectors().
|
private |
Definition at line 200 of file L1TGlobalUtil.h.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 194 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 199 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), OverridePrescalesAndMasks(), prescaleColumn(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 203 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 198 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and OverridePrescalesAndMasks().
|
private |
Definition at line 217 of file L1TGlobalUtil.h.
Referenced by getPrescaleByBit(), getPrescaleByName(), prescales(), resetPrescaleVectors(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 178 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 205 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 208 of file L1TGlobalUtil.h.
Referenced by retrieveL1Event().
|
private |