#include <Builder.h>
|
typedef std::map< uint32_t, uint32_t > | TE2REMAP |
|
typedef std::map< uint32_t, uint32_t > | TE2REMAP |
|
|
virtual StatusCode | initialize (string &initFile) |
|
virtual uint32_t | getTEID (uint32_t teid)=0 |
|
virtual uint32_t | getREID (uint32_t reid)=0 |
|
virtual StatusCode | initialize (string &initFile) |
|
virtual uint32_t | getTEID (uint32_t teid)=0 |
|
virtual uint32_t | getREID (uint32_t reid)=0 |
|
|
static bool | expect (ifstream &f, string msg, string fname) |
|
static bool | expectInt (ifstream &f, string msg, string fname, uint32_t &val1, uint32_t &val2) |
|
static bool | expectLong (ifstream &f, string msg, string fname, uint64_t &val) |
|
static bool | find (ifstream &f, string msg, string fname) |
|
static bool | expect (ifstream &f, string msg, string fname) |
|
static bool | expectInt (ifstream &f, string msg, string fname, uint32_t &val1, uint32_t &val2) |
|
static bool | expectLong (ifstream &f, string msg, string fname, uint64_t &val) |
|
static bool | find (ifstream &f, string msg, string fname) |
|
◆ TE2REMAP [1/2]
◆ TE2REMAP [2/2]
◆ Builder() [1/2]
Definition at line 8 of file Builder.cxx.
9{
10
11
12 m_buf =
new uint32_t[32768];
13
17
18
19 IJobOptionsSvc* jobSvc;
20 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
21 jobSvc->setMyProperties(
"Builder", &
m_propMgr);
22}
◆ ~Builder() [1/2]
◆ Builder() [2/2]
◆ ~Builder() [2/2]
virtual Builder::~Builder |
( |
| ) |
|
|
protectedvirtual |
◆ append2event() [1/2]
void Builder::append2event |
( |
WriteRawEvent *& |
re, |
|
|
uint32_t |
source_id, |
|
|
uint32_t |
size |
|
) |
| |
|
protected |
Definition at line 76 of file Builder.cxx.
77{
78 uint32_t run_no = re->
run_no();
79 uint32_t lvl1_id = re->
lvl1_id();
80 uint32_t bc_id = 0;
81
83 source_id,
84 run_no,
85 lvl1_id,
86 bc_id,
87 0,
88 0,
89 size,
91 0
92 );
96 }
97 else{
100 }
101
103 source_id,
104 run_no,
105 lvl1_id,
106 bc_id
107 );
110
114
118}
Referenced by EmcBuilder::pack(), HltBuilder::pack(), McParticleBuilder::pack(), MdcBuilder::pack(), MucBuilder::pack(), and TofBuilder::pack().
◆ append2event() [2/2]
void Builder::append2event |
( |
WriteRawEvent *& |
re, |
|
|
uint32_t |
source_id, |
|
|
uint32_t |
size |
|
) |
| |
|
protected |
◆ expect() [1/2]
static bool Builder::expect |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname |
|
) |
| |
|
static |
◆ expect() [2/2]
bool Builder::expect |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname |
|
) |
| |
|
static |
Definition at line 28 of file Builder.cxx.
29{
30 string str;
31 if( f.bad() )
32 {
33 cerr << "Error: file " << fname << " is bad" << endl;
34 return false;
35 }
36 f >> str;
37 if( str == msg )
38 return true;
39
40 cerr << "Error: expected `" << msg << "|" << str <<"` in " << fname << endl;
41 return false;
42}
◆ expectInt() [1/2]
static bool Builder::expectInt |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname, |
|
|
uint32_t & |
val1, |
|
|
uint32_t & |
val2 |
|
) |
| |
|
static |
◆ expectInt() [2/2]
bool Builder::expectInt |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname, |
|
|
uint32_t & |
val1, |
|
|
uint32_t & |
val2 |
|
) |
| |
|
static |
Definition at line 44 of file Builder.cxx.
45{
46 if( !
expect( f, msg, fname ) || f.bad() )
47 return false;
48 f >> val1 >> val2;
49 return true;
50}
static bool expect(ifstream &f, string msg, string fname)
◆ expectLong() [1/2]
static bool Builder::expectLong |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname, |
|
|
uint64_t & |
val |
|
) |
| |
|
static |
◆ expectLong() [2/2]
bool Builder::expectLong |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname, |
|
|
uint64_t & |
val |
|
) |
| |
|
static |
Definition at line 52 of file Builder.cxx.
53{
54 if ( !
expect(f, msg, fname) || f.bad() )
55 return false;
56 f >> val;
57 return true;
58}
◆ find() [1/2]
static bool Builder::find |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname |
|
) |
| |
|
static |
◆ find() [2/2]
bool Builder::find |
( |
ifstream & |
f, |
|
|
string |
msg, |
|
|
string |
fname |
|
) |
| |
|
static |
Definition at line 60 of file Builder.cxx.
61{
62 if ( f.bad() ) {
63 cerr << "Error: file " << fname << " bad checked" << endl;
64 return false;
65 }
66
67 string str;
68 while ( !f.eof() ) {
69 f >> str;
70 if ( str == msg ) return true;
71 }
72
73 return false;
74}
◆ getREID() [1/2]
virtual uint32_t Builder::getREID |
( |
uint32_t |
reid | ) |
|
|
pure virtual |
Implemented in EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, and TofBuilder.
◆ getREID() [2/2]
virtual uint32_t Builder::getREID |
( |
uint32_t |
reid | ) |
|
|
pure virtual |
Implemented in EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, and TofBuilder.
◆ getTEID() [1/2]
virtual uint32_t Builder::getTEID |
( |
uint32_t |
teid | ) |
|
|
pure virtual |
Implemented in EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, and TofMcHitBuilder.
◆ getTEID() [2/2]
virtual uint32_t Builder::getTEID |
( |
uint32_t |
teid | ) |
|
|
pure virtual |
Implemented in EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcBuilder, HltBuilder, MdcBuilder, MucBuilder, TofBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, TofMcHitBuilder, EmcMcHitBuilder, McParticleBuilder, MdcMcHitBuilder, MucMcHitBuilder, and TofMcHitBuilder.
◆ initialize() [1/2]
virtual StatusCode Builder::initialize |
( |
string & |
initFile | ) |
|
|
inlinevirtual |
Reimplemented in EmcBuilder, EmcMcHitBuilder, HltBuilder, McParticleBuilder, MdcBuilder, MdcMcHitBuilder, MucBuilder, MucMcHitBuilder, TofBuilder, TofMcHitBuilder, EmcBuilder, EmcMcHitBuilder, HltBuilder, McParticleBuilder, MdcBuilder, MdcMcHitBuilder, MucBuilder, MucMcHitBuilder, TofBuilder, and TofMcHitBuilder.
Definition at line 32 of file Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/EventManagement/Builder.h.
32{return StatusCode::SUCCESS;};
◆ initialize() [2/2]
virtual StatusCode Builder::initialize |
( |
string & |
initFile | ) |
|
|
inlinevirtual |
Reimplemented in EmcBuilder, EmcMcHitBuilder, HltBuilder, McParticleBuilder, MdcBuilder, MdcMcHitBuilder, MucBuilder, MucMcHitBuilder, TofBuilder, TofMcHitBuilder, EmcBuilder, EmcMcHitBuilder, HltBuilder, McParticleBuilder, MdcBuilder, MdcMcHitBuilder, MucBuilder, MucMcHitBuilder, TofBuilder, and TofMcHitBuilder.
Definition at line 32 of file InstallArea/include/RawDataCnv/RawDataCnv/EventManagement/Builder.h.
32{return StatusCode::SUCCESS;};
◆ m_buf
uint32_t * Builder::m_buf |
|
protected |
◆ m_confFile
static string Builder::m_confFile |
|
staticprotected |
◆ m_propMgr
PropertyMgr Builder::m_propMgr |
|
protected |
◆ m_status
uint32_t Builder::m_status |
|
protected |
The documentation for this class was generated from the following files: