Class storing information helping to make the CTP decision.
More...
#include <CTPTriggerItem.h>
|
| std::string | m_name { "" } |
| | item name
|
| unsigned int | m_ctpid { 1 } |
| | CTPID.
|
| unsigned char | m_TriggerType { 0 } |
| | 8 bit trigger type (4 bit for secondary partitions)
|
| int | m_prescale { 1 } |
| | prescale value
|
| std::shared_ptr< TrigConf::Logic > | m_logic |
| | the definition of the item turned into a Logic object
|
| std::vector< std::string > | m_bunchGroups |
| | the list of bunchgroups forming this item
|
Class storing information helping to make the CTP decision.
Definition at line 23 of file CTPTriggerItem.h.
◆ CTPTriggerItem()
| LVL1CTP::CTPTriggerItem::CTPTriggerItem |
( |
| ) |
|
constructor setting trigger item and corresponding prescale
Definition at line 11 of file CTPTriggerItem.cxx.
◆ ~CTPTriggerItem()
| LVL1CTP::CTPTriggerItem::~CTPTriggerItem |
( |
| ) |
|
◆ bunchGroups()
| const std::vector< std::string > & LVL1CTP::CTPTriggerItem::bunchGroups |
( |
| ) |
const |
Definition at line 77 of file CTPTriggerItem.cxx.
77 {
79}
std::vector< std::string > m_bunchGroups
the list of bunchgroups forming this item
◆ ctpId()
| unsigned int LVL1CTP::CTPTriggerItem::ctpId |
( |
| ) |
const |
◆ evaluate()
| bool LVL1CTP::CTPTriggerItem::evaluate |
( |
const std::map< std::string, unsigned int > & | thrDecMap | ) |
const |
Definition at line 83 of file CTPTriggerItem.cxx.
84{
86 bool dec =
m_logic->evaluate(thrDecMap);
88
90 try {
91 if( thrDecMap.at(bgName) == 0 ) {
92 dec = false; break;
93 }
94 }
95 catch(std::exception &) {
96 throw std::runtime_error( "Problem accessing decision for bunchgroup " + bgName);
97 }
98 }
99 }
100 return dec;
101 } else {
102 std::cerr <<
"No logic set for this ctpItem " <<
name() << std::endl;
103 return false;
104 }
105}
std::shared_ptr< TrigConf::Logic > m_logic
the definition of the item turned into a Logic object
const std::string & name() const
◆ logic()
| const std::shared_ptr< TrigConf::Logic > & LVL1CTP::CTPTriggerItem::logic |
( |
| ) |
const |
◆ name()
| const std::string & LVL1CTP::CTPTriggerItem::name |
( |
| ) |
const |
◆ prescale()
| int LVL1CTP::CTPTriggerItem::prescale |
( |
| ) |
const |
◆ setBunchGroups()
| void LVL1CTP::CTPTriggerItem::setBunchGroups |
( |
const std::vector< std::string > & | bunchGroups | ) |
|
Definition at line 72 of file CTPTriggerItem.cxx.
72 {
74}
const std::vector< std::string > & bunchGroups() const
◆ setCtpId()
| void LVL1CTP::CTPTriggerItem::setCtpId |
( |
unsigned int | ctpid | ) |
|
◆ setLogic()
| void LVL1CTP::CTPTriggerItem::setLogic |
( |
const std::string & | logicExpr | ) |
|
◆ setName()
| void LVL1CTP::CTPTriggerItem::setName |
( |
const std::string & | name | ) |
|
◆ setPrescale()
| void LVL1CTP::CTPTriggerItem::setPrescale |
( |
int | prescale | ) |
|
◆ setTriggerType()
| void LVL1CTP::CTPTriggerItem::setTriggerType |
( |
unsigned char | triggerType | ) |
|
Definition at line 50 of file CTPTriggerItem.cxx.
50 {
52}
unsigned char triggerType() const
unsigned char m_TriggerType
8 bit trigger type (4 bit for secondary partitions)
◆ triggerType()
| unsigned char LVL1CTP::CTPTriggerItem::triggerType |
( |
| ) |
const |
◆ m_bunchGroups
| std::vector<std::string> LVL1CTP::CTPTriggerItem::m_bunchGroups |
|
private |
◆ m_ctpid
| unsigned int LVL1CTP::CTPTriggerItem::m_ctpid { 1 } |
|
private |
◆ m_logic
the definition of the item turned into a Logic object
Definition at line 58 of file CTPTriggerItem.h.
◆ m_name
| std::string LVL1CTP::CTPTriggerItem::m_name { "" } |
|
private |
◆ m_prescale
| int LVL1CTP::CTPTriggerItem::m_prescale { 1 } |
|
private |
◆ m_TriggerType
| unsigned char LVL1CTP::CTPTriggerItem::m_TriggerType { 0 } |
|
private |
8 bit trigger type (4 bit for secondary partitions)
Definition at line 56 of file CTPTriggerItem.h.
The documentation for this class was generated from the following files: