BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-03-00-06/RootCnvSvc/Rec/RecTrackCnv.h
Go to the documentation of this file.
1#ifndef RecTrackCnv_H
2#define RecTrackCnv_H 1
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5
6#include "RootEventData/TRecTrackEvent.h"
7
8#include "RootCnvSvc/commonData.h"
9
10extern const CLID& CLID_ReconEvent; //CLID_ReconEvent 3000 liangyt -->6000//?
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
15/** @class DstCnv
16 * @brief Concrete converter for the Dst branch
17 *
18 * Based on the DstCnv of GLAST.
19 */
20
22
23 friend class CnvFactory<RecTrackCnv>;
24
25public:
26 static const CLID& classID()
27 {
28 return CLID_ReconEvent;
29 }
30
31 virtual ~RecTrackCnv() { };
32
33 virtual StatusCode initialize();
34
35 /// returns object to be written (maintained here for all DIGI-converters)
36 static TRecTrackEvent* getWriteObject() { return m_objWrite;}
37
38 protected:
39 RecTrackCnv(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 TRecTrackEvent* m_objWrite;
50 //TDstEvent* m_objWrite; //use TDstEvent temp
51
52 /// Run number
53 Int_t m_runId;
54 /// Event Number
55 Int_t m_eventId;
56
57
58 commonData m_common;
59};
60
61#endif // RecTrackCnv_H
const CLID & CLID_ReconEvent
Reconstruction.
Definition: EventModel.cxx:293
const CLID & CLID_ReconEvent
Reconstruction.
Definition: EventModel.cxx:293
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
Definition: RecTrackCnv.cxx:60
static TRecTrackEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
virtual StatusCode initialize()
Definition: RecTrackCnv.cxx:47
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
Definition: RecTrackCnv.cxx:83
Definition of a Root address, derived from IOpaqueAddress.