ATLAS Offline Software
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 $
14 #include "DummyVarFillerTool.h"
16 
17 
18 namespace 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
D3PD::DummyVarFillerTool::m_varName
std::string m_varName
Property: Name of the variable to create.
Definition: DummyVarFillerTool.h:64
D3PD::AddVariable::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition: AddVariable.cxx:85
D3PD::DummyVarFillerTool::book
virtual StatusCode book() final
Declare tuple variables.
Definition: DummyVarFillerTool.cxx:42
D3PD::DummyVarFillerTool::m_var
char * m_var
Variable: The created variable.
Definition: DummyVarFillerTool.h:67
D3PD::DummyVarFillerTool::DummyVarFillerTool
DummyVarFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: DummyVarFillerTool.cxx:27
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::DummyVarFillerTool::fill
virtual StatusCode fill() override
Fill one block — type-safe version.
Definition: DummyVarFillerTool.cxx:56
DummyVarFillerTool.h
Create an empty variable in the D3PD.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15