ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerTest
src
Obj1FillerTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
12
13
14
#include "
Obj1FillerTool.h
"
15
#include "
D3PDMakerTest/Obj1.h
"
16
#include "
AthenaKernel/errorcheck.h
"
17
18
19
namespace
D3PDTest
{
20
21
28
Obj1FillerTool::Obj1FillerTool
(
const
std::string&
type
,
29
const
std::string& name,
30
const
IInterface* parent)
31
:
D3PD
::BlockFillerTool<
Obj1
> (
type
, name, parent)
32
{
33
book
().ignore();
// Avoid coverity warnings
34
}
35
36
40
StatusCode
Obj1FillerTool::book
()
41
{
42
CHECK
(
addVariable
(
"c"
,
m_c
) );
43
CHECK
(
addVariable
(
"uc"
,
m_uc
) );
44
CHECK
(
addVariable
(
"s"
,
m_s
) );
45
CHECK
(
addVariable
(
"us"
,
m_us
) );
46
CHECK
(
addVariable
(
"i"
,
m_i
) );
47
CHECK
(
addVariable
(
"ui"
,
m_ui
) );
48
CHECK
(
addVariable
(
"f"
,
m_f
) );
49
CHECK
(
addVariable
(
"d"
,
m_d
) );
50
//CHECK( addVariable ("ll", m_ll) );
51
//CHECK( addVariable ("ull", m_ull) );
52
CHECK
(
addVariable
(
"b"
,
m_b
) );
53
54
return
StatusCode::SUCCESS;
55
}
56
57
66
StatusCode
Obj1FillerTool::fill
(
const
Obj1
& p)
67
{
68
*
m_c
= p.m_c;
69
*
m_uc
= p.m_uc;
70
*
m_s
= p.m_s;
71
*
m_us
= p.m_us;
72
*
m_i
= p.m_i;
73
*
m_ui
= p.m_ui;
74
*
m_f
= p.m_f;
75
*
m_d
= p.m_d;
76
//*m_ll = p.m_ll;
77
//*m_ull = p.m_ull;
78
*
m_b
= p.m_b;
79
80
return
StatusCode::SUCCESS;
81
}
82
83
84
}
// namespace D3PDTest
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
Obj1FillerTool.h
D3PD maker regression tests.
Obj1.h
Test class for D3PD maker.
D3PDTest::Obj1FillerTool::m_i
int * m_i
Definition
Obj1FillerTool.h:66
D3PDTest::Obj1FillerTool::Obj1FillerTool
Obj1FillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
Obj1FillerTool.cxx:28
D3PDTest::Obj1FillerTool::m_c
char * m_c
Variables.
Definition
Obj1FillerTool.h:62
D3PDTest::Obj1FillerTool::m_s
short * m_s
Definition
Obj1FillerTool.h:64
D3PDTest::Obj1FillerTool::m_uc
unsigned char * m_uc
Definition
Obj1FillerTool.h:63
D3PDTest::Obj1FillerTool::m_us
unsigned short * m_us
Definition
Obj1FillerTool.h:65
D3PDTest::Obj1FillerTool::m_d
double * m_d
Definition
Obj1FillerTool.h:69
D3PDTest::Obj1FillerTool::m_f
float * m_f
Definition
Obj1FillerTool.h:68
D3PDTest::Obj1FillerTool::m_b
bool * m_b
Definition
Obj1FillerTool.h:72
D3PDTest::Obj1FillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
Obj1FillerTool.cxx:40
D3PDTest::Obj1FillerTool::m_ui
unsigned int * m_ui
Definition
Obj1FillerTool.h:67
D3PDTest::Obj1FillerTool::fill
virtual StatusCode fill(const Obj1 &p) override
Fill one block — type-safe version.
Definition
Obj1FillerTool.cxx:66
D3PDTest::Obj1
Test class for D3PD maker.
Definition
Obj1.h:38
D3PD::BlockFillerTool< Obj1 >::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Definition
AddVariable.cxx:85
D3PDTest
Definition
MapDumper.h:25
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0