00001 #ifndef HltInfCnv_H 00002 #define HltInfCnv_H 1 00003 00004 #include "RootCnvSvc/RootEventBaseCnv.h" 00005 #include "RootEventData/THltInf.h" 00006 #include "RootCnvSvc/commonData.h" 00007 00008 class RootAddress; 00009 00010 extern const CLID& CLID_HltInf; 00011 00012 // Abstract factory to create the converter 00013 template <class TYPE> class CnvFactory; 00014 00020 class HltInfCnv : public RootEventBaseCnv { 00021 00022 friend class CnvFactory<HltInfCnv>; 00023 00024 public: 00025 static const CLID& classID() 00026 { 00027 return CLID_HltInf; 00028 } 00029 00030 virtual ~HltInfCnv() { }; 00031 00032 protected: 00033 HltInfCnv(ISvcLocator* svc); 00034 00036 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr); 00037 00039 virtual StatusCode TObjectToDataObject(DataObject*& obj); 00040 00041 private: 00042 00044 THltInf *m_hltInf; 00045 00047 bool m_old; 00048 }; 00049 00050 #endif // MdcMcCnv_H