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

/Go4EventServer/TGo4TreeStore.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4TREESTORE_H
00017 #define TGO4TREESTORE_H
00018 
00019 #include "Go4Event/TGo4EventStore.h"
00020 
00021 #include "TFile.h"
00022 #include "TTree.h"
00023 
00024 #include "Go4EventServer/TGo4TreeStoreParameter.h"
00025 #include "Go4EventServer/TGo4MainTree.h"
00026 
00027 class TGo4Parameter;
00028 class TGo4EventCalibration;
00029 class TBranch;
00030 class TGo4EventElement;
00031 
00043 class TGo4TreeStore : public TGo4EventStore {
00044   public:
00045 
00046     TGo4TreeStore(const char* name,
00047                   TGo4EventElement* event,
00048                   Int_t splitlevel=1,
00049                   Int_t bufsize=64000,
00050                   Text_t* filename=0,
00051                   Int_t compression=5);
00052 
00053     TGo4TreeStore();
00054 
00055     TGo4TreeStore(TGo4TreeStoreParameter* par, TGo4EventElement* event);
00056 
00057     virtual ~TGo4TreeStore();
00058 
00061     virtual Int_t Store(TGo4EventElement* event);
00062 
00064     void SetCompression(Int_t comp);
00065 
00068     virtual Int_t Store(TGo4Parameter* cali);
00069 
00071     static const Text_t fgcFILESUF[]; 
00072 
00073   private:
00074 
00077     TFile* fxFile; 
00078 
00082     TGo4MainTree* fxSingletonTree; 
00083 
00085     TTree * fxTree; 
00086 
00088     TBranch * fxBranch; 
00089 
00091     TGo4EventElement * fxEvent; 
00092 
00094     TGo4EventCalibration * fxCalibration; 
00095 
00097     Text_t fcEventClass[256]; 
00098 
00100     Int_t fiSplit;
00101 
00103     Int_t fiBufsize;
00104    
00105   ClassDef(TGo4TreeStore,1)
00106 };
00107 
00108 #endif //TGO4TREESTORE_H
00109 
00110 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:54 2005 for Go4-v2.10-5 by doxygen1.2.15