CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
DstCnv.h
Go to the documentation of this file.
1#ifndef DstCnv_H
2#define DstCnv_H 1
3
5
8
9extern const CLID& CLID_DstEvent;
10
11// Abstract factory to create the converter
12template <class TYPE> class CnvFactory;
13
14/** @class DstCnv
15 * @brief Concrete converter for the Dst branch
16 *
17 * Based on the DstCnv of GLAST.
18 */
19
20class DstCnv : public RootEventBaseCnv {
21
22 friend class CnvFactory<DstCnv>;
23
24public:
25 static const CLID& classID()
26 {
27 return CLID_DstEvent;
28 }
29
30 virtual ~DstCnv() { };
31
32
33 virtual StatusCode initialize();
34
35 /// returns object to be written (maintained here for all DIGI-converters)
36 static TDstEvent* getWriteObject() { return m_objWrite;}
37
38 protected:
39 DstCnv(ISvcLocator* svc);
40
41 /// transformation from TDS object to ROOT
42 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr);
43
44 /// do the transformation from ROOT to TDS object
45 virtual StatusCode TObjectToDataObject(DataObject*& refpObject);
46
47private:
48 /// Root object to be written
49 static TDstEvent* m_objWrite;
50
51 /// Run number
52 Int_t m_runId;
53 /// Event Number
54 Int_t m_eventId;
55
56 commonData m_common;
57};
58
59#endif // DstCnv_H
const CLID & CLID_DstEvent
Definition: EventModel.cxx:281
Concrete converter for the Dst branch.
Definition: DstCnv.h:20
virtual StatusCode initialize()
Definition: DstCnv.cxx:63
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
Definition: DstCnv.cxx:76
static const CLID & classID()
Definition: DstCnv.h:25
virtual ~DstCnv()
Definition: DstCnv.h:30
static TDstEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
Definition: DstCnv.h:36
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
Definition: DstCnv.cxx:40
Definition of a Root address, derived from IOpaqueAddress.
Definition: RootAddress.h:21
Base class for all Root Converters.