Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCODAROCInfo.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: DCODAROCInfo.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 _DCODAROCInfo_
10 #define _DCODAROCInfo_
11 
12 #include <JANA/JObject.h>
13 
14 using namespace jana;
15 using namespace std;
16 
17 class DCODAROCInfo:public JObject{
18  public:
19  JOBJECT_PUBLIC(DCODAROCInfo);
20 
21  uint32_t rocid;
22  uint64_t timestamp;
23  vector<uint32_t> misc;
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, "rocid" , "%d" , rocid);
29  AddString(items, "timestamp" , "%ld", timestamp);
30  AddString(items, "Nmisc" , "%d" , misc.size());
31  }
32 
33 };
34 
35 #endif // _DCODAROCInfo_
36 
uint64_t timestamp
Definition: DCODAROCInfo.h:22
uint32_t rocid
Definition: DCODAROCInfo.h:21
vector< uint32_t > misc
Definition: DCODAROCInfo.h:23
void toStrings(vector< pair< string, string > > &items) const
Definition: DCODAROCInfo.h:27