| The Gaudi Framework v27r1

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

- File List
- File Members

RootNTupleCnv.h
Go to the documentation of this file.
1 //====================================================================
2 // NTuple converter class definition
3 //--------------------------------------------------------------------
4 //
5 // Author : M.Frank
6 //
7 //====================================================================
8 #ifndef GAUDIROOTCNV_ROOTNTUPLECNV_H
9 #define GAUDIROOTCNV_ROOTNTUPLECNV_H 1
10
11 // Include files
12 #include "RootCnv/RootStatCnv.h"
13
14 // Forward declarations
15 class INTuple;
16 class TBranch;
17
18 /*
19 * Gaudi namespace declaration
20 */
21 namespace Gaudi {
22
34 class GAUDI_API RootNTupleCnv: public RootStatCnv {
35 protected:
36
38 StatusCode i__updateObjRoot(RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con);
39
40 #ifdef __POOL_COMPATIBILITY
41 StatusCode i__updateObjPool(RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con);
43 #endif
44
45 public:
47
54 RootNTupleCnv(long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr)
55 : RootStatCnv(typ, clid, svc, mgr) {}
56
58 ~RootNTupleCnv() override = default;
59
69 StatusCode createRep( DataObject* pObj,IOpaqueAddress*& refpAdd) override;
70
72
78 StatusCode fillRepRefs( IOpaqueAddress* pAdd,DataObject* pObj) override;
79
88 StatusCode createObj( IOpaqueAddress* pAddress,
89 DataObject*& refpObject) override;
90
99 StatusCode fillObjRefs( IOpaqueAddress* /* pAddress */,
100 DataObject* /* pObject */) override
101 { return StatusCode::SUCCESS; }
102
110 StatusCode updateObj( IOpaqueAddress* pAddress,
111 DataObject* pObject) override;
112
121 StatusCode updateObjRefs( IOpaqueAddress* /* pAddress */,
122 DataObject* /* pObject */ ) override
123 { return StatusCode::SUCCESS; }
124
133 StatusCode updateRep( IOpaqueAddress* /* pAddress */,
134 DataObject* /* pObject */) override
135 { return StatusCode::SUCCESS; }
136
145 StatusCode updateRepRefs( IOpaqueAddress* /* pAddress */,
146 DataObject* /* pObject */ ) override
147 { return StatusCode::SUCCESS; }
148 };
149 }
150
151 #endif // GAUDIROOTCNV_ROOTNTUPLECNV_H
Gaudi::RootAddress
Description:
Definition: RootAddress.h:36
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Gaudi::RootCnvSvc
Description:
Definition: RootCnvSvc.h:52
Gaudi::RootNTupleCnv::updateRepRefs
StatusCode updateRepRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
Definition: RootNTupleCnv.h:145
INTuple
NTuple interface class definition.
Definition: INTuple.h:79
Gaudi::RootNTupleCnv::updateRep
StatusCode updateRep(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
Definition: RootNTupleCnv.h:133
StatusCode::SUCCESS
Definition: StatusCode.h:30
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Gaudi::RootNTupleCnv
NTuple converter class definition for NTuples writted/read using ROOT.
Definition: RootNTupleCnv.h:34
Gaudi::RootNTupleCnv::RootNTupleCnv
RootNTupleCnv(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Standard constructor.
Definition: RootNTupleCnv.h:54
Gaudi::RootNTupleCnv::fillObjRefs
StatusCode fillObjRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the references of an updated transient object.
Definition: RootNTupleCnv.h:99
RootStatCnv.h
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
Gaudi::RootStatCnv
Description: Base class converter for N-tuples and related classes.
Definition: RootStatCnv.h:30
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
Gaudi::RootDataConnection
Concrete implementation of the IDataConnection interface to access ROOT files.
Definition: RootDataConnection.h:92
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
Gaudi::RootNTupleCnv::updateObjRefs
StatusCode updateObjRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the references of an updated transient object.
Definition: RootNTupleCnv.h:121