// $Id$ // $HeadURL$ // // File: Df125PulseTime.h // Created: Mon Jul 8 12:01:57 EDT 2013 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386) // #ifndef _Df125PulseTime_ #define _Df125PulseTime_ #include class Df125PulseTime:public DDAQAddress{ /// Holds pulse time for one identified /// pulse in one event in one channel of a single /// f125 Flash ADC module. public: JOBJECT_PUBLIC(Df125PulseTime); Df125PulseTime(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t pulse_number=0, uint32_t quality_factor=0, uint32_t time=0, uint32_t overflows=0, bool emulated=false):DDAQAddress(rocid, slot, channel, itrigger),pulse_number(pulse_number),quality_factor(quality_factor),time(time),overflows(overflows),emulated(emulated){} uint32_t pulse_number; ///< from Pulse Time Data word uint32_t quality_factor; ///< from Pulse Time Data word uint32_t time; ///< from Pulse Time Data word uint32_t overflows; ///< (future expansion. "7" means "7 or more" samples overflowed bool emulated; ///< true if made from Window Raw Data // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ DDAQAddress::toStrings(items); AddString(items, "pulse_number", "%d", pulse_number); AddString(items, "quality_factor", "%d", quality_factor); AddString(items, "time", "%d", time); AddString(items, "emulated", "%d", emulated); } }; #endif // _Df125PulseTime_