7 #include "TriggerDefinition.hh"
16 mTriggers.insert(make_pair(triggerDef.triggerId, triggerDef));
19 bool TCU::isOnBits(
int onbits)
const
23 return (mInput & onbits) == onbits;
28 bool TCU::isTrigger(
int triggerId)
const
30 typedef multimap<int, TriggerDefinition>::const_iterator MI;
31 pair<MI, MI> p = mTriggers.equal_range(triggerId);
33 for (MI i = p.first; i != p.second; ++i)
37 if (i->second.onbits&&isOnBits(i->second.onbits)) {
51 set<int> TCU::triggerIds()
const
54 for (multimap<int, TriggerDefinition>::const_iterator i = mTriggers.begin(); i != mTriggers.end(); ++i)
55 if (isTrigger(i->first)) s.insert(i->first);