ATLAS Offline Software
Loading...
Searching...
No Matches
DummyVarFillerTool.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: DummyVarFillerTool.cxx 491462 2012-03-28 23:35:19Z ssnyder $
12
13
14#include "DummyVarFillerTool.h"
16
17
18namespace D3PD {
19
20
28 const std::string& name,
29 const IInterface* parent)
30 : BlockFillerTool<void> (type, name, parent)
31{
32 declareProperty ("VarName", m_varName, "Name of the variable to create.");
33 book().ignore(); // Clear variables.
34}
35
36
43{
44 CHECK( addVariable (m_varName, m_var, "(Dummy variable.)") );
45 return StatusCode::SUCCESS;
46}
47
48
57{
58 return StatusCode::SUCCESS;
59}
60
61
62} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Create an empty variable in the D3PD.
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.
virtual StatusCode fill() override
Fill one block — type-safe version.
char * m_var
Variable: The created variable.
virtual StatusCode book() final
Declare tuple variables.
std::string m_varName
Property: Name of the variable to create.
DummyVarFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.