Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DF1TDCBORConfig.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DF1TDCBORConfig.h
4 // Created: Tue Jan 26 13:04:46 EST 2016
5 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386)
6 //
7 
8 #ifndef _DF1TDCBORConfig_
9 #define _DF1TDCBORConfig_
10 
11 #include <JANA/JObject.h>
12 
13 #include <DAQ/bor_roc.h>
14 
15 // This class inherits both from JObject and F1TDCconfig. The former
16 // so that it can be incorporated easily into the JANA framework.
17 // The latter so we can use the data struct defined in bor_roc.h.
18 // The file bor_roc.h exists in 2 places:
19 //
20 // 1. in the DAQ library of sim-recon
21 // 2. in the vme/src/rcm/monitor directory in the online
22 //
23 
24 
25 class DF1TDCBORConfig:public jana::JObject, public F1TDCconfig{
26  public:
28 
30  virtual ~DF1TDCBORConfig(){}
31 
32  // This method is used primarily for pretty printing
33  // the second argument to AddString is printf style format
34  void toStrings(vector<pair<string,string> > &items)const{
35  AddString(items, "rocid" , "%d", rocid);
36  AddString(items, "slot" , "%d", slot);
37  AddString(items, "version" , "0x%x", version);
38  AddString(items, "ctrl" , "0x%x", ctrl);
39  AddString(items, "blocklevel" , "%d", blocklevel);
40  AddString(items, "nchips" , "%d", nchips);
41  }
42 
43 };
44 
45 #endif // _DF1TDCBORConfig_
46 
JOBJECT_PUBLIC(DF1TDCBORConfig)
uint32_t version
Definition: bor_roc.h:141
void toStrings(vector< pair< string, string > > &items) const
virtual ~DF1TDCBORConfig()
uint32_t rocid
Definition: bor_roc.h:138
uint32_t blocklevel
Definition: bor_roc.h:143
uint32_t slot
Definition: bor_roc.h:139
uint32_t nchips
Definition: bor_roc.h:145
uint32_t ctrl
Definition: bor_roc.h:142