Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

PersSvc.h

Go to the documentation of this file.
00001 #ifndef ROOTHISTCNV_PERSSVC_H
00002 #define ROOTHISTCNV_PERSSVC_H 1
00003 
00004 
00005 // Include files
00006 #include "GaudiKernel/ConversionSvc.h"
00007 
00008 // Forward declarations
00009 template <class TYPE> class SvcFactory;
00010 class TFile;
00011 
00012 
00013 //------------------------------------------------------------------------------
00014 //
00015 // ClassName:   RootHistCnv::PersSvc
00016 //  
00017 // Description: Persistency service - to store histograms in ROOT format
00018 //
00019 // Author:      Charles Leggett
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 }    // namespace RootHistCnv
00055 
00056 
00057 #endif    // ROOTHISTCNV_PERSSVC_H

Generated at Wed Nov 21 12:20:49 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000