CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TFileService.h
Go to the documentation of this file.
1 #ifndef FWLite_TFileService_h
2 #define FWLite_TFileService_h
3 /* \class fwlite::TFileService
4  *
5  * \author Benedikt Hegner, CERN
6  *
7  */
9 
10 namespace fwlite {
11 
12 class TFileService : public TFileDirectory {
13  public:
16 
18  TFileService(TFile * aFile);
19 
21  ~TFileService();
22 
24  TFile & file() const { return * file_; }
25 
26  private:
28  TFile * file_;
30 
31 };
32 
33 }
34 #endif
TFile & file() const
return opened TFile
Definition: TFileService.h:24
~TFileService()
destructor
Definition: TFileService.cc:22
TFile * file_
pointer to opened TFile
Definition: TFileService.h:28
TFileService(const std::string &fileName)
constructor
Definition: TFileService.cc:7
std::string fileName_
Definition: TFileService.h:29