ATLAS Offline Software
Loading...
Searching...
No Matches
DefaultFillerTool.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 "DefaultFillerTool.h"
16
17
18namespace D3PDTest {
19
20
28 const std::string& name,
29 const IInterface* parent)
30 : D3PD::BlockFillerTool<void> (type, name, parent)
31{
32 book().ignore(); // Avoid coverity warnings
33}
34
35
40{
41 CHECK( addVariable ("c1", m_c1) );
42 CHECK( addVariable ("c2", m_c2, "", 1) );
43 CHECK( addVariable ("uc1", m_uc1) );
44 CHECK( addVariable ("uc2", m_uc2, "", 2) );
45 CHECK( addVariable ("s1", m_s1) );
46 CHECK( addVariable ("s2", m_s2, "", -3) );
47 CHECK( addVariable ("us1", m_us1) );
48 CHECK( addVariable ("us2", m_us2, "", 4) );
49 CHECK( addVariable ("i1", m_i1) );
50 CHECK( addVariable ("i2", m_i2, "", -5) );
51 CHECK( addVariable ("ui1", m_ui1) );
52 CHECK( addVariable ("ui2", m_ui2, "", 6) );
53 CHECK( addVariable ("f1", m_f1) );
54 CHECK( addVariable ("f2", m_f2, "", -7.5) );
55 CHECK( addVariable ("d1", m_d1) );
56 CHECK( addVariable ("d2", m_d2, "", 8.5) );
57 CHECK( addVariable ("b1", m_b1) );
58 CHECK( addVariable ("b2", m_b2, "", true) );
59
60 return StatusCode::SUCCESS;
61}
62
63
72{
73 return StatusCode::SUCCESS;
74}
75
76
77} // 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.
virtual StatusCode fill() override
Fill one block — type-safe version.
DefaultFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode book() final
Book variables for this block.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
BlockFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.