The Gaudi Framework  master (d98a2936)
RootStatCnv.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 //------------------------------------------------------------------------------
12 // Definition of class : RootStatCnv
13 //
14 // Author : M.Frank
15 //
16 //------------------------------------------------------------------------------
17 #pragma once
18 
19 // Include files
20 #include <GaudiKernel/MsgStream.h>
21 #include <RootCnv/RootConverter.h>
22 
23 // Forward declarations
24 struct IDataManagerSvc;
25 
26 /*
27  * Gaudi namespace declaration
28  */
29 namespace Gaudi {
30 
40  protected:
44  std::unique_ptr<MsgStream> m_log;
45 
47  MsgStream& log() const { return *m_log; }
48 
49  protected:
51  StatusCode initialize() override;
52 
54  StatusCode finalize() override;
55 
61  virtual const std::string containerName( IRegistry* pDir ) const;
62 
68  virtual const std::string fileName( IRegistry* pReg ) const;
69 
75  virtual const std::string topLevel( IRegistry* pReg ) const;
76 
83  StatusCode makeError( const std::string& msg, bool throw_exception = false ) const;
84 
95  StatusCode saveDescription( const std::string& path, const std::string& ident, const std::string& desc,
96  const std::string& opt, const CLID& clid );
97 
98  public:
106  RootStatCnv( long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr );
107  };
108 } // namespace Gaudi
IDataManagerSvc
Definition: IDataManagerSvc.h:47
AtlasMCRecoFullPrecedenceDump.path
path
Definition: AtlasMCRecoFullPrecedenceDump.py:49
Gaudi::RootCnvSvc
Definition: RootCnvSvc.h:61
ISvcLocator
Definition: ISvcLocator.h:42
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
IRegistry
Definition: IRegistry.h:29
Gaudi::RootConverter
Definition: RootConverter.h:41
Gaudi::RootStatCnv
Definition: RootStatCnv.h:39
StatusCode
Definition: StatusCode.h:64
Gaudi::RootStatCnv::m_log
std::unique_ptr< MsgStream > m_log
Reference to logger object.
Definition: RootStatCnv.h:44
SmartIF< IDataManagerSvc >
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
MsgStream
Definition: MsgStream.h:29
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Gaudi::RootStatCnv::log
MsgStream & log() const
Helper to use mesage logger.
Definition: RootStatCnv.h:47
RootConverter.h
Gaudi::RootStatCnv::m_dataMgr
SmartIF< IDataManagerSvc > m_dataMgr
Reference to data manager service to manipulate the TES.
Definition: RootStatCnv.h:42
GaudiConfig2.semantics.ident
ident
Definition: semantics.py:203
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49
MsgStream.h