/[PAMELA software]/PamCAL/include/PamRootManager.h
ViewVC logotype

Contents of /PamCAL/include/PamRootManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 12 10:10:18 2007 UTC (17 years ago) by nikolas
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
More basic files added

1 #ifndef PAM_ROOT_MANAGER_H
2 #define PAM_ROOT_MANAGER_H
3
4 #include <TObject.h>
5 #include <TTree.h>
6 #include <TFile.h>
7
8 class TParticle;
9
10 enum FileMode { kRead, kWrite};
11
12 class PamRootManager : public TObject
13 {
14 public:
15 PamRootManager(const char* projectName, FileMode fileMode);
16 PamRootManager();
17 virtual ~PamRootManager();
18
19 // static access method
20 static PamRootManager* Instance();
21
22 // methods
23 void Register(const char* name, const char* className, void* objAddress);
24 void Fill();
25 void WriteAll();
26 void ReadEvent(Int_t i);
27
28 private:
29 // data members
30 static PamRootManager* fgInstance; //Singleton instance
31
32 // data members
33 TFile* fFile;
34 TTree* fTree;
35
36 ClassDef(PamRootManager,0) // Root IO manager
37 };
38
39 #endif //PAM_ROOT_MANAGER_H
40
41

  ViewVC Help
Powered by ViewVC 1.1.23