// $Id$ // // File: Df125PulseIntegral.h // Created: Mon Jul 8 09:17:23 EDT 2013 // Creator: davidl (on Darwin harriet.jlab.org 11.4.2 x86_64) // #ifndef _Df125PulseIntegral_ #define _Df125PulseIntegral_ #include class Df125PulseIntegral:public DDAQAddress{ /// Holds pulse integral data for one identified /// pulse in one event in one channel of a single /// f125 Flash ADC module. public: JOBJECT_PUBLIC(Df125PulseIntegral); Df125PulseIntegral(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 integral=0, uint32_t pedestal=0):DDAQAddress(rocid, slot, channel, itrigger),pulse_number(pulse_number),quality_factor(quality_factor),integral(integral),pedestal(pedestal){} uint32_t pulse_number; // from Pulse Integral Data word uint32_t quality_factor; // from Pulse Integral Data word int32_t integral; // from Pulse Integral Data word int32_t pedestal; // from Pulse Integral Data word (future) // 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, "integral", "%d", integral); AddString(items, "pedestal", "%d", pedestal); } }; #endif // _Df125PulseIntegral_