ATLAS Offline Software
Loading...
Searching...
No Matches
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$
12
13
14#include "DefaultFillerTool2.h"
15#include "D3PDMakerTest/Obj1.h"
17
18
19namespace 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
73StatusCode DefaultFillerTool2::fill (const Obj1& /*p*/)
74{
75 return StatusCode::SUCCESS;
76}
77
78
79} // namespace D3PDTest
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Test setting default values in d3pds.
Test class for D3PD maker.
virtual StatusCode fill(const Obj1 &p) override
Fill one block — type-safe version.
virtual StatusCode book() final
Book variables for this block.
DefaultFillerTool2(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Test class for D3PD maker.
Definition Obj1.h:38
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.