#include <TriggerItemNode.h>
|
| std::ostream & | indent (std::ostream &o, int lvl, int size) const |
Definition at line 22 of file TriggerItemNode.h.
◆ InternalType_t
◆ NodeType
◆ TriggerItemNode()
| TrigConf::TriggerItemNode::TriggerItemNode |
( |
NodeType | type | ) |
|
Definition at line 20 of file TriggerItemNode.cxx.
20 :
27{}
std::pair< L1DataDef::TriggerType, unsigned int > InternalType_t
InternalType_t m_InternalTrigger
TriggerThreshold * m_Threshold
std::string m_ThresholdName
◆ ~TriggerItemNode()
| TrigConf::TriggerItemNode::~TriggerItemNode |
( |
| ) |
|
|
virtual |
Definition at line 30 of file TriggerItemNode.cxx.
30 {
33}
TriggerItemNode(NodeType)
std::vector< TriggerItemNode * > m_Children
◆ __str__()
| string TriggerItemNode::__str__ |
( |
| ) |
const |
|
virtual |
◆ addChild()
Definition at line 112 of file TriggerItemNode.cxx.
112 {
114 throw std::runtime_error("TriggerItemNode::addChild: trying to add child to leaf node");
116}
◆ buildLogic()
| void TrigConf::TriggerItemNode::buildLogic |
( |
std::vector< std::string > & | conditionList, |
|
|
std::string & | logic ) const |
Definition at line 235 of file TriggerItemNode.cxx.
236 {
237
249 } else {
251 }
252 } else {
254 }
256 if(pos>9) logic +=
'0'+
pos/10;
258 conditionList.push_back(std::move(condition));
260 logic += "(";
264 node->buildLogic(conditionList, logic);
265 }
266 logic += ")";
268 logic += "!";
269 children()[0]->buildLogic(conditionList, logic);
270 }
271
272}
static TriggerTypeConfig & typeConfig(TriggerType tt)
const std::vector< TriggerItemNode * > & children() const
const std::string & thresholdName() const
◆ children()
| const std::vector< TriggerItemNode * > & TrigConf::TriggerItemNode::children |
( |
| ) |
const |
|
inline |
◆ getAllBunchGroups() [1/2]
| void TrigConf::TriggerItemNode::getAllBunchGroups |
( |
std::vector< bool > & | vec | ) |
const |
Definition at line 142 of file TriggerItemNode.cxx.
142 {
144 if(
vec.size() < max_bgrp)
vec.resize( max_bgrp );
148 } else {
151 }
152}
std::vector< size_t > vec
L1DataDef::TriggerType internalTriggerType() const
◆ getAllBunchGroups() [2/2]
| void TrigConf::TriggerItemNode::getAllBunchGroups |
( |
std::vector< unsigned int > & | vec | ) |
const |
◆ getAllFinalNodes()
| void TrigConf::TriggerItemNode::getAllFinalNodes |
( |
std::vector< const TriggerItemNode * > & | vec | ) |
const |
◆ getAllPrescaledClockTriggers()
| void TrigConf::TriggerItemNode::getAllPrescaledClockTriggers |
( |
std::vector< unsigned int > & | vec | ) |
const |
◆ getAllRandomTriggers()
| void TrigConf::TriggerItemNode::getAllRandomTriggers |
( |
std::vector< unsigned int > & | vec | ) |
const |
◆ getAllThresholds()
| void TrigConf::TriggerItemNode::getAllThresholds |
( |
std::vector< const TriggerThreshold * > & | vec | ) |
const |
Definition at line 129 of file TriggerItemNode.cxx.
129 {
133 }
134 } else {
137 }
138}
bool isInternalTrigger() const
◆ getBunchGroupsMask()
| void TrigConf::TriggerItemNode::getBunchGroupsMask |
( |
uint16_t & | bgmask | ) |
const |
◆ indent()
| std::ostream & TrigConf::TriggerItemNode::indent |
( |
std::ostream & | o, |
|
|
int | lvl, |
|
|
int | size ) const |
|
private |
Definition at line 301 of file TriggerItemNode.cxx.
301 {
302 if(lvl*size==0) return o;
303 o << std::setw(lvl*size) << " ";
304 return o;
305}
◆ internalTriggerNumber()
| unsigned int TrigConf::TriggerItemNode::internalTriggerNumber |
( |
| ) |
const |
|
inline |
◆ internalTriggerType()
◆ isInternalTrigger()
| bool TrigConf::TriggerItemNode::isInternalTrigger |
( |
| ) |
const |
◆ isThreshold()
| bool TrigConf::TriggerItemNode::isThreshold |
( |
| ) |
const |
◆ multiplicity()
| int TrigConf::TriggerItemNode::multiplicity |
( |
| ) |
const |
|
inline |
◆ position()
| int TrigConf::TriggerItemNode::position |
( |
| ) |
const |
|
inline |
◆ print()
| void TrigConf::TriggerItemNode::print |
( |
const std::string & | indent = "", |
|
|
unsigned int | detail = 1 ) const |
Definition at line 276 of file TriggerItemNode.cxx.
276 {
277 cout <<
indent <<
"TriggerItemNode: " << endl;
280
287 cout <<
indent <<
" InternalTrigger: "
289 } else {
291 }
292 }
293 else {
295 cout <<
indent <<
" subnode : " << endl;
297 }
298 }
299}
std::ostream & indent(std::ostream &o, int lvl, int size) const
◆ setInternalTrigger() [1/2]
| void TrigConf::TriggerItemNode::setInternalTrigger |
( |
const std::string & | name | ) |
|
Definition at line 94 of file TriggerItemNode.cxx.
94 {
95
96 string::size_type
pos =
name.find_first_of(
"0123456789");
97
99
101 cerr <<
"TriggerItemNode::setInternalTrigger: type " <<
name <<
" is not an internal trigger" << endl;
102 throw runtime_error("TriggerItemNode::setInternalTrigger: type is not an internal trigger");
103 }
108}
static TriggerType stringAsType(const std::string &type)
◆ setInternalTrigger() [2/2]
◆ setMultiplicity()
| void TrigConf::TriggerItemNode::setMultiplicity |
( |
int | mult | ) |
|
|
inline |
◆ setPosition()
| void TrigConf::TriggerItemNode::setPosition |
( |
int | pos | ) |
|
|
inline |
◆ setThresholdName()
| void TrigConf::TriggerItemNode::setThresholdName |
( |
const std::string & | thrname | ) |
|
|
inline |
◆ setTriggerThreshold()
Definition at line 72 of file TriggerItemNode.cxx.
72 {
73 if(
thr->isInternal()) {
74
76 } else {
79 }
82}
void setInternalTrigger(L1DataDef::TriggerType x, unsigned int thresholdNumber)
◆ thresholdName()
| const std::string & TrigConf::TriggerItemNode::thresholdName |
( |
| ) |
const |
|
inline |
◆ triggerThreshold()
◆ type()
| NodeType TrigConf::TriggerItemNode::type |
( |
| ) |
const |
|
inline |
◆ typeAsString()
| std::string TrigConf::TriggerItemNode::typeAsString |
( |
NodeType | type | ) |
|
|
static |
Definition at line 55 of file TriggerItemNode.cxx.
55 {
56 static const std::string typelabel[] = {"OBJ", "NOT", "AND", "OR", "UNDEF"};
57 return typelabel[
type];
58}
◆ typeFromChar()
◆ typeFromString()
◆ writeXML()
| void TrigConf::TriggerItemNode::writeXML |
( |
std::ostream & | xmlfile, |
|
|
int | indentLevel = 0, |
|
|
int | indentWidth = 2, |
|
|
bool | omitDelimiter = false ) const |
Definition at line 203 of file TriggerItemNode.cxx.
203 {
205
209 } else {
214 }
215
217
219 indent(
xmlfile, indentLevel, indentWidth) <<
"<" << logic <<
">" << endl;
221 node->writeXML(
xmlfile, indentLevel+1, indentWidth);
222 indent(
xmlfile, indentLevel, indentWidth) <<
"</"<<logic<<
">" << endl;
223
225
226 indent(
xmlfile, indentLevel, indentWidth) <<
"<NOT>" << endl;
228 indent(
xmlfile, indentLevel, indentWidth) <<
"</NOT>" << endl;
229
230 }
231}
static std::vector< std::string > xmlfile
◆ m_Children
◆ m_InternalTrigger
◆ m_Multiplicity
| int TrigConf::TriggerItemNode::m_Multiplicity |
|
private |
◆ m_NodeType
| NodeType TrigConf::TriggerItemNode::m_NodeType |
|
private |
◆ m_Position
| int TrigConf::TriggerItemNode::m_Position |
|
private |
◆ m_Threshold
◆ m_ThresholdName
| std::string TrigConf::TriggerItemNode::m_ThresholdName |
|
private |
The documentation for this class was generated from the following files: