BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EventCnv.h
Go to the documentation of this file.
1#ifndef EventCnv_H
2#define EventCnv_H 1
3
6#include "TObject.h"
8
9namespace Event{ class EventHeader; }
10extern const CLID& CLID_Event;
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
15
16/** @class EventCnv
17 * @brief Concrete converter for the Event header stored in the TDS /Event
18 * Based on the EventCnv of GLAST.
19 */
20
21class EventCnv : public RootEventBaseCnv {
22
23 friend class CnvFactory<EventCnv>;
24
25public:
26 static const CLID& classID()
27 {
28 return CLID_Event;
29 }
30
31 virtual ~EventCnv() { };
32
33protected:
34
35 EventCnv(ISvcLocator* svc);
36
37
38 /// do the concrete transformation from TDS to ROOT
39 StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr) {return StatusCode::SUCCESS;}
40 /// transform from TDS to ROOT
41 StatusCode createRep(DataObject* obj, RootAddress* addr);
42
43 /// transform from ROOT to TDS
44 StatusCode createObj(IOpaqueAddress *addr,DataObject*& refpObject);
45
46 /// do the concrete transformation from ROOT to TDS
47 virtual StatusCode TObjectToDataObject(DataObject*& dat) {return StatusCode::SUCCESS;}
48
50 };
51
52
53
54#endif // EventCnv_H
55
const CLID & CLID_Event
Concrete converter for the Event header stored in the TDS /Event Based on the EventCnv of GLAST.
Definition EventCnv.h:21
EventCnv(ISvcLocator *svc)
Definition EventCnv.cxx:24
StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
do the concrete transformation from TDS to ROOT
Definition EventCnv.h:39
virtual StatusCode TObjectToDataObject(DataObject *&dat)
do the concrete transformation from ROOT to TDS
Definition EventCnv.h:47
virtual ~EventCnv()
Definition EventCnv.h:31
static const CLID & classID()
Definition EventCnv.h:26
StatusCode createRep(DataObject *obj, RootAddress *addr)
transform from TDS to ROOT
Definition EventCnv.cxx:49
StatusCode createObj(IOpaqueAddress *addr, DataObject *&refpObject)
transform from ROOT to TDS
Definition EventCnv.cxx:35
commonData m_common
Definition EventCnv.h:49
Definition of a Root address, derived from IOpaqueAddress.
Definition RootAddress.h:21
Base class for all Root Converters.
Definition Event.h:21