// $Id: DF1TDCConfig.h 16947 2014-12-20 05:34:19Z davidl $ // $HeadURL: https://halldsvn.jlab.org/repos/branches/sim-recon-commissioning/src/programs/Utilities/plugins/DAQ/DF1TDCConfig.h $ // // File: DF1TDCConfig.h // Created: Sun Sep 7 15:52:50 EDT 2014 // Creator: davidl (on Darwin harriet.local 13.3.0 i386) // #ifndef _DF1TDCConfig_ #define _DF1TDCConfig_ #include class DF1TDCConfig:public DDAQConfig{ public: JOBJECT_PUBLIC(DF1TDCConfig); DF1TDCConfig(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask),REFCNT(0xFFFF),TRIGWIN(0xFFFF),TRIGLAT(0xFFFF),HSDIV(0xFFFF),BINSIZE(0xFFFF),REFCLKDIV(0xFFFF){} uint16_t REFCNT; uint16_t TRIGWIN; uint16_t TRIGLAT; uint16_t HSDIV; uint16_t BINSIZE; uint16_t REFCLKDIV; // 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, "REFCNT" , "%d", REFCNT); AddString(items, "TRIGWIN" , "%d", TRIGWIN); AddString(items, "TRIGLAT" , "%d", TRIGLAT); AddString(items, "HSDIV" , "%d", HSDIV); AddString(items, "BINSIZE(ps)" , "%d", BINSIZE); AddString(items, "REFCLKDIV" , "%d", REFCLKDIV); } }; #endif // _DF1TDCConfig_