ATLAS Offline Software
Loading...
Searching...
No Matches
Obj2FillerTool.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 "Obj2FillerTool.h"
15#include "D3PDMakerTest/Obj2.h"
17
18
19namespace D3PDTest {
20
21
29 const std::string& name,
30 const IInterface* parent)
31 : D3PD::BlockFillerTool<Obj2> (type, name, parent)
32{
33 book().ignore(); // Avoid coverity warnings
34}
35
36
41{
42 CHECK( addVariable ("i", m_i) );
43 CHECK( addVariable ("f", m_f) );
44
45 return StatusCode::SUCCESS;
46}
47
48
57StatusCode Obj2FillerTool::fill (const Obj2& p)
58{
59 *m_i = p.m_i;
60 *m_f = p.m_f;
61
62 return StatusCode::SUCCESS;
63}
64
65
66} // namespace D3PDTest
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
D3PD maker regression tests.
Test class for D3PD maker.
virtual StatusCode fill(const Obj2 &p) override
Fill one block — type-safe version.
virtual StatusCode book() final
Book variables for this block.
Obj2FillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Test class for D3PD maker.
Definition Obj2.h:28
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Block filler tool for noisy FEB information.