Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCODAEventInfo.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: DCODAEventInfo.h
5 // Created: Wed Oct 15 11:35:43 EDT 2014
6 // Creator: davidl (on Darwin harriet.local 13.3.0 i386)
7 //
8 
9 #ifndef _DCODAEventInfo_
10 #define _DCODAEventInfo_
11 
12 #include <JANA/JObject.h>
13 using namespace jana;
14 
15 class DCODAEventInfo:public JObject{
16  public:
17  JOBJECT_PUBLIC(DCODAEventInfo);
18 
19  uint32_t run_number;
20  uint32_t run_type;
21  uint64_t event_number;
22  uint16_t event_type;
23  uint64_t avg_timestamp;
24 
25  // This method is used primarily for pretty printing
26  // the second argument to AddString is printf style format
27  void toStrings(vector<pair<string,string> > &items)const{
28  AddString(items, "run_number" , "%d" , run_number);
29  AddString(items, "run_type" , "%d" , run_type);
30  AddString(items, "event_number" , "%ld", event_number);
31  AddString(items, "event_type" , "%d" , event_type);
32  AddString(items, "avg_timestamp" , "%ld", avg_timestamp);
33  }
34 
35 };
36 
37 #endif // _DCODAEventInfo_
38 
uint16_t event_type
uint64_t avg_timestamp
uint32_t run_number
void toStrings(vector< pair< string, string > > &items) const
uint32_t run_type
uint64_t event_number