00001 #ifndef EvtRecEventCnv_H 00002 #define EvtRecEventCnv_H 00003 00004 #include "RootCnvSvc/RootEventBaseCnv.h" 00005 #include "RootCnvSvc/commonData.h" 00006 #include "RootEventData/TEvtRecEvent.h" 00007 00008 class RootAddress; 00009 00010 extern const CLID& CLID_EvtRecEvent; 00011 00012 // Abstract factory to create the converter 00013 template <class TYPE> class CnvFactory; 00014 00015 class EvtRecEventCnv : public RootEventBaseCnv { 00016 00017 friend class CnvFactory<EvtRecEventCnv>; 00018 00019 public: 00020 static const CLID& classID() { return CLID_EvtRecEvent; } 00021 00022 virtual ~EvtRecEventCnv() {} 00023 00024 protected: 00025 EvtRecEventCnv(ISvcLocator* svc); 00026 00028 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr); 00029 00031 virtual StatusCode TObjectToDataObject(DataObject*& obj); 00032 00033 private: 00035 commonData m_common; 00036 00037 TEvtRecEvent* m_evtRecEvent; 00038 }; 00039 00040 #endif