// $Id$ // // File: D250EventTime.h // Created: Tue Nov 29 08:28:08 EST 2011 // Creator: davidl (on Linux ifarm1102 2.6.18-128.7.1.el5 x86_64) // #ifndef _D250EventTime_ #define _D250EventTime_ #include #include class D250EventTime:public jana::JObject{ public: JOBJECT_PUBLIC(D250EventTime); D250EventTime():slot(0),Nblock_events(0){} uint32_t slot; uint32_t Nblock_events; uint32_t iblock; uint32_t slot_trailer; uint32_t Nwords_in_block; uint32_t trig_num_A; uint32_t trig_num_B; uint64_t trig_time_A; uint64_t trig_time_B; // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ AddString(items, "slot", "%d", slot); AddString(items, "Nblock_events", "%d", Nblock_events); AddString(items, "iblock", "%d", iblock); AddString(items, "slot_trailer", "%d", slot_trailer); AddString(items, "Nwords_in_block", "%d", Nwords_in_block); AddString(items, "trig_num_A", "%d", trig_num_A); AddString(items, "trig_num_B", "%d", trig_num_B); AddString(items, "trig_time_A", "%ld", trig_time_A); AddString(items, "trig_time_B", "%ld", trig_time_B); } }; #endif // _D250EventTime_