// $Id$ // $HeadURL$ // // File: DCODAROCInfo.h // Created: Wed Oct 15 11:35:43 EDT 2014 // Creator: davidl (on Darwin harriet.local 13.3.0 i386) // #ifndef _DCODAROCInfo_ #define _DCODAROCInfo_ #include using namespace jana; using namespace std; class DCODAROCInfo:public JObject{ public: JOBJECT_PUBLIC(DCODAROCInfo); uint32_t rocid; uint64_t timestamp; vector misc; // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ AddString(items, "rocid" , "%d" , rocid); AddString(items, "timestamp" , "%ld", timestamp); AddString(items, "Nmisc" , "%d" , misc.size()); } }; #endif // _DCODAROCInfo_