CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-04-01-15/RootCnvSvc/Digi/CgemDigiCnv.h
Go to the documentation of this file.
1#ifndef CgemDigiCnv_H
2#define CgemDigiCnv_H 1
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5#include "RootCnvSvc/commonData.h"
6
7class RootAddress;
8
9extern const CLID& CLID_CgemDigiCol;
10
11// Abstract factory to create the converter
12template <class TYPE> class CnvFactory;
13
14/** @class CgemDigiCnv
15 * @brief Concrete converter for the CgemDigi collection
16 *
17 */
18
19class CgemDigiCnv : public RootEventBaseCnv {
20
21 friend class CnvFactory<CgemDigiCnv>;
22
23public:
24 static const CLID& classID()
25 {
26 return CLID_CgemDigiCol;
27 }
28
29 virtual ~CgemDigiCnv() { };
30
31protected:
32 CgemDigiCnv(ISvcLocator* svc);
33
34 /// transformation to root
35 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr);
36
37 /// transformation from root
38 virtual StatusCode TObjectToDataObject(DataObject*& obj);
39
40private:
41 /// relational maps
42 commonData m_common;
43
44 /// root object to be read
45 TObjArray *m_cgemDigiCol;
46};
47
48#endif // CgemDigiCnv_H
const CLID & CLID_CgemDigiCol
Definition: EventModel.cxx:278
const CLID & CLID_CgemDigiCol
Definition: EventModel.cxx:278
Concrete converter for the CgemDigi collection.
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
CgemDigiCnv(ISvcLocator *svc)
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
Definition of a Root address, derived from IOpaqueAddress.