Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DF1TDCConfig.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: DF1TDCConfig.h
5 // Created: Sun Sep 7 15:52:50 EDT 2014
6 // Creator: davidl (on Darwin harriet.local 13.3.0 i386)
7 //
8 
9 #ifndef _DF1TDCConfig_
10 #define _DF1TDCConfig_
11 
12 #include <DAQ/DDAQConfig.h>
13 
14 class DF1TDCConfig:public DDAQConfig{
15  public:
17 
18  DF1TDCConfig(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask),REFCNT(0xFFFF),TRIGWIN(0xFFFF),TRIGLAT(0xFFFF),HSDIV(0xFFFF),BINSIZE(0xFFFF),REFCLKDIV(0xFFFF){}
20 
21  uint16_t REFCNT;
22  uint16_t TRIGWIN;
23  uint16_t TRIGLAT;
24  uint16_t HSDIV;
25  uint16_t BINSIZE;
26  uint16_t REFCLKDIV;
27 
28  // This method is used primarily for pretty printing
29  // the second argument to AddString is printf style format
30  void toStrings(vector<pair<string,string> > &items)const{
31  DDAQConfig::toStrings(items);
32  AddString(items, "REFCNT" , "%d", REFCNT);
33  AddString(items, "TRIGWIN" , "%d", TRIGWIN);
34  AddString(items, "TRIGLAT" , "%d", TRIGLAT);
35  AddString(items, "HSDIV" , "%d", HSDIV);
36  AddString(items, "BINSIZE(ps)" , "%d", BINSIZE);
37  AddString(items, "REFCLKDIV" , "%d", REFCLKDIV);
38  }
39 
40 };
41 
42 #endif // _DF1TDCConfig_
43 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQConfig.h:36
void toStrings(vector< pair< string, string > > &items) const
Definition: DF1TDCConfig.h:30
This class is a base class used for classes that hold DAQ module configuration parameters. A subclass for each type of digitization module exists that has the attributes appropriate for that type of module. (See Df250Config, DF1TDCConfig, ...) This class only holds the rocid and slot_mask fields which are common to all configurations. One of the main purposes of this base class is to allow configuration objects for all module types to be stored in a single container used internally by the DAQ plugin.
Definition: DDAQConfig.h:25
DF1TDCConfig(uint32_t rocid, uint32_t slot_mask)
Definition: DF1TDCConfig.h:18
#define c
JOBJECT_PUBLIC(DF1TDCConfig)
uint16_t TRIGWIN
Definition: DF1TDCConfig.h:22
uint32_t slot_mask
Definition: DDAQConfig.h:32
uint16_t TRIGLAT
Definition: DF1TDCConfig.h:23
DF1TDCConfig(const DF1TDCConfig *c)
Definition: DF1TDCConfig.h:19
uint16_t BINSIZE
Definition: DF1TDCConfig.h:25
uint16_t HSDIV
Definition: DF1TDCConfig.h:24
uint16_t REFCLKDIV
Definition: DF1TDCConfig.h:26
uint32_t rocid
Definition: DDAQConfig.h:31
uint16_t REFCNT
Definition: DF1TDCConfig.h:21