61 TrigConf::LogicParser p;
66const std::shared_ptr<TrigConf::Logic> &
76const std::vector<std::string> &
86 bool dec =
m_logic->evaluate(thrDecMap);
91 if( thrDecMap.at(bgName) == 0 ) {
95 catch(std::exception &) {
96 throw std::runtime_error(
"Problem accessing decision for bunchgroup " + bgName);
102 std::cerr <<
"No logic set for this ctpItem " <<
name() << std::endl;
std::shared_ptr< TrigConf::Logic > m_logic
the definition of the item turned into a Logic object
const std::vector< std::string > & bunchGroups() const
void setPrescale(int prescale)
unsigned char triggerType() const
void setBunchGroups(const std::vector< std::string > &bunchGroups)
CTPTriggerItem()
constructor setting trigger item and corresponding prescale
unsigned int m_ctpid
CTPID.
~CTPTriggerItem()
default destructor
void setCtpId(unsigned int ctpid)
void setName(const std::string &name)
std::vector< std::string > m_bunchGroups
the list of bunchgroups forming this item
const std::shared_ptr< TrigConf::Logic > & logic() const
unsigned int ctpId() const
void setLogic(const std::string &logicExpr)
bool evaluate(const std::map< std::string, unsigned int > &thrDecMap) const
void setTriggerType(unsigned char triggerType)
const std::string & name() const
int m_prescale
prescale value
std::string m_name
item name
unsigned char m_TriggerType
8 bit trigger type (4 bit for secondary partitions)