Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250Config.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df250Config.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 _Df250Config_
10 #define _Df250Config_
11 
12 #include <DAQ/DDAQConfig.h>
13 
14 class Df250Config:public DDAQConfig{
15  public:
17 
18  Df250Config(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask),NSA(0xFFFF),NSB(0xFFFF),NSA_NSB(0xFFFF),NPED(0xFFFF){}
20 
21  uint16_t NSA; // Num. samples before threshold crossing sample
22  uint16_t NSB; // Num. samples after threshold crossing sample
23  uint16_t NSA_NSB; // NSA+NSB = total number of samples in integration window
24  uint16_t NPED; // Number of samples used to determine pedestal
25 
26  // This method is used primarily for pretty printing
27  // the second argument to AddString is printf style format
28  void toStrings(vector<pair<string,string> > &items)const{
29  DDAQConfig::toStrings(items);
30  AddString(items, "NSA" , "%d", NSA);
31  AddString(items, "NSB" , "%d", NSB);
32  AddString(items, "NSA_NSB" , "%d", NSA_NSB);
33  AddString(items, "NPED" , "%d", NPED);
34  }
35 
36 };
37 
38 #endif // _Df250Config_
39 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQConfig.h:36
uint16_t NSB
Definition: Df250Config.h:22
uint16_t NPED
Definition: Df250Config.h:24
JOBJECT_PUBLIC(Df250Config)
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
uint16_t NSA
Definition: Df250Config.h:21
Df250Config(uint32_t rocid, uint32_t slot_mask)
Definition: Df250Config.h:18
#define c
uint32_t slot_mask
Definition: DDAQConfig.h:32
Df250Config(const Df250Config *c)
Definition: Df250Config.h:19
uint16_t NSA_NSB
Definition: Df250Config.h:23
void toStrings(vector< pair< string, string > > &items) const
Definition: Df250Config.h:28
uint32_t rocid
Definition: DDAQConfig.h:31