ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerTest
src
Obj12FillerTool.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 "
Obj12FillerTool.h
"
15
#include "
D3PDMakerTest/Obj1.h
"
16
#include "
D3PDMakerTest/Obj2.h
"
17
#include "
AthenaKernel/errorcheck.h
"
18
19
20
namespace
D3PDTest
{
21
22
29
Obj12FillerTool::Obj12FillerTool
(
const
std::string&
type
,
30
const
std::string& name,
31
const
IInterface* parent)
32
:
Base
(
type
, name, parent)
33
{
34
book
().ignore();
// Avoid coverity warnings
35
}
36
37
41
StatusCode
Obj12FillerTool::book
()
42
{
43
CHECK
(
addVariable
(
"mult_i"
,
m_mult_i
) );
44
45
return
StatusCode::SUCCESS;
46
}
47
48
57
StatusCode
Obj12FillerTool::fill
(
const
Obj1
& p)
58
{
59
*
m_mult_i
= p.m_i;
60
61
return
StatusCode::SUCCESS;
62
}
63
64
73
StatusCode
Obj12FillerTool::fill
(
const
Obj2
& p)
74
{
75
*
m_mult_i
= p.m_i;
76
77
return
StatusCode::SUCCESS;
78
}
79
80
81
}
// 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
Obj12FillerTool.h
D3PD maker regression tests.
Obj1.h
Test class for D3PD maker.
Obj2.h
Test class for D3PD maker.
D3PDTest::Obj12FillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
Obj12FillerTool.cxx:41
D3PDTest::Obj12FillerTool::Base
D3PD::BlockFillerTool< D3PD::Types< Obj1, Obj2 > > Base
Definition
Obj12FillerTool.h:33
D3PDTest::Obj12FillerTool::Obj12FillerTool
Obj12FillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
Obj12FillerTool.cxx:29
D3PDTest::Obj12FillerTool::m_mult_i
int * m_mult_i
Variables.
Definition
Obj12FillerTool.h:73
D3PDTest::Obj12FillerTool::fill
virtual StatusCode fill(const Obj1 &p) override
Fill one block — type-safe version.
Definition
Obj12FillerTool.cxx:57
D3PDTest::Obj1
Test class for D3PD maker.
Definition
Obj1.h:38
D3PDTest::Obj2
Test class for D3PD maker.
Definition
Obj2.h:28
D3PD::BlockFillerTool< D3PD::Types< Obj1, Obj2 > >::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
type
Generated on
for ATLAS Offline Software by
1.17.0