// $Id$ // $HeadURL$ // // File: Df250Config.h // Created: Sun Sep 7 15:52:50 EDT 2014 // Creator: davidl (on Darwin harriet.local 13.3.0 i386) // #ifndef _Df250Config_ #define _Df250Config_ #include class Df250Config:public DDAQConfig{ public: JOBJECT_PUBLIC(Df250Config); Df250Config(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask),NSA(0xFFFF),NSB(0xFFFF),NSA_NSB(0xFFFF),NPED(0xFFFF){} uint16_t NSA; // Num. samples before threshold crossing sample uint16_t NSB; // Num. samples after threshold crossing sample uint16_t NSA_NSB; // NSA+NSB = total number of samples in integration window uint16_t NPED; // Number of samples used to determine pedestal // This method is used primarily for pretty printing // the second argument to AddString is printf style format void toStrings(vector > &items)const{ DDAQConfig::toStrings(items); AddString(items, "NSA" , "%d", NSA); AddString(items, "NSB" , "%d", NSB); AddString(items, "NSA_NSB" , "%d", NSA_NSB); AddString(items, "NPED" , "%d", NPED); } }; #endif // _Df250Config_