CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRecCnv.h
Go to the documentation of this file.
1#ifndef EvtRecCnv_H
2#define EvtRecCnv_H
3
7
8class RootAddress;
9
10extern const CLID& CLID_EvtRecObject;
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
16
17 friend class CnvFactory<EvtRecCnv>;
18
19public:
20 static const CLID& classID() { return CLID_EvtRecObject; }
21
22 virtual ~EvtRecCnv() {}
23
24 virtual StatusCode initialize();
25
26 static TEvtRecObject* getWriteObject() { return m_objWrite; }
27
28protected:
29 EvtRecCnv(ISvcLocator* svc);
30
31 /// transformation to root
32 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr);
33
34 /// transformation from root
35 virtual StatusCode TObjectToDataObject(DataObject*& obj);
36
37private:
38
39 /// relational maps
40 commonData m_common;
41
42 static TEvtRecObject* m_objWrite;
43};
44
45#endif
const CLID & CLID_EvtRecObject
! Global link and reconstruction
Definition: EventModel.cxx:444
virtual StatusCode initialize()
Definition: EvtRecCnv.cxx:18
static TEvtRecObject * getWriteObject()
Definition: EvtRecCnv.h:26
static const CLID & classID()
Definition: EvtRecCnv.h:20
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
Definition: EvtRecCnv.cxx:37
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
Definition: EvtRecCnv.cxx:26
virtual ~EvtRecCnv()
Definition: EvtRecCnv.h:22
Definition of a Root address, derived from IOpaqueAddress.
Definition: RootAddress.h:21
Base class for all Root Converters.