// $Id: Df125WindowRawData.h 16643 2014-11-24 21:17:40Z davidl $ // $HeadURL: https://halldsvn.jlab.org/repos/branches/sim-recon-commissioning/src/programs/Utilities/plugins/DAQ/Df125WindowRawData.h $ // // File: Df125WindowRawData.h // Created: Thu Jun 19 20:48:04 EDT 2014 // Creator: davidl (on Darwin harriet.jlab.org 13.2.0 i386) // #ifndef _Df125WindowRawData_ #define _Df125WindowRawData_ #include class Df125WindowRawData:public DDAQAddress{ /// Holds window raw data samples for one event in /// one channel of a single f250 Flash ADC module. public: JOBJECT_PUBLIC(Df125WindowRawData); Df125WindowRawData(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0):DDAQAddress(rocid, slot, channel, itrigger),invalid_samples(false),overflow(false){} vector samples;// from Window Raw Data words 2-N (each word contains 2 samples) bool invalid_samples; // true if any sample's "not valid" bit set bool overflow; // true if any sample's "overflow" bit set // 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, "Nsamples", "%d", samples.size()); AddString(items, "invalid_samples", "%d", invalid_samples); AddString(items, "overflow", "%d", overflow); } }; #endif // _Df125WindowRawData_