ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerTest
src
Obj4FillerTool.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 "
Obj4FillerTool.h
"
15
#include "
D3PDMakerTest/Obj4.h
"
16
#include "
AthenaKernel/errorcheck.h
"
17
18
19
namespace
D3PDTest
{
20
21
28
Obj4FillerTool::Obj4FillerTool
(
const
std::string&
type
,
29
const
std::string& name,
30
const
IInterface* parent)
31
:
D3PD
::BlockFillerTool<
Obj4
> (
type
, name, parent)
32
{
33
book
().ignore();
// Avoid coverity warnings
34
}
35
36
40
StatusCode
Obj4FillerTool::book
()
41
{
42
CHECK
(
addVariable
(
"obj4"
,
m_obj4
) );
43
44
return
StatusCode::SUCCESS;
45
}
46
47
56
StatusCode
Obj4FillerTool::fill
(
const
Obj4
& p)
57
{
58
*
m_obj4
= p.m_obj4;
59
60
return
StatusCode::SUCCESS;
61
}
62
63
64
}
// 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
Obj4FillerTool.h
D3PD maker regression tests.
Obj4.h
Test class for D3PD maker.
D3PDTest::Obj4FillerTool::fill
virtual StatusCode fill(const Obj4 &p) override
Fill one block — type-safe version.
Definition
Obj4FillerTool.cxx:56
D3PDTest::Obj4FillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
Obj4FillerTool.cxx:40
D3PDTest::Obj4FillerTool::Obj4FillerTool
Obj4FillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
Obj4FillerTool.cxx:28
D3PDTest::Obj4FillerTool::m_obj4
int * m_obj4
Variables.
Definition
Obj4FillerTool.h:60
D3PDTest::Obj4
Test class for D3PD maker.
Definition
Obj4.h:34
D3PD::BlockFillerTool< Obj4 >::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