| The Gaudi Framework v32r1 (f65d50dc)

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;
45 std::string m_compLevel;
46 };
47 } // namespace RootHistCnv
48 #endif // RootHistCnv_RFileCNV_H
RootHistCnv::RFileCnv::rfile
TFile * rfile
Pointer to ROOT file.
Definition: RFileCnv.h:44
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
RDirectoryCnv.h
RootHistCnv::RFileCnv::classID
static const CLID & classID()
Inquire class type.
Definition: RFileCnv.h:38
RootHistCnv::RFileCnv::initialize
StatusCode initialize() override
Initialise.
Definition: RFileCnv.cpp:28
NTuple.h
RootHistCnv::RFileCnv::createRep
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:135
RootHistCnv::RFileCnv::updateRep
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:143
RootHistCnv::RFileCnv::RFileCnv
RFileCnv(ISvcLocator *svc)
Standard constructor.
Definition: RFileCnv.cpp:25
std::string
STL class.
RootHistCnv::RFileCnv
NTuple converter class definition.
Definition: RFileCnv.h:22
RootHistCnv::RFileCnv::createObj
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Create the transient representation of an object.
Definition: RFileCnv.cpp:41
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
RootHistCnv::RDirectoryCnv
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:16
RootHistCnv
Definition: DirectoryCnv.h:17
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
RootHistCnv::RFileCnv::m_compLevel
std::string m_compLevel
Compression setting, property RFileCnv.GlobalCompression.
Definition: RFileCnv.h:45
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30