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>
267 :
L1TGlobalUtil(pset, iC, module, l1tAlgBlkInputTag, l1tExtBlkInputTag, useEventSetupIn) {}
269 template <
typename T>
278 std::make_unique<L1TGlobalUtilHelper>(
pset, iC,
module, l1tAlgBlkInputTag, l1tExtBlkInputTag);
void setVerbosity(const int verbosity)
const bool getInitialDecisionByBit(int &bit, bool &decision) const
const L1TUtmTriggerMenu * m_l1GtMenu
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_L1TGlobalPrescalesVetosFractRunToken
std::string m_preScaleFileName
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
const std::string & gtTriggerMenuComment() const
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuRunToken
unsigned long long m_l1GtPfAlgoCacheID
const std::vector< std::pair< std::string, double > > & prescales()
void OverridePrescalesAndMasks(std::string filename, unsigned int psColumn=1.)
const bool getIntermDecisionByBit(int &bit, bool &decision) const
unsigned int m_numberOfPreScaleColumns
unsigned int m_PreScaleColumn
const l1t::PrescalesVetosFractHelper * m_l1GtPrescalesVetoes
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
const bool getInitialDecisionByName(const std::string &algName, bool &decision) const
const std::string & gtTriggerMenuVersion() const
std::vector< std::pair< std::string, bool > > m_decisionsInitial
bool valid() const
check that the L1TGlobalUtil has been properly initialised
void resetDecisionVectors()
clear decision vectors on a menu change
const bool getPrescaleByName(const std::string &algName, double &prescale) const
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
const std::map< int, std::vector< int > > m_initialTriggerMaskAlgoTrig
static void fillDescription(edm::ParameterSetDescription &desc)
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
const std::vector< std::pair< std::string, bool > > & decisionsInterm()
void eventSetupConsumes(edm::ConsumesCollector &iC, UseEventSetupIn useEventSetupIn)
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuEventToken
const std::string & gtTriggerMenuName() const
const std::vector< std::pair< std::string, bool > > & decisionsInitial()
bool m_readPrescalesFromFile
static void fillDescription(edm::ParameterSetDescription &desc)
unsigned int prescaleColumn() const
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
const bool getFinalDecisionByName(const std::string &algName, bool &decision) const
std::vector< std::pair< std::string, double > > m_prescales
const bool getPrescaleByBit(int &bit, double &prescale) const
const bool getMaskByName(const std::string &algName, std::vector< int > &mask) const
std::vector< std::pair< std::string, bool > > m_decisionsInterm
const bool getAlgNameFromBit(int &bit, std::string &AlgName) const
int m_verbosity
verbosity level
unsigned long long m_l1GtMenuCacheID
void resetPrescaleVectors()
const bool getFinalDecisionByBit(int &bit, bool &decision) const
std::vector< std::pair< std::string, bool > > m_decisionsFinal
const std::vector< std::pair< std::string, bool > > & decisionsFinal()
const bool getMaskByBit(int &bit, std::vector< int > &mask) const
unsigned int numberOfPreScaleColumns() const
edm::Handle< BXVector< GlobalAlgBlk > > m_uGtAlgBlk
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
const bool getIntermDecisionByName(const std::string &algName, bool &decision) 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