19 #include "RTS/trg/include/trgDataDefs_46.h"
20 #include "RTS/trg/include/trgConfNum.h"
22 #include "trgDataDefs_46.h"
23 #include "trgConfNum.h"
30 unsigned short bits()
const {
return mDSMInput; }
34 bool isTrigger(
int triggerId)
const;
35 int numberOfTriggers()
const;
36 string triggerName(
int triggerId)
const;
37 void getTriggerMasks(
int triggerId, vector<int>& masks)
const;
38 int barrelJetPatchBits(
int triggerId)
const;
39 int endcapJetPatchBits(
int triggerId)
const;
40 int emcJetPatchBits(
int triggerId)
const;
44 typedef map<int, pair<string, int> >::const_iterator MapIterator;
46 void defineTrigger(
const char* name,
int id,
int mask);
47 int triggerId(
const MapIterator& i)
const {
return i->first; }
48 string triggerName(
const MapIterator& i)
const {
return i->second.first; }
49 int triggerMask(
const MapIterator& i)
const {
return i->second.second; }
50 bool isTrigger(
const MapIterator& i)
const;
52 unsigned short mDSMInput;
53 unsigned short mTCUInput;
54 multimap<int, pair<string, int> > mTriggers;
57 inline bool TCU_2009::isTrigger(
const MapIterator& i)
const
59 int mask = triggerMask(i);
60 return (mTCUInput & mask) == mask;