|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef D3PDMAKERROOT_ROOTD3PD_H
15 #define D3PDMAKERROOT_ROOTD3PD_H
66 const std::vector< std::string >& allowedNames =
67 std::vector< std::string >(),
68 const std::vector< std::string >& vetoedNames =
69 std::vector< std::string >(),
71 int entryOffsetLen = -1);
93 const std::type_info& ti,
95 const std::string& docstring =
"",
96 const void* defval = 0)
override;
117 const std::type_info& ti,
119 const std::string&
dim,
120 const std::string& docstring =
"",
121 const void* defval = 0)
override;
143 const TTree*
tree()
const;
150 const std::string&
master()
const;
168 const std::type_info& ti)
override;
194 TClass*
getClass (
const std::type_info& ti);
201 const std::type_info& ti,
242 #endif // not D3PDMAKERROOT_ROOTD3PD_H
std::vector< std::string > m_vetoedNames
List of names/regular expressions not allowed to be put into the output tree.
Root::Cleartable * m_cleartable
Helper to clear variables.
int m_basketSize
Specified basket size.
const TTree * tree() const
Return the underlying root tree.
TTree * m_tree
The underlying root tree.
virtual StatusCode clear() override
Clear all the tuple variables.
Define an abstract interface for building a D3PD tree.
TClass * getClass(const std::type_info &ti)
Try to convert from a std::type_info to a TClass.
virtual StatusCode addMetadata(const std::string &key, const void *obj, const std::type_info &ti) override
Add a new piece of metadata to the tuple.
RootD3PD(const RootD3PD &)=delete
void setPoolFile(const std::string &poolFile)
Set the name of a pool file to which we should attach.
RootD3PD & operator=(const RootD3PD &)=delete
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0) override
Add a variable to the tuple.
std::string m_master
The name of the master tree.
Block filler tool for noisy FEB information.
std::string m_poolFile
If set, the name of a pool data file to which we should attach ourself.
bool isAllowed(const std::string &name)
Decide if a given variable name is allowed.
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) override
Add a variable to the tuple.
::StatusCode StatusCode
StatusCode definition for legacy code.
Table giving information on how to clear all variables in a tree.
int m_entryOffsetLen
Specified entry offset buffer length.
const std::string & master() const
Return the name of the master tree.
StatusCode attachPoolFile()
Try to attach to a pool file, if we haven't yet done so.
std::map< std::string, FakeProxy * > m_fakeVars
"Fake" variables, only kept in memory
unsigned int Dim_t
Currently unimplemented — see design note.
RootD3PD(TTree *tree, const std::string &master, const std::vector< std::string > &allowedNames=std::vector< std::string >(), const std::vector< std::string > &vetoedNames=std::vector< std::string >(), int basketSize=-1, int entryOffsetLen=-1)
Constructor.
Abstract interface for a D3PD tree.
StatusCode addFakeVariable(const std::string &name, const std::type_info &ti, void *&ptr)
Create a variable in memory only.
virtual StatusCode capture() override
Capture the current state of all variables and write to the tuple.
virtual StatusCode redim(const Dim_t *ptr) override
Currently unimplemented — see design note.
std::vector< std::string > m_allowedNames
List of names/regular expressions allowed to be put into the output tree.