ATLAS Offline Software
RootObjectMetadata.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: RootObjectMetadata.h 530460 2012-12-13 18:27:24Z krasznaa $
8 #ifndef D3PDMAKERREADER_ROOTOBJECTMETADATA_H
9 #define D3PDMAKERREADER_ROOTOBJECTMETADATA_H
10 
11 // STL include(s):
12 #include <string>
13 
14 // D3PD include(s):
16 
17 namespace D3PD {
18 
33 
34  public:
39 
42 
44  StatusCode addVariable( const std::string& name,
45  const std::string& type,
46  const std::string& docstring );
47 
50 
52  static bool isObjectMetadata( const std::string& name );
53 
54  private:
55  // Avoid coverity warning.
57 
58  }; // class RootObjectMetadata
59 
60 } // namespace D3PD
61 
62 #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:118
D3PD::RootObjectMetadata::checkPrefixes
StatusCode checkPrefixes()
Remove possibly overlooked prefixes in the variable names.
Definition: RootObjectMetadata.cxx:78
ObjectMetadata.h
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::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:32
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 &)
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::ObjectMetadata::name
const std::string & name() const
Get the name of the D3PDObject that this object describes.
Definition: ObjectMetadata.cxx:170