Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df125Config.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df125Config.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 _Df125Config_
10 #define _Df125Config_
11 
12 #include <DAQ/DDAQConfig.h>
13 
14 class Df125Config:public DDAQConfig{
15  public:
17 
18  Df125Config(uint32_t rocid, uint32_t slot_mask):DDAQConfig(rocid,slot_mask)
19  ,NSA(0xFFFF),NSB(0xFFFF),NSA_NSB(0xFFFF),NPED(0xFFFF),WINWIDTH(0xFFFF)
20  ,PL(0xFFFF),NW(0xFFFF),NPK(0xFFFF),P1(0xFFFF),P2(0xFFFF),PG(0xFFFF)
21  ,IE(0xFFFF),H(0xFFFF),TH(0xFFFF),TL(0xFFFF),IBIT(0xFFFF),ABIT(0xFFFF),PBIT(0xFFFF){}
23  ,NSA(c->NSA),NSB(c->NSB),NSA_NSB(c->NSA_NSB),NPED(c->NPED),WINWIDTH(c->WINWIDTH)
24  ,PL(c->PL),NW(c->NW),NPK(c->NPK),P1(c->P1),P2(c->P2),PG(c->PG)
25  ,IE(c->IE),H(c->H),TH(c->TH),TL(c->TL),IBIT(c->IBIT),ABIT(c->ABIT),PBIT(c->PBIT){}
26 
27  uint16_t NSA; // Num. samples before threshold crossing sample
28  uint16_t NSB; // Num. samples after threshold crossing sample
29  uint16_t NSA_NSB; // NSA+NSB = total number of samples in integration window
30  uint16_t NPED; // Number of samples used to determine pedestal
31  uint16_t WINWIDTH; // maximum integration window size (in samples)
32 
33  // See GlueX-doc-2274
34  uint16_t PL;
35  uint16_t NW;
36  uint16_t NPK;
37  uint16_t P1;
38  uint16_t P2;
39  uint16_t PG;
40  uint16_t IE;
41  uint16_t H;
42  uint16_t TH;
43  uint16_t TL;
44  uint16_t IBIT;
45  uint16_t ABIT;
46  uint16_t PBIT;
47 
48  // This method is used primarily for pretty printing
49  // the second argument to AddString is printf style format
50  void toStrings(vector<pair<string,string> > &items)const{
51  DDAQConfig::toStrings(items);
52  AddString(items, "NSA" , "%d", NSA);
53  AddString(items, "NSB" , "%d", NSB);
54  AddString(items, "NSA_NSB" , "%d", NSA_NSB);
55  AddString(items, "NPED" , "%d", NPED);
56  AddString(items, "WINWIDTH" , "%d", WINWIDTH);
57  AddString(items, "PL" , "%d", PL);
58  AddString(items, "NW" , "%d", NW);
59  AddString(items, "NPK" , "%d", NPK);
60  AddString(items, "P1" , "%d", P1);
61  AddString(items, "P2" , "%d", P2);
62  AddString(items, "PG" , "%d", PG);
63  AddString(items, "IE" , "%d", IE);
64  AddString(items, "H" , "%d", H);
65  AddString(items, "TH" , "%d", TH);
66  AddString(items, "TL" , "%d", TL);
67  AddString(items, "IBIT" , "%d", IBIT);
68  AddString(items, "ABIT" , "%d", ABIT);
69  AddString(items, "PBIT" , "%d", PBIT);
70  }
71 
72 };
73 
74 #endif // _Df125Config_
75 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQConfig.h:36
uint16_t NSA_NSB
Definition: Df125Config.h:29
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 IBIT
Definition: Df125Config.h:44
#define c
uint16_t NPED
Definition: Df125Config.h:30
uint16_t PBIT
Definition: Df125Config.h:46
uint16_t IE
Definition: Df125Config.h:40
uint16_t ABIT
Definition: Df125Config.h:45
uint32_t slot_mask
Definition: DDAQConfig.h:32
uint16_t P2
Definition: Df125Config.h:38
uint16_t P1
Definition: Df125Config.h:37
Df125Config(uint32_t rocid, uint32_t slot_mask)
Definition: Df125Config.h:18
uint16_t WINWIDTH
Definition: Df125Config.h:31
uint16_t NW
Definition: Df125Config.h:35
JOBJECT_PUBLIC(Df125Config)
uint16_t PG
Definition: Df125Config.h:39
uint16_t NSA
Definition: Df125Config.h:27
void toStrings(vector< pair< string, string > > &items) const
Definition: Df125Config.h:50
uint16_t TL
Definition: Df125Config.h:43
uint16_t TH
Definition: Df125Config.h:42
uint32_t rocid
Definition: DDAQConfig.h:31
uint16_t H
Definition: Df125Config.h:41
Df125Config(const Df125Config *c)
Definition: Df125Config.h:22
uint16_t PL
Definition: Df125Config.h:34
uint16_t NPK
Definition: Df125Config.h:36
uint16_t NSB
Definition: Df125Config.h:28