ATLAS Offline Software
AddVariable.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
14 #ifndef D3PDMAKERUTILS_ADDVARIABLE_H
15 #define D3PDMAKERUTILS_ADDVARIABLE_H
16 
17 
19 #include "ObjectMetadata.h"
20 
21 
22 namespace D3PD {
23 
24 
37  : public IAddVariable
38 {
39 private:
41  static const std::string s_emptyString;
42 
43 
44 public:
50  AddVariable (const std::string& prefix,
51  const std::string& blockName = s_emptyString);
52 
53 
60  AddVariable (const std::string& prefix,
61  const std::string& blockName,
62  const std::string& suffix);
63 
64 
70 
71 
75 
76 
93  virtual StatusCode addVariable (const std::string& name,
94  const std::type_info& ti,
95  void* & ptr,
96  const std::string& docstring = "",
97  const void* defval = 0);
98 
99 
118  virtual StatusCode
119  addDimensionedVariable (const std::string& name,
120  const std::type_info& ti,
121  void* & ptr,
122  const std::string& dim,
123  const std::string& docstring = "",
124  const void* defval = 0);
125 
126 
127 protected:
130 
131 
132 private:
134  const std::string& m_prefix;
135 
137  const std::string& m_suffix;
138 
140  //const std::string& m_blockName;
141 
144 };
145 
146 
147 } // namespace D3PD
148 
149 
150 #endif // not D3PDMAKERUTILS_ADDVARIABLE_H
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
D3PD::AddVariable
Common implementation of IAddVariable.
Definition: AddVariable.h:38
D3PD::AddVariable::configureD3PD
StatusCode configureD3PD(IAddVariable *tree)
Configure the parent tree.
Definition: AddVariable.cxx:61
D3PD::AddVariable::AddVariable
AddVariable(const std::string &prefix, const std::string &blockName=s_emptyString)
Constructor.
Definition: AddVariable.cxx:29
D3PD::AddVariable::m_suffix
const std::string & m_suffix
Reference to the variable suffix.
Definition: AddVariable.h:137
tree
TChain * tree
Definition: tile_monitor.h:30
D3PD::AddVariable::m_prefix
const std::string & m_prefix
Reference to the variable prefix.
Definition: AddVariable.h:134
ObjectMetadata.h
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
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
D3PD::AddVariable::m_tree
IAddVariable * m_tree
Reference to the block name.
Definition: AddVariable.h:143
D3PD::AddVariable::addDimensionedVariable
virtual StatusCode addDimensionedVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition: AddVariable.cxx:123
D3PD::AddVariable::m_metadata
ObjectMetadata m_metadata
Metadata about the variables created by this object.
Definition: AddVariable.h:129
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
D3PD::AddVariable::s_emptyString
static const std::string s_emptyString
Used to provide a default value for blockName.
Definition: AddVariable.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
D3PD::ObjectMetadata
D3PD variable metadata handling class.
Definition: ObjectMetadata.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PD::IAddVariable::addVariable
StatusCode addVariable(const std::string &name, T *&ptr, const std::string &docstring="")
Add a variable to the tuple.
IAddVariable.h
Common interface for adding a variable to a tuple.
D3PD::IAddVariable::addDimensionedVariable
StatusCode addDimensionedVariable(const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring="")
Add a variable to the tuple.