ATLAS Offline Software
RootObjectMetadata.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: RootObjectMetadata.h 530460 2012-12-13 18:27:24Z krasznaa $
8 #ifndef D3PDMAKERREADER_ROOTOBJECTMETADATA_H
9 #define D3PDMAKERREADER_ROOTOBJECTMETADATA_H
10 
11 
12 
13 // D3PD include(s):
15 // STL include(s):
16 #include <string>
17 
18 namespace D3PD {
19 
34 
35  public:
40 
43 
45  StatusCode addVariable( const std::string& name,
46  const std::string& type,
47  const std::string& docstring );
48 
51 
53  static bool isObjectMetadata( const std::string& name );
54 
55  private:
56  // Avoid coverity warning.
58 
59  }; // class RootObjectMetadata
60 
61 } // namespace D3PD
62 
63 #endif // D3PDMAKERREADER_ROOTOBJECTMETADATA_H
D3PD::RootObjectMetadata::isObjectMetadata
static bool isObjectMetadata(const std::string &name)
Function guessing if an object with a given name is object metadata.
Definition: RootObjectMetadata.cxx:117
D3PD::RootObjectMetadata::checkPrefixes
StatusCode checkPrefixes()
Remove possibly overlooked prefixes in the variable names.
Definition: RootObjectMetadata.cxx:77
ObjectMetadata.h
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
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::RootObjectMetadata::addVariable
StatusCode addVariable(const std::string &name, const std::string &type, const std::string &docstring)
Function adding a variable, when the exact type_info is not available.
Definition: RootObjectMetadata.cxx:30
D3PD::RootObjectMetadata::RootObjectMetadata
RootObjectMetadata()
Default constructor.
Definition: RootObjectMetadata.cxx:20
D3PD::RootObjectMetadata
Extension of the ObjectMetadata class for reading D3PD files.
Definition: RootObjectMetadata.h:33
D3PD::ObjectMetadata
D3PD variable metadata handling class.
Definition: ObjectMetadata.h:36
D3PD::ObjectMetadata::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
This function can be used to save the metadata about a D3PD variable.
Definition: ObjectMetadata.cxx:109
D3PD::RootObjectMetadata::operator=
RootObjectMetadata & operator=(const RootObjectMetadata &)
D3PD::ObjectMetadata::name
const std::string & name() const
Get the name of the D3PDObject that this object describes.
Definition: ObjectMetadata.cxx:170