// $Id: DCODAROCInfo.h 16643 2014-11-24 21:17:40Z davidl $ // $HeadURL: https://halldsvn.jlab.org/repos/branches/sim-recon-commissioning/src/programs/Utilities/plugins/DAQ/DCODAROCInfo.h $ // // 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 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_