OverSim
TriggerTable Struct Reference

Omnetpp module to wrap around I3's I3TriggerTable. More...

#include <TriggerTable.h>

Public Member Functions

int numInitStages () const
void initialize (int stage)
void updateDisplayString ()

Public Attributes

I3TriggerTabletriggerTable

Detailed Description

Omnetpp module to wrap around I3's I3TriggerTable.

Does little more than present the map's values.

Definition at line 34 of file TriggerTable.h.

Member Function Documentation

void TriggerTable::initialize ( int  stage)

Definition at line 36 of file TriggerTable.cc.

{
if (stage != 5) return;
I3 *i3 = check_and_cast<I3*>(getParentModule()->getSubmodule("i3"));
WATCH_MAP(*triggerTable);
getDisplayString().setTagArg("t", 0, "0 identifiers,\n0 triggers");
}
int TriggerTable::numInitStages ( ) const

Definition at line 31 of file TriggerTable.cc.

{
return 6;
}
void TriggerTable::updateDisplayString ( )

Definition at line 47 of file TriggerTable.cc.

Referenced by I3::updateTriggerTableString().

{
ostringstream os;
int numTriggers = 0;
os << triggerTable->size() << " identifiers,\n";
I3TriggerTable::iterator it;
for (it = triggerTable->begin(); it != triggerTable->end(); it++) {
numTriggers += it->second.size();
}
os << numTriggers << " triggers";
getDisplayString().setTagArg("t", 0, os.str().c_str());
}

Member Data Documentation

I3TriggerTable* TriggerTable::triggerTable

Definition at line 35 of file TriggerTable.h.


The documentation for this struct was generated from the following files: