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