The Gaudi Framework  v28r3 (cc1cf868)
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 #include "RootCnv/RootAddress.h"
14 
15 // Forward declarations
16 class INTuple;
17 class TBranch;
18 
19 /*
20  * Gaudi namespace declaration
21  */
22 namespace Gaudi {
23 
36  protected:
37 
39  StatusCode i__updateObjRoot(RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con);
40 
41 #ifdef __POOL_COMPATIBILITY
42  StatusCode i__updateObjPool(RootAddress* rpA, INTuple* tupl, TTree* tree, RootDataConnection* con);
44 #endif
45 
46  public:
48 
55  RootNTupleCnv(long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr)
56  : RootStatCnv(typ, clid, svc, mgr) {}
57 
59  ~RootNTupleCnv() override = default;
60 
70  StatusCode createRep( DataObject* pObj,IOpaqueAddress*& refpAdd) override;
71 
73 
79  StatusCode fillRepRefs( IOpaqueAddress* pAdd,DataObject* pObj) override;
80 
89  StatusCode createObj( IOpaqueAddress* pAddress,
90  DataObject*& refpObject) override;
91 
101  DataObject* /* pObject */) override
102  { return StatusCode::SUCCESS; }
103 
111  StatusCode updateObj( IOpaqueAddress* pAddress,
112  DataObject* pObject) override;
113 
123  DataObject* /* pObject */ ) override
124  { return StatusCode::SUCCESS; }
125 
135  DataObject* /* pObject */) override
136  { return StatusCode::SUCCESS; }
137 
147  DataObject* /* pObject */ ) override
148  { return StatusCode::SUCCESS; }
149  };
150 }
151 
152 #endif // GAUDIROOTCNV_ROOTNTUPLECNV_H
Description:
Definition: RootAddress.h:36
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Description:
Definition: RootCnvSvc.h:53
StatusCode updateRepRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
NTuple interface class definition.
Definition: INTuple.h:80
StatusCode updateRep(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the converted representation of a transient object.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
NTuple converter class definition for NTuples writted/read using ROOT.
Definition: RootNTupleCnv.h:35
RootNTupleCnv(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Standard constructor.
Definition: RootNTupleCnv.h:55
StatusCode fillObjRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the references of an updated transient object.
Opaque address interface definition.
Description: Base class converter for N-tuples and related classes.
Definition: RootStatCnv.h:30
#define GAUDI_API
Definition: Kernel.h:107
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
Concrete implementation of the IDataConnection interface to access ROOT files.
Helper functions to set/get the application return code.
Definition: __init__.py:1
StatusCode updateObjRefs(IOpaqueAddress *, DataObject *) override
Converter overrides: Update the references of an updated transient object.