StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerDefinition.h
1 // -*- mode:c++ -*-
2 
3 #ifndef StTriggerDefinition_h
4 #define StTriggerDefinition_h
5 
6 #include <cstdio>
7 #include "TObject.h"
8 #include "TString.h"
9 
10 struct StTriggerDefinition : public TObject {
11  int triggerIndex; // trigger index
12  TString name; // trigger name
13  int triggerId; // trigger ID
14  unsigned int onbits; // bits required to be ON at input of TCU
15  unsigned int offbits; // bits required to be OFF at input of TCU
16  unsigned int onbits1;
17  unsigned int onbits2;
18  unsigned int onbits3;
19  unsigned int offbits1;
20  unsigned int offbits2;
21  unsigned int offbits3;
22 
23  void print();
24 
25  ClassDef(StTriggerDefinition,1)
26 };
27 
28 inline void StTriggerDefinition::print()
29 {
30  printf("triggerIndex=%d name=%s triggerId=%d onbits=0x%04x offbits=0x%04x onbits1=0x%04x onbits2=0x%04x onbits3=0x%04x, offbits1=0x%04x, offbits2=0x%04x, offbits3=0x%04x\n",
31  triggerIndex,name.Data(),triggerId,onbits,offbits, onbits1, onbits2, onbits3, offbits1, offbits2, offbits3);
32 }
33 
34 #endif // StTriggerDefinition_h