Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCAEN1290TDCConfig.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: DCAEN1290TDCConfig.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 _DCAEN1290TDCConfig_
10 #define _DCAEN1290TDCConfig_
11 
12 #include <DAQ/DDAQConfig.h>
13 
15  public:
17 
18  DCAEN1290TDCConfig(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask),WINWIDTH(0xFFFF),WINOFFSET(0xFFFF){}
20 
21  uint16_t WINWIDTH;
22  uint16_t WINOFFSET;
23 
24  // This method is used primarily for pretty printing
25  // the second argument to AddString is printf style format
26  void toStrings(vector<pair<string,string> > &items)const{
27  DDAQConfig::toStrings(items);
28  AddString(items, "WINWIDTH" , "%d", WINWIDTH);
29  AddString(items, "WINOFFSET" , "%d", WINOFFSET);
30  }
31 
32 };
33 
34 #endif // _DCAEN1290TDCConfig_
35 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQConfig.h:36
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
#define c
JOBJECT_PUBLIC(DCAEN1290TDCConfig)
uint32_t slot_mask
Definition: DDAQConfig.h:32
DCAEN1290TDCConfig(uint32_t rocid, uint32_t slot_mask)
void toStrings(vector< pair< string, string > > &items) const
uint32_t rocid
Definition: DDAQConfig.h:31
DCAEN1290TDCConfig(const DCAEN1290TDCConfig *c)