ATLAS Offline Software
PhysicsAnalysis
D3PDMaker
D3PDMakerTest
src
DefaultFillerTool.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$
14
#include "
DefaultFillerTool.h
"
15
#include "
AthenaKernel/errorcheck.h
"
16
17
18
namespace
D3PDTest
{
19
20
27
DefaultFillerTool::DefaultFillerTool
(
const
std::string&
type
,
28
const
std::string&
name
,
29
const
IInterface*
parent
)
30
:
D3PD
::BlockFillerTool<void> (
type
,
name
,
parent
)
31
{
32
book
().ignore();
// Avoid coverity warnings
33
}
34
35
39
StatusCode
DefaultFillerTool::book
()
40
{
41
CHECK
(
addVariable
(
"c1"
,
m_c1
) );
42
CHECK
(
addVariable
(
"c2"
,
m_c2
,
""
, 1) );
43
CHECK
(
addVariable
(
"uc1"
,
m_uc1
) );
44
CHECK
(
addVariable
(
"uc2"
,
m_uc2
,
""
, 2) );
45
CHECK
(
addVariable
(
"s1"
,
m_s1
) );
46
CHECK
(
addVariable
(
"s2"
,
m_s2
,
""
, -3) );
47
CHECK
(
addVariable
(
"us1"
,
m_us1
) );
48
CHECK
(
addVariable
(
"us2"
,
m_us2
,
""
, 4) );
49
CHECK
(
addVariable
(
"i1"
,
m_i1
) );
50
CHECK
(
addVariable
(
"i2"
,
m_i2
,
""
, -5) );
51
CHECK
(
addVariable
(
"ui1"
,
m_ui1
) );
52
CHECK
(
addVariable
(
"ui2"
,
m_ui2
,
""
, 6) );
53
CHECK
(
addVariable
(
"f1"
,
m_f1
) );
54
CHECK
(
addVariable
(
"f2"
,
m_f2
,
""
, -7.5) );
55
CHECK
(
addVariable
(
"d1"
,
m_d1
) );
56
CHECK
(
addVariable
(
"d2"
,
m_d2
,
""
, 8.5) );
57
CHECK
(
addVariable
(
"b1"
,
m_b1
) );
58
CHECK
(
addVariable
(
"b2"
,
m_b2
,
""
,
true
) );
59
60
return
StatusCode::SUCCESS;
61
}
62
63
71
StatusCode
DefaultFillerTool::fill
()
72
{
73
return
StatusCode::SUCCESS;
74
}
75
76
77
}
// namespace D3PDTest
D3PDTest::DefaultFillerTool::m_uc2
unsigned char * m_uc2
Definition:
DefaultFillerTool.h:60
D3PDTest::DefaultFillerTool::m_f1
float * m_f1
Definition:
DefaultFillerTool.h:69
DefaultFillerTool.h
Test setting default values in d3pds.
D3PDTest::DefaultFillerTool::m_c2
char * m_c2
Definition:
DefaultFillerTool.h:58
D3PD::AddVariable::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition:
AddVariable.cxx:85
D3PDTest::DefaultFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition:
DefaultFillerTool.cxx:39
D3PDTest::DefaultFillerTool::DefaultFillerTool
DefaultFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition:
DefaultFillerTool.cxx:27
D3PDTest::DefaultFillerTool::m_s2
short * m_s2
Definition:
DefaultFillerTool.h:62
D3PDTest::DefaultFillerTool::m_s1
short * m_s1
Definition:
DefaultFillerTool.h:61
D3PD
Block filler tool for noisy FEB information.
Definition:
CaloCellDetailsFillerTool.cxx:29
D3PDTest::DefaultFillerTool::m_d1
double * m_d1
Definition:
DefaultFillerTool.h:71
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PDTest::DefaultFillerTool::m_uc1
unsigned char * m_uc1
Definition:
DefaultFillerTool.h:59
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition:
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
D3PDTest::DefaultFillerTool::m_c1
char * m_c1
Variables.
Definition:
DefaultFillerTool.h:57
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PDTest::DefaultFillerTool::m_us1
unsigned short * m_us1
Definition:
DefaultFillerTool.h:63
D3PDTest::DefaultFillerTool::m_b2
bool * m_b2
Definition:
DefaultFillerTool.h:74
D3PDTest::DefaultFillerTool::m_i1
int * m_i1
Definition:
DefaultFillerTool.h:65
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
D3PDTest::DefaultFillerTool::m_ui2
unsigned int * m_ui2
Definition:
DefaultFillerTool.h:68
D3PDTest::DefaultFillerTool::m_i2
int * m_i2
Definition:
DefaultFillerTool.h:66
D3PDTest::DefaultFillerTool::m_ui1
unsigned int * m_ui1
Definition:
DefaultFillerTool.h:67
D3PDTest::DefaultFillerTool::m_f2
float * m_f2
Definition:
DefaultFillerTool.h:70
D3PDTest
Definition:
MapDumper.h:25
D3PDTest::DefaultFillerTool::fill
virtual StatusCode fill() override
Fill one block — type-safe version.
Definition:
DefaultFillerTool.cxx:71
D3PDTest::DefaultFillerTool::m_b1
bool * m_b1
Definition:
DefaultFillerTool.h:73
D3PDTest::DefaultFillerTool::m_us2
unsigned short * m_us2
Definition:
DefaultFillerTool.h:64
D3PDTest::DefaultFillerTool::m_d2
double * m_d2
Definition:
DefaultFillerTool.h:72
Generated on Sun Dec 22 2024 21:09:20 for ATLAS Offline Software by
1.8.18