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