CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-04-01-15/RootCnvSvc/EvtRec/EvtRecCnv.h
Go to the documentation of this file.
1#ifndef EvtRecCnv_H
2#define EvtRecCnv_H
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5#include "RootCnvSvc/commonData.h"
6#include "RootEventData/TEvtRecObject.h"
7
8class RootAddress;
9
10extern const CLID& CLID_EvtRecObject;
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
15class EvtRecCnv : public RootEventBaseCnv {
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
const CLID & CLID_EvtRecObject
! Global link and reconstruction
Definition: EventModel.cxx:444
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
virtual StatusCode initialize()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
EvtRecCnv(ISvcLocator *svc)
Definition of a Root address, derived from IOpaqueAddress.