ATLAS Offline Software
RootReaderD3PDBase.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: RootReaderD3PDBase.h 462802 2011-10-12 16:06:24Z krasznaa $
8 #ifndef D3PDMAKERREADER_ROOTREADERD3PDBASE_H
9 #define D3PDMAKERREADER_ROOTREADERD3PDBASE_H
10 
11 // STL include(s):
12 #include <string>
13 #include <set>
14 #include <vector>
15 
16 // D3PD include(s):
18 
19 // Local include(s):
20 #include "IReaderD3PD.h"
21 
22 namespace D3PD {
23 
39 
40  public:
43 
45  virtual StatusCode addVariable( const std::string& name,
46  const std::type_info& ti,
47  void*& ptr,
48  const std::string& docstring = "",
49  const void* defval = 0 );
51  virtual StatusCode addDimensionedVariable( const std::string& name,
52  const std::type_info& ti,
53  void*& ptr,
54  const std::string& dim,
55  const std::string& docstring = "",
56  const void* defval = 0 );
57 
59  virtual StatusCode addMetadata( const std::string& key,
60  const void* obj,
61  const std::type_info& ti );
62 
64  virtual StatusCode capture();
66  virtual StatusCode clear();
68  virtual StatusCode redim( const Dim_t* ptr );
69 
71  virtual void setIsContainer( bool isContainer );
73  virtual bool isContainer() const;
74 
76  virtual void setPrefix( const std::string& prefix );
78  virtual const std::string& prefix() const;
79 
80  protected:
82  void addSTLHeader( std::ostream& out, const char* name ) const;
83 
85 
86  }; // class RootReaderD3PDBase
87 
88 } // namespace D3PD
89 
90 #endif // D3PDMAKERREADER_ROOTREADERD3PDBASE_H
D3PD::RootReaderD3PDBase::clear
virtual StatusCode clear()
Function clearing the D3PD variables. Not implemented here!
Definition: RootReaderD3PDBase.cxx:123
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
D3PD::RootReaderD3PDBase::m_metadata
ObjectMetadata m_metadata
Object holding the information about the variables.
Definition: RootReaderD3PDBase.h:84
IReaderD3PD.h
D3PD::RootReaderD3PDBase
Base class for all ROOT-based code generators.
Definition: RootReaderD3PDBase.h:38
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
ObjectMetadata.h
D3PD::RootReaderD3PDBase::setIsContainer
virtual void setIsContainer(bool isContainer)
Set the "isCollection" parameter of the object.
Definition: RootReaderD3PDBase.cxx:137
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
D3PD::RootReaderD3PDBase::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Main function for adding a variable to the D3PD.
Definition: RootReaderD3PDBase.cxx:85
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
D3PD::RootReaderD3PDBase::redim
virtual StatusCode redim(const Dim_t *ptr)
Function currently not used by the D3PDMaker code.
Definition: RootReaderD3PDBase.cxx:130
D3PD::RootReaderD3PDBase::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)
Function currently not used by the D3PDMaker code.
Definition: RootReaderD3PDBase.cxx:95
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::RootReaderD3PDBase::isContainer
virtual bool isContainer() const
Get the "isCollection" parameter of the object.
Definition: RootReaderD3PDBase.cxx:143
D3PD::ObjectMetadata
D3PD variable metadata handling class.
Definition: ObjectMetadata.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PD::RootReaderD3PDBase::addMetadata
virtual StatusCode addMetadata(const std::string &key, const void *obj, const std::type_info &ti)
Function adding metadata to the D3PD. Not implemented here!
Definition: RootReaderD3PDBase.cxx:107
D3PD::ID3PD::Dim_t
unsigned int Dim_t
Currently unimplemented — see design note.
Definition: ID3PD.h:52
D3PD::RootReaderD3PDBase::addSTLHeader
void addSTLHeader(std::ostream &out, const char *name) const
Function adding STL include statements to the header when needed.
Definition: RootReaderD3PDBase.cxx:167
D3PD::RootReaderD3PDBase::RootReaderD3PDBase
RootReaderD3PDBase()
Quite empty constructor.
Definition: RootReaderD3PDBase.cxx:80
D3PD::RootReaderD3PDBase::prefix
virtual const std::string & prefix() const
Get the common prefix of the variables.
Definition: RootReaderD3PDBase.cxx:154
D3PD::RootReaderD3PDBase::setPrefix
virtual void setPrefix(const std::string &prefix)
Set the common prefix of the variables.
Definition: RootReaderD3PDBase.cxx:148
D3PD::IReaderD3PD
Common interface for the code generator D3PD classes.
Definition: IReaderD3PD.h:29
python.PyAthena.obj
obj
Definition: PyAthena.py:132
D3PD::RootReaderD3PDBase::capture
virtual StatusCode capture()
Function capturing the current value of the D3PD variables. Not implemented here!
Definition: RootReaderD3PDBase.cxx:116
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37