BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrigDataCnv.h
Go to the documentation of this file.
1#ifndef TrigDataCnv_H
2#define TrigDataCnv_H 1
3
7
8class RootAddress;
9
10extern const CLID& CLID_TrigData;
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
15/** @class TrigDataCnv
16 * @brief Concrete converter for the TrigData
17 *
18 */
19
21
22 friend class CnvFactory<TrigDataCnv>;
23
24public:
25 static const CLID& classID()
26 {
27 return CLID_TrigData;
28 }
29
30 virtual ~TrigDataCnv() { };
31
32protected:
33 TrigDataCnv(ISvcLocator* svc);
34
35 /// transformation to root
36 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr);
37
38 /// transformation from root
39 virtual StatusCode TObjectToDataObject(DataObject*& obj);
40
41private:
42
43 /// root object to be read
44 TTrigData *m_trigData;
45};
46
47#endif // MdcMcCnv_H
const CLID & CLID_TrigData
Definition: EventModel.cxx:280
Definition of a Root address, derived from IOpaqueAddress.
Definition: RootAddress.h:21
Base class for all Root Converters.
Concrete converter for the TrigData.
Definition: TrigDataCnv.h:20
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
Definition: TrigDataCnv.cxx:67
static const CLID & classID()
Definition: TrigDataCnv.h:25
virtual ~TrigDataCnv()
Definition: TrigDataCnv.h:30
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
Definition: TrigDataCnv.cxx:34