00001 #ifndef ROOTHISTCNV_PERSSVC_H
00002 #define ROOTHISTCNV_PERSSVC_H 1
00003
00004
00005
00006 #include "GaudiKernel/ConversionSvc.h"
00007
00008
00009 template <class TYPE> class SvcFactory;
00010 class TFile;
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 namespace RootHistCnv {
00025
00026 class PersSvc : public ConversionSvc {
00027
00028 friend class SvcFactory<PersSvc>;
00029
00030 public:
00032 virtual StatusCode initialize();
00033
00035 virtual StatusCode finalize();
00036
00038 virtual StatusCode createReps(IDataSelector* pSelector);
00039
00040 protected:
00042 PersSvc( const std::string& name, ISvcLocator* svc );
00043
00045 virtual ~PersSvc();
00046
00047 private:
00048 std::string m_defFileName;
00049
00050 TFile *hfile;
00051
00052 };
00053
00054 }
00055
00056
00057 #endif // ROOTHISTCNV_PERSSVC_H