Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RFileCnv.h
Go to the documentation of this file.
1 #ifndef ROOTHISTCNV_RFILECNV_H
2 #define ROOTHISTCNV_RFILECNV_H 1
3 
4 // Include files
5 #include "GaudiKernel/NTuple.h"
6 #include "RDirectoryCnv.h"
7 
8 class TFile;
9 
10 namespace RootHistCnv {
11 
22  class RFileCnv : public RDirectoryCnv {
23 
24  public:
26  StatusCode initialize() override;
27 
28  public:
30  StatusCode createObj( IOpaqueAddress* pAddress, DataObject*& refpObject ) override;
32  StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
34  StatusCode updateRep( IOpaqueAddress* pAddress, DataObject* pObject ) override;
35 
36  public:
38  static const CLID& classID() { return CLID_NTupleFile; }
39 
41  RFileCnv( ISvcLocator* svc );
42 
43  protected:
44  TFile* rfile;
46  };
47 } // namespace RootHistCnv
48 #endif // RootHistCnv_RFileCNV_H
TFile * rfile
Pointer to ROOT file.
Definition: RFileCnv.h:44
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
static const CLID & classID()
Inquire class type.
Definition: RFileCnv.h:38
StatusCode initialize() override
Initialise.
Definition: RFileCnv.cpp:28
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:135
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:143
RFileCnv(ISvcLocator *svc)
Standard constructor.
Definition: RFileCnv.cpp:25
STL class.
NTuple converter class definition.
Definition: RFileCnv.h:22
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Create the transient representation of an object.
Definition: RFileCnv.cpp:41
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:16
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
std::string m_compLevel
Compression setting, property RFileCnv.GlobalCompression.
Definition: RFileCnv.h:45
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30