#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 50 of file L1TGlobalUtil.cc.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 55 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 231 of file L1TGlobalUtil.h.
l1t::L1TGlobalUtil::L1TGlobalUtil | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 237 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 248 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 256 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 148 of file L1TGlobalUtil.h.
References m_decisionsFinal.
Referenced by HcalIsoTrkAnalyzer::analyze().
|
inline |
Definition at line 146 of file L1TGlobalUtil.h.
References m_decisionsInitial.
|
inline |
Definition at line 147 of file L1TGlobalUtil.h.
References m_decisionsInterm.
|
inlinestatic |
Definition at line 83 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 463 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 474 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, and m_decisionsInitial.
Referenced by L1TdeStage2uGT::analyze(), and getFinalOR().
const bool l1t::L1TGlobalUtil::getFinalDecisionByBit | ( | int & | bit, |
bool & | decision | ||
) | const |
Definition at line 510 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 563 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_decisionsFinal, and edm::second().
Referenced by getFinalOR().
|
inline |
Definition at line 110 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 485 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 541 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 500 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 552 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 530 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 583 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 520 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::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 573 of file L1TGlobalUtil.cc.
References getAlgBitFromName(), m_prescales, and edm::second().
Referenced by getFinalOR(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().
|
inline |
Definition at line 159 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getComment(), and m_l1GtMenu.
|
inline |
Definition at line 157 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getName(), and m_l1GtMenu.
|
inline |
Definition at line 158 of file L1TGlobalUtil.h.
References L1TUtmTriggerMenu::getVersion(), and m_l1GtMenu.
|
private |
Definition at line 283 of file L1TGlobalUtil.cc.
References cuy::col, relativeConstraints::empty, plotBeamSpotDB::first, createfilelist::int, mps_splice::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 154 of file L1TGlobalUtil.h.
References m_masks.
Referenced by retrieveL1Setup().
|
inline |
Definition at line 163 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 72 of file L1TGlobalUtil.cc.
References connectstrParser::f1, edm::FileInPath::fullPath(), m_PreScaleColumn, and m_preScaleFileName.
Referenced by fillDescription().
|
inline |
Definition at line 162 of file L1TGlobalUtil.h.
References m_PreScaleColumn.
Referenced by HLTPrescaleProvider::prescaleSet().
|
inline |
Definition at line 151 of file L1TGlobalUtil.h.
References m_prescales.
Referenced by L1TdeStage2uGT::bookHistograms().
|
private |
clear decision vectors on a menu change
Definition at line 406 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 448 of file L1TGlobalUtil.cc.
References plotBeamSpotDB::first, m_masks, and m_maxNumberPhysTriggers.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 433 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 78 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 85 of file L1TGlobalUtil.cc.
References retrieveL1Event(), and retrieveL1Setup().
void l1t::L1TGlobalUtil::retrieveL1Event | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup | ||
) |
Definition at line 210 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 214 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_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 93 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 L1TdeStage2uGT::bookHistograms(), fillDescription(), HLTPrescaleProvider::init(), and retrieveL1().
|
inline |
Definition at line 101 of file L1TGlobalUtil.h.
References m_algorithmTriggersUnmasked, and m_algorithmTriggersUnprescaled.
|
inline |
Definition at line 106 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 68 of file L1TGlobalUtil.cc.
References m_l1GtMenu, and m_l1GtMenuCacheID.
|
private |
Definition at line 194 of file L1TGlobalUtil.h.
Referenced by getAlgBitFromName(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 187 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 186 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().
|
private |
Definition at line 219 of file L1TGlobalUtil.h.
Referenced by decisionsFinal(), getFinalDecisionByBit(), getFinalDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 217 of file L1TGlobalUtil.h.
Referenced by decisionsInitial(), getAlgNameFromBit(), getInitialDecisionByBit(), getInitialDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 218 of file L1TGlobalUtil.h.
Referenced by decisionsInterm(), getIntermDecisionByBit(), getIntermDecisionByName(), resetDecisionVectors(), and retrieveL1Event().
|
private |
Definition at line 190 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 214 of file L1TGlobalUtil.h.
Referenced by getFinalOR(), and retrieveL1Event().
|
private |
Definition at line 205 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 207 of file L1TGlobalUtil.h.
Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 176 of file L1TGlobalUtil.h.
Referenced by gtTriggerMenuComment(), gtTriggerMenuName(), gtTriggerMenuVersion(), retrieveL1Setup(), and valid().
|
private |
Definition at line 177 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Setup(), and valid().
|
private |
Definition at line 183 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 182 of file L1TGlobalUtil.h.
Referenced by retrieveL1Setup().
|
private |
Definition at line 226 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Event().
|
private |
Definition at line 221 of file L1TGlobalUtil.h.
Referenced by getMaskByBit(), getMaskByName(), masks(), resetMaskVectors(), and retrieveL1Setup().
|
private |
Definition at line 198 of file L1TGlobalUtil.h.
Referenced by resetDecisionVectors(), resetMaskVectors(), and resetPrescaleVectors().
|
private |
Definition at line 203 of file L1TGlobalUtil.h.
Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().
|
private |
Definition at line 197 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and retrieveL1Setup().
|
private |
Definition at line 202 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), OverridePrescalesAndMasks(), prescaleColumn(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 206 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 201 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and OverridePrescalesAndMasks().
|
private |
Definition at line 220 of file L1TGlobalUtil.h.
Referenced by getPrescaleByBit(), getPrescaleByName(), prescales(), resetPrescaleVectors(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 181 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().
|
private |
Definition at line 208 of file L1TGlobalUtil.h.
Referenced by L1TGlobalUtil(), and retrieveL1Setup().
|
private |
Definition at line 211 of file L1TGlobalUtil.h.
Referenced by retrieveL1Event().
|
private |