BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-02-01-12/RootCnvSvc/Dst/DstCnv.h
Go to the documentation of this file.
1#ifndef DstCnv_H
2#define DstCnv_H 1
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5
6#include "RootEventData/TDstEvent.h"
7#include "RootCnvSvc/commonData.h"
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:250
const CLID & CLID_DstEvent
Definition: EventModel.cxx:250
Concrete converter for the Dst branch.
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 TDstEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
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.