BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-02-01-11/RootCnvSvc/EventCnv.h
Go to the documentation of this file.
1#ifndef EventCnv_H
2#define EventCnv_H 1
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5#include "EventModel/EventModel.h"
6#include "TObject.h"
7#include "RootCnvSvc/commonData.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
Definition: EventModel.cxx:193
const CLID & CLID_Event
Definition: EventModel.cxx:193
Concrete converter for the Event header stored in the TDS /Event Based on the EventCnv of GLAST.
StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
do the concrete transformation from TDS to ROOT
virtual StatusCode TObjectToDataObject(DataObject *&dat)
do the concrete transformation from ROOT to TDS
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
Definition of a Root address, derived from IOpaqueAddress.