// $Id$ // // File: DF1TDCHit.h // Created: Fri Aug 10 12:02:49 EDT 2012 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386) // #ifndef _DF1TDCHit_ #define _DF1TDCHit_ #include #include class DF1TDCHit:public jana::JObject{ /// Holds single hit from a F1TDC module public: JOBJECT_PUBLIC(DF1TDCHit); DF1TDCHit(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t ievent=0, uint32_t trig_time=0, uint32_t time=0):rocid(rocid),slot(slot),channel(channel),ievent(ievent),trig_time(trig_time),time(time){} uint32_t rocid; // from EVIO header (crate number) uint32_t slot; // from data word uint32_t channel; // from data word uint32_t ievent; // from header word uint32_t trig_time; // from data word uint32_t time; // from data word // 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, "slot", "%d", slot); AddString(items, "channel", "%d", channel); AddString(items, "ievent", "%d", ievent); AddString(items, "trig_time", "%d", trig_time); AddString(items, "time", "%d", time); } }; #endif // _DF1TDCHit_