| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
12
23 class RFileCnv : public RDirectoryCnv
24 {
25
26 public:
28 StatusCode initialize() override;
29
30 public:
32 StatusCode createObj( IOpaqueAddress* pAddress, DataObject*& refpObject ) override;
34 StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
36 StatusCode updateRep( IOpaqueAddress* pAddress, DataObject* pObject ) override;
37
38 public:
40 static const CLID& classID() { return CLID_NTupleFile; }
41
43 RFileCnv( ISvcLocator* svc );
44
46 ~RFileCnv() override = default;
47
48 protected:
49 TFile* rfile;
50 std::string m_compLevel;
51 };
52 } // namespace RootHistCnv
53 #endif // RootHistCnv_RFileCNV_H
RootHistCnv::RFileCnv::rfile
TFile * rfile
Pointer to ROOT file.
Definition: RFileCnv.h:49
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:40
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:138
RootHistCnv::RFileCnv::updateRep
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:146
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:23
RootHistCnv::RFileCnv::createObj
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Create the transient representation of an object.
Definition: RFileCnv.cpp:42
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
RootHistCnv::RDirectoryCnv
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:17
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:50
RootHistCnv::RFileCnv::~RFileCnv
~RFileCnv() override=default
Standard destructor.
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