#include <TriggerTable.h>
Public Member Functions | |
| int | numInitStages () const |
| void | initialize (int stage) |
| void | updateDisplayString () |
Public Attributes | |
| I3TriggerTable * | triggerTable |
Does little more than present the map's values.
Definition at line 34 of file TriggerTable.h.
| void TriggerTable::initialize | ( | int | stage | ) |
Definition at line 36 of file TriggerTable.cc.
00037 { 00038 if (stage != 5) return; 00039 00040 I3 *i3 = check_and_cast<I3*>(getParentModule()->getSubmodule("i3")); 00041 triggerTable = &i3->getTriggerTable(); 00042 WATCH_MAP(*triggerTable); 00043 getDisplayString().setTagArg("t", 0, "0 identifiers,\n0 triggers"); 00044 }
| int TriggerTable::numInitStages | ( | ) | const |
| void TriggerTable::updateDisplayString | ( | ) |
Definition at line 47 of file TriggerTable.cc.
Referenced by I3::updateTriggerTableString().
00048 { 00049 ostringstream os; 00050 int numTriggers = 0; 00051 00052 os << triggerTable->size() << " identifiers,\n"; 00053 00054 I3TriggerTable::iterator it; 00055 for (it = triggerTable->begin(); it != triggerTable->end(); it++) { 00056 numTriggers += it->second.size(); 00057 } 00058 00059 os << numTriggers << " triggers"; 00060 00061 getDisplayString().setTagArg("t", 0, os.str().c_str()); 00062 }
Definition at line 35 of file TriggerTable.h.
Referenced by initialize(), and updateDisplayString().
1.5.8