00001 #ifndef TofDigiCnv_H 00002 #define TofDigiCnv_H 1 00003 00004 #include "RootCnvSvc/RootEventBaseCnv.h" 00005 #include "RootCnvSvc/commonData.h" 00006 00007 class RootAddress; 00008 00009 extern const CLID& CLID_TofDigiCol; 00010 00011 // Abstract factory to create the converter 00012 template <class TYPE> class CnvFactory; 00013 00014 00015 class TofDigiCnv : public RootEventBaseCnv { 00016 00017 friend class CnvFactory<TofDigiCnv>; 00018 00019 public: 00020 static const CLID& classID() 00021 { 00022 return CLID_TofDigiCol; 00023 } 00024 00025 virtual ~TofDigiCnv() { }; 00026 00027 protected: 00028 TofDigiCnv(ISvcLocator* svc); 00029 00031 virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr); 00032 00034 virtual StatusCode TObjectToDataObject(DataObject*& obj); 00035 00036 private: 00038 commonData m_common; 00039 00041 TObjArray *m_tofDigiCol; 00042 }; 00043 00044 00045 00046 #endif // TofDigiCnv_H 00047 00048 00049 00050 00051 00052 00053 00054 00055