Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Df125BORConfig.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: Df125BORConfig.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 _Df125BORConfig_
9
#define _Df125BORConfig_
10
11
#include <JANA/JObject.h>
12
13
#include <
DAQ/bor_roc.h
>
14
15
// This class inherits both from JObject and f125config. 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
Df125BORConfig
:
public
jana::JObject,
public
f125config
{
26
public
:
27
JOBJECT_PUBLIC
(
Df125BORConfig
);
28
29
Df125BORConfig
(){}
30
virtual
~Df125BORConfig
(){}
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,
"id"
,
"0x%x"
,
board_id
);
38
AddString(items,
"version"
,
"0x%x"
,
version
);
39
AddString(items,
"proc_version"
,
"0x%x"
,
proc_version
);
40
AddString(items,
"ctrl1"
,
"0x%x"
,
ctrl1
);
41
AddString(items,
"proc_blocklevel"
,
"%d"
,
proc_blocklevel
);
42
}
43
44
};
45
46
#endif // _Df125BORConfig_
47
Df125BORConfig::Df125BORConfig
Df125BORConfig()
Definition:
Df125BORConfig.h:29
f125config::version
uint32_t version
Definition:
bor_roc.h:121
f125config::proc_blocklevel
uint32_t proc_blocklevel
Definition:
bor_roc.h:133
f125config
Definition:
bor_roc.h:112
Df125BORConfig::JOBJECT_PUBLIC
JOBJECT_PUBLIC(Df125BORConfig)
Df125BORConfig
Definition:
Df125BORConfig.h:25
bor_roc.h
f125config::board_id
uint32_t board_id
Definition:
bor_roc.h:120
Df125BORConfig::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
Df125BORConfig.h:34
Df125BORConfig::~Df125BORConfig
virtual ~Df125BORConfig()
Definition:
Df125BORConfig.h:30
f125config::ctrl1
uint32_t ctrl1
Definition:
bor_roc.h:125
f125config::proc_version
uint32_t proc_version
Definition:
bor_roc.h:129
f125config::rocid
uint32_t rocid
Definition:
bor_roc.h:114
f125config::slot
uint32_t slot
Definition:
bor_roc.h:115
libraries
DAQ
Df125BORConfig.h
Generated on Fri Jul 26 2019 14:00:41 for Hall-D Software by
1.8.5