| The Gaudi Framework v29r0 (ff2e7097)

- 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/RootAddress.h"
13 #include "RootCnv/RootStatCnv.h"
14
15 // Forward declarations
16 class INTuple;
17 class TBranch;
18
19 /*
20 * Gaudi namespace declaration
21 */
22 namespace Gaudi
23 {
24
36 class GAUDI_API RootNTupleCnv : public RootStatCnv
37 {
38 protected:
40 StatusCode i__updateObjRoot( RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con );
41
42 #ifdef __POOL_COMPATIBILITY
43 StatusCode i__updateObjPool( RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con );
45 #endif
46
47 public:
49
56 RootNTupleCnv( long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr ) : RootStatCnv( typ, clid, svc, mgr )
57 {
58 }
59
61 ~RootNTupleCnv() override = default;
62
72 StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAdd ) override;
73
75
81 StatusCode fillRepRefs( IOpaqueAddress* pAdd, DataObject* pObj ) override;
82
91 StatusCode createObj( IOpaqueAddress* pAddress, DataObject*& refpObject ) override;
92
101 StatusCode fillObjRefs( IOpaqueAddress* /* pAddress */, DataObject* /* pObject */ ) override
102 {
103 return StatusCode::SUCCESS;
104 }
105
113 StatusCode updateObj( IOpaqueAddress* pAddress, DataObject* pObject ) override;
114
123 StatusCode updateObjRefs( IOpaqueAddress* /* pAddress */, DataObject* /* pObject */ ) override
124 {
125 return StatusCode::SUCCESS;
126 }
127
136 StatusCode updateRep( IOpaqueAddress* /* pAddress */, DataObject* /* pObject */ ) override
137 {
138 return StatusCode::SUCCESS;
139 }
140
149 StatusCode updateRepRefs( IOpaqueAddress* /* pAddress */, DataObject* /* pObject */ ) override
150 {
151 return StatusCode::SUCCESS;
152 }
153 };
154 }
155
156 #endif // GAUDIROOTCNV_ROOTNTUPLECNV_H
StatusCode::SUCCESS
Definition: StatusCode.h:31
Gaudi::RootAddress
Description:
Definition: RootAddress.h:37
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:53
Gaudi::RootNTupleCnv::updateRepRefs
StatusCode updateRepRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
Definition: RootNTupleCnv.h:149
INTuple
NTuple interface class definition.
Definition: INTuple.h:82
Gaudi::RootNTupleCnv::updateRep
StatusCode updateRep(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
Definition: RootNTupleCnv.h:136
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
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:36
Gaudi::RootNTupleCnv::RootNTupleCnv
RootNTupleCnv(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Standard constructor.
Definition: RootNTupleCnv.h:56
Gaudi::RootNTupleCnv::fillObjRefs
StatusCode fillObjRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the references of an updated transient object.
Definition: RootNTupleCnv.h:101
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:31
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29
Gaudi::RootDataConnection
Concrete implementation of the IDataConnection interface to access ROOT files.
Definition: RootDataConnection.h:94
RootAddress.h
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:123