24 #ifndef _Df250PulseData_
25 #define _Df250PulseData_
121 void toStrings(vector<pair<string,string> > &items)
const{
132 uint32_t emulated_all = 0;
133 if(
emulated ) emulated_all |= (1<<0);
139 AddString(items,
"integral" ,
"%d",
integral );
140 AddString(items,
"pedestal" ,
"%d",
pedestal );
141 AddString(items,
"course_time" ,
"%d",
course_time );
142 AddString(items,
"fine_time" ,
"%d",
fine_time );
143 AddString(items,
"pulse_peak" ,
"%d",
pulse_peak );
148 AddString(items,
"QF" ,
"%x", QF );
149 AddString(items,
"emulated" ,
"%x", emulated_all );
156 AddString(items,
"QF_emulated" ,
"%x",
QF_emulated );
160 #endif // _Df250PulseData_
void toStrings(vector< pair< string, string > > &items) const
void toStrings(vector< pair< string, string > > &items) const
uint32_t pedestal_emulated
Value calculated from raw data (if available)
uint32_t time_emulated
Value calculated from raw data (if available)
uint32_t course_time_emulated
Value calculated from raw data (if available) - debug.
bool emulated
true if made from Window Raw Data
uint32_t nsamples_integral
number of samples used in integral
uint32_t fine_time_emulated
Value calculated from raw data (if available) - debug.
uint32_t pulse_peak_emulated
Value calculated from raw data (if available)
uint32_t integral_emulated
Value calculated from raw data (if available)
uint32_t nsamples_over_threshold
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
uint32_t nsamples_pedestal
number of samples used in pedestal
JOBJECT_PUBLIC(Df250PulseData)
Holds pulse integral,pedestal,time data for one identified pulse in one event in one channel of a sin...
Df250PulseData(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t event_within_block=0, bool QF_pedestal=false, uint32_t pedestal=0, uint32_t integral=0, bool QF_NSA_beyond_PTW=false, bool QF_overflow=false, bool QF_underflow=false, uint32_t nsamples_over_threshold=0, uint32_t course_time=0, uint32_t fine_time=0, uint32_t pulse_peak=0, bool QF_vpeak_beyond_NSA=false, bool QF_vpeak_not_found=false, bool QF_bad_pedestal=false, uint32_t pulse_number=0, uint32_t nsamples_integral=0, uint32_t nsamples_pedestal=0, bool emulated=false, uint32_t integral_emulated=0, uint32_t pedestal_emulated=0, uint32_t time_emulated=0, uint32_t pulse_peak_emulated=0)
uint32_t event_within_block
uint32_t pulse_number
pulse number for this channel, this event starting from 0