00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 "TGo4EventStore.h" 00020 00021 class TFile; 00022 class TTree; 00023 class TBranch; 00024 class TGo4MainTree; 00025 class TGo4EventElement; 00026 class TGo4Parameter; 00027 class TGo4EventCalibration; 00028 class TGo4TreeStoreParameter; 00029 00041 class TGo4TreeStore : public TGo4EventStore { 00042 public: 00043 00044 TGo4TreeStore(const char* name, 00045 TGo4EventElement* event, 00046 Int_t splitlevel=1, 00047 Int_t bufsize=64000, 00048 Text_t* filename=0, 00049 Int_t compression=5); 00050 00051 TGo4TreeStore(); 00052 00053 TGo4TreeStore(TGo4TreeStoreParameter* par, TGo4EventElement* event); 00054 00055 virtual ~TGo4TreeStore(); 00056 00059 virtual Int_t Store(TGo4EventElement* event); 00060 00062 void SetCompression(Int_t comp); 00063 00066 virtual Int_t Store(TGo4Parameter* cali); 00067 00069 static const Text_t fgcFILESUF[]; 00070 00071 private: 00072 00075 TFile* fxFile; 00076 00080 TGo4MainTree* fxSingletonTree; 00081 00083 TTree * fxTree; 00084 00086 TBranch * fxBranch; 00087 00089 TGo4EventElement * fxEvent; 00090 00092 TGo4EventCalibration * fxCalibration; 00093 00095 Text_t fcEventClass[256]; 00096 00098 Int_t fiSplit; 00099 00101 Int_t fiBufsize; 00102 00103 ClassDef(TGo4TreeStore,1) 00104 }; 00105 00106 #endif //TGO4TREESTORE_H 00107 00108 //----------------------------END OF GO4 SOURCE FILE ---------------------