#ifndef _VROOTFile_h_ #define _VROOTFile_h_ #include #include class TFile; class TTree; namespace io { const int kDefaultCompressionLevel = 7; /** Base class for EventFiles that are implemented using a TFile and a TTree \author Stefano Argiro' \date 1 April 2003 \version $Id$ \ingroup offline_io */ class VROOTFile : public VEventFile { public: VROOTFile(); VROOTFile(const std::string& filename, const Mode mode = eRead); virtual ~VROOTFile(); virtual void Open(const std::string& filename, const Mode mode = eRead); virtual void Close(); static std::string GetRootMode(const Mode mode); protected: int OpenROOTFile(); int GetTree(const std::string& name); TFile* fFile; TTree* fTree; }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: