RootStatCnv.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // Definition of class : RootStatCnv
3 //
4 // Author : M.Frank
5 //
6 //------------------------------------------------------------------------------
7 #ifndef ROOT_ROOTSTATCNV_H
8 #define ROOT_ROOTSTATCNV_H 1
9 
10 // Include files
11 #include "GaudiKernel/MsgStream.h"
12 #include "RootCnv/RootConverter.h"
13 
14 // Forward declarations
15 class IDataManagerSvc;
16 
17 /*
18  * Gaudi namespace declaration
19  */
20 namespace Gaudi {
21 
31  protected:
36 
38  MsgStream& log() const { return *m_log; }
39 
40  protected:
41 
43  StatusCode initialize() override;
44 
46  StatusCode finalize() override;
47 
53  virtual const std::string containerName(IRegistry* pDir) const;
54 
60  virtual const std::string fileName(IRegistry* pReg) const;
61 
67  virtual const std::string topLevel(IRegistry* pReg) const;
68 
75  StatusCode makeError(const std::string& msg, bool throw_exception=false) const;
76 
87  StatusCode saveDescription( const std::string& path,
88  const std::string& ident,
89  const std::string& desc,
90  const std::string& opt,
91  const CLID& clid);
92 
93  public:
94 
102  RootStatCnv(long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr);
103 
105  ~RootStatCnv() override = default;
106  };
107 }
108 #endif // ROOT_RootStatCnv_H
MsgStream & log() const
Helper to use mesage logger.
Definition: RootStatCnv.h:38
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Description:
Definition: RootCnvSvc.h:53
SmartIF< IDataManagerSvc > m_dataMgr
Reference to data manager service to manipulate the TES.
Definition: RootStatCnv.h:33
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
std::unique_ptr< MsgStream > m_log
Reference to logger object.
Definition: RootStatCnv.h:35
Description: Base class converter for N-tuples and related classes.
Definition: RootStatCnv.h:30
#define GAUDI_API
Definition: Kernel.h:107
Helper functions to set/get the application return code.
Definition: __init__.py:1
Description: Definition of the ROOT data converter.
Definition: RootConverter.h:32