Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DL1MCTrigger.h
Go to the documentation of this file.
1 #ifndef _DL1MCTrigger_
2 #define _DL1MCTrigger_
3 
4 #include <JANA/JObject.h>
5 #include <JANA/JFactory.h>
6 
7 class DL1MCTrigger:public jana::JObject{
8  public:
10 
13 
14 
15  uint32_t trig_mask;
16 
17  float fcal_en;
18  int fcal_adc;
19  float fcal_adc_en;
20  int fcal_gtp;
21  float fcal_gtp_en;
22 
23  float bcal_en;
24  int bcal_adc;
25  float bcal_adc_en;
26  int bcal_gtp;
27  float bcal_gtp_en;
28 
29  int trig_time[32];
30 
31 
32  // the second argument to AddString is printf style format
33  void toStrings(vector<pair<string,string> > &items)const{
34  AddString(items, "trig_mask", "0x%08x", trig_mask );
35 
36  AddString(items, "FCAL E(GeV)", "%6.3f", fcal_en);
37  AddString(items, "FCAL ADC E(cnt)", "%d", fcal_adc);
38  AddString(items, "FCAL ADC E(GeV)", "%6.3f", fcal_adc_en);
39  AddString(items, "FCAL GTP E(cnt)", "%d", fcal_gtp);
40  AddString(items, "FCAL GTP E(GeV)", "%6.3f", fcal_gtp_en);
41 
42  AddString(items, "BCAL E(GeV)", "%6.3f", bcal_en);
43  AddString(items, "BCAL ADC E(cnt)", "%d", bcal_adc);
44  AddString(items, "BCAL ADC E(GeV)", "%6.3f", bcal_adc_en);
45  AddString(items, "BCAL GTP E(cnt)", "%d", bcal_gtp);
46  AddString(items, "BCAL GTP E(GeV)", "%6.3f", bcal_gtp_en);
47 
48  AddString(items, "Trig Time (samp)", "%d", trig_time[0]);
49 
50 
51  }
52 
53 };
54 
55 #endif // _DL1MCTrigger_
56 
uint32_t trig_mask
Definition: DL1MCTrigger.h:15
float bcal_gtp_en
Definition: DL1MCTrigger.h:27
void toStrings(vector< pair< string, string > > &items) const
Definition: DL1MCTrigger.h:33
float fcal_gtp_en
Definition: DL1MCTrigger.h:21
float bcal_adc_en
Definition: DL1MCTrigger.h:25
JOBJECT_PUBLIC(DL1MCTrigger)
int trig_time[32]
Definition: DL1MCTrigger.h:29
float fcal_adc_en
Definition: DL1MCTrigger.h:19