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