ATLAS Offline Software
DefaultFillerTool2.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 "DefaultFillerTool2.h"
15 #include "D3PDMakerTest/Obj1.h"
17 
18 
19 namespace D3PDTest {
20 
21 
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 
41 {
42  CHECK( addVariable ("c1", m_c1) );
43  CHECK( addVariable ("c2", m_c2, "", 1) );
44  CHECK( addVariable ("uc1", m_uc1) );
45  CHECK( addVariable ("uc2", m_uc2, "", 2) );
46  CHECK( addVariable ("s1", m_s1) );
47  CHECK( addVariable ("s2", m_s2, "", -3) );
48  CHECK( addVariable ("us1", m_us1) );
49  CHECK( addVariable ("us2", m_us2, "", 4) );
50  CHECK( addVariable ("i1", m_i1) );
51  CHECK( addVariable ("i2", m_i2, "", -5) );
52  CHECK( addVariable ("ui1", m_ui1) );
53  CHECK( addVariable ("ui2", m_ui2, "", 6) );
54  CHECK( addVariable ("f1", m_f1) );
55  CHECK( addVariable ("f2", m_f2, "", -7.5) );
56  CHECK( addVariable ("d1", m_d1) );
57  CHECK( addVariable ("d2", m_d2, "", 8.5) );
58  CHECK( addVariable ("b1", m_b1) );
59  CHECK( addVariable ("b2", m_b2, "", true) );
60 
61  return StatusCode::SUCCESS;
62 }
63 
64 
74 {
75  return StatusCode::SUCCESS;
76 }
77 
78 
79 } // namespace D3PDTest
D3PDTest::DefaultFillerTool2::m_s1
short * m_s1
Definition: DefaultFillerTool2.h:65
D3PDTest::DefaultFillerTool2::m_i2
int * m_i2
Definition: DefaultFillerTool2.h:70
D3PDTest::Obj1
Test class for D3PD maker.
Definition: Obj1.h:38
D3PDTest::DefaultFillerTool2::m_c1
char * m_c1
Variables.
Definition: DefaultFillerTool2.h:61
D3PDTest::DefaultFillerTool2::m_s2
short * m_s2
Definition: DefaultFillerTool2.h:66
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::DefaultFillerTool2::m_b1
bool * m_b1
Definition: DefaultFillerTool2.h:77
D3PDTest::DefaultFillerTool2::m_f1
float * m_f1
Definition: DefaultFillerTool2.h:73
D3PDTest::DefaultFillerTool2::m_c2
char * m_c2
Definition: DefaultFillerTool2.h:62
D3PDTest::DefaultFillerTool2::m_d2
double * m_d2
Definition: DefaultFillerTool2.h:76
D3PDTest::DefaultFillerTool2::m_b2
bool * m_b2
Definition: DefaultFillerTool2.h:78
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
D3PDTest::DefaultFillerTool2::m_i1
int * m_i1
Definition: DefaultFillerTool2.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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::DefaultFillerTool2::m_ui2
unsigned int * m_ui2
Definition: DefaultFillerTool2.h:72
D3PDTest::DefaultFillerTool2::book
virtual StatusCode book() final
Book variables for this block.
Definition: DefaultFillerTool2.cxx:40
D3PDTest::DefaultFillerTool2::m_ui1
unsigned int * m_ui1
Definition: DefaultFillerTool2.h:71
D3PDTest::DefaultFillerTool2::m_uc2
unsigned char * m_uc2
Definition: DefaultFillerTool2.h:64
DefaultFillerTool2.h
Test setting default values in d3pds.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PDTest::DefaultFillerTool2::DefaultFillerTool2
DefaultFillerTool2(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: DefaultFillerTool2.cxx:28
D3PDTest::DefaultFillerTool2::m_d1
double * m_d1
Definition: DefaultFillerTool2.h:75
D3PDTest::DefaultFillerTool2::fill
virtual StatusCode fill(const Obj1 &p) override
Fill one block — type-safe version.
Definition: DefaultFillerTool2.cxx:73
D3PDTest::DefaultFillerTool2::m_us1
unsigned short * m_us1
Definition: DefaultFillerTool2.h:67
D3PDTest::DefaultFillerTool2::m_uc1
unsigned char * m_uc1
Definition: DefaultFillerTool2.h:63
D3PDTest::DefaultFillerTool2::m_f2
float * m_f2
Definition: DefaultFillerTool2.h:74
Obj1.h
Test class for D3PD maker.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PDTest
Definition: MapDumper.h:25
D3PDTest::DefaultFillerTool2::m_us2
unsigned short * m_us2
Definition: DefaultFillerTool2.h:68