Go to the documentation of this file.
3 #ifndef L1TGlobal_L1TGlobalUtil_h
4 #define L1TGlobal_L1TGlobalUtil_h
140 const bool getMaskByBit(
int& bit, std::vector<int>& mask)
const;
162 inline const std::vector<std::pair<std::string, std::vector<int>>>&
masks() {
return m_masks; }
226 std::vector<std::pair<std::string, std::vector<int>>>
m_masks;
242 template <
typename T>
249 template <
typename T>
260 template <
typename T>
269 template <
typename T>
const std::string & gtTriggerMenuComment() const
const std::vector< std::pair< std::string, bool > > & decisionsInterm()
unsigned int m_numberOfPreScaleColumns
unsigned int m_PreScaleColumn
void OverridePrescalesAndMasks(std::string filename, unsigned int psColumn=1.)
static void fillDescription(edm::ParameterSetDescription &desc)
unsigned int numberOfPreScaleColumns() const
bool valid() const
check that the L1TGlobalUtil has been properly initialised
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, double > > & prescales()
void loadPrescalesAndMasks()
const bool getFinalDecisionByBit(int &bit, bool &decision) const
const bool getMaskByName(const std::string &algName, std::vector< int > &mask) const
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
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::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
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
const l1t::PrescalesVetosFractHelper * m_l1GtPrescalesVetoes
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 getPrescaleByBit(int &bit, double &prescale) const
const bool getIntermDecisionByBit(int &bit, bool &decision) const
void resetPrescaleVectors()
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
std::vector< std::pair< std::string, double > > m_prescales
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< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_L1TGlobalPrescalesVetosFractEventToken
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
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_L1TGlobalPrescalesVetosFractRunToken
const bool getPrescaleByName(const std::string &algName, double &prescale) const