Go to the documentation of this file.
3 #ifndef L1TGlobal_L1TGlobalUtil_h
4 #define L1TGlobal_L1TGlobalUtil_h
138 const bool getMaskByBit(
int& bit, std::vector<int>& mask)
const;
160 inline const std::vector<std::pair<std::string, std::vector<int>>>&
masks() {
return m_masks; }
224 std::vector<std::pair<std::string, std::vector<int>>>
m_masks;
238 template <
typename T>
245 template <
typename T>
256 template <
typename T>
265 template <
typename T>
void OverridePrescalesAndMasks(std::string filename, unsigned int psColumn=1)
const std::string & gtTriggerMenuComment() const
const std::vector< std::pair< std::string, bool > > & decisionsInterm()
unsigned int m_numberOfPreScaleColumns
const bool getPrescaleByBit(int &bit, int &prescale) const
unsigned int m_PreScaleColumn
const l1t::PrescalesVetosHelper * m_l1GtPrescalesVetoes
static void fillDescription(edm::ParameterSetDescription &desc)
unsigned int numberOfPreScaleColumns() const
bool valid() const
check that the L1TGlobalUtil has been properly initialised
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
std::vector< std::pair< std::string, bool > > m_decisionsInterm
const bool getFinalDecisionByName(const std::string &algName, bool &decision) const
const L1TUtmTriggerMenu * m_l1GtMenu
void retrieveL1Setup(const edm::EventSetup &evSetup)
void eventSetupConsumes(edm::ConsumesCollector &iC, UseEventSetupIn useEventSetupIn)
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
unsigned long long m_l1GtMenuCacheID
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const std::vector< std::pair< std::string, int > > & prescales()
void loadPrescalesAndMasks()
const bool getFinalDecisionByBit(int &bit, bool &decision) const
const bool getMaskByName(const std::string &algName, std::vector< int > &mask) const
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuEventToken
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
static void fillDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuRunToken
const unsigned int m_maxNumberPhysTriggers
const std::vector< std::pair< std::string, bool > > & decisionsFinal()
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
edm::ESGetToken< L1TGlobalPrescalesVetos, L1TGlobalPrescalesVetosRcd > m_L1TGlobalPrescalesVetosRunToken
bool m_readPrescalesFromFile
const bool getAlgNameFromBit(int &bit, std::string &AlgName) const
unsigned long long m_l1GtPfAlgoCacheID
std::vector< std::pair< std::string, bool > > m_decisionsFinal
unsigned int prescaleColumn() const
const std::string & gtTriggerMenuVersion() const
std::string m_preScaleFileName
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
const std::string & gtTriggerMenuName() const
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup)
initialize the class (mainly reserve)
const bool getInitialDecisionByBit(int &bit, bool &decision) const
const bool getIntermDecisionByBit(int &bit, bool &decision) const
void resetPrescaleVectors()
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
const std::vector< std::pair< std::string, bool > > & decisionsInitial()
const std::map< int, std::vector< int > > m_initialTriggerMaskAlgoTrig
int m_verbosity
verbosity level
edm::Handle< BXVector< GlobalAlgBlk > > m_uGtAlgBlk
void resetDecisionVectors()
clear decision vectors on a menu change
std::vector< std::pair< std::string, bool > > m_decisionsInitial
const bool getIntermDecisionByName(const std::string &algName, bool &decision) const
void setVerbosity(const int verbosity)
const bool getInitialDecisionByName(const std::string &algName, bool &decision) const
edm::ESGetToken< L1TGlobalPrescalesVetos, L1TGlobalPrescalesVetosRcd > m_L1TGlobalPrescalesVetosEventToken
std::vector< std::vector< int > > m_initialPrescaleFactorsAlgoTrig
std::vector< std::pair< std::string, int > > m_prescales
unsigned int m_numberPhysTriggers
const bool getMaskByBit(int &bit, std::vector< int > &mask) const
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
virtual ~L1TGlobalUtil()
destructor
const bool getPrescaleByName(const std::string &algName, int &prescale) const