BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-02-01-12/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
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:371
const CLID & CLID_EvtRecObject
! Global link and reconstruction
Definition: EventModel.cxx:371
virtual StatusCode initialize()
Definition: EvtRecCnv.cxx:18
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
Definition of a Root address, derived from IOpaqueAddress.