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 TGO4BACKSTORE_H 00017 #define TGO4BACKSTORE_H 00018 00019 #include "TFile.h" 00020 #include "TTree.h" 00021 00022 #include "Go4StatusBase/TGo4Status.h" 00023 #include "Go4Event/TGo4EventStore.h" 00024 #include "Go4EventServer/TGo4BackStoreParameter.h" 00025 00026 00027 class TGo4Parameter; 00028 00029 class TGo4EventElement; 00030 00038 class TGo4BackStore : public TGo4EventStore { 00039 00040 public: 00041 00042 TGo4BackStore(); 00043 00044 TGo4BackStore(TGo4BackStoreParameter* par); 00045 00046 virtual ~TGo4BackStore(); 00047 00049 virtual Int_t Store(TGo4EventElement* event); 00050 00052 virtual Int_t Store(TGo4Parameter* cali); 00053 00055 virtual Int_t Store(TGo4Condition* conny); 00056 00058 virtual Int_t Store(TGo4Fitter* fitter); 00059 00061 virtual Int_t Store(TFolder* fold); 00062 00065 static const Text_t fgcEVBRANCHNAME[]; 00066 00068 static const Text_t fgcTREESUF[]; 00069 00072 static const Int_t fgiMAXAUTOBYTES; 00073 00075 TTree* GetTree() { return fxTree; } 00076 00078 void Reset() { if(fxTree){ 00079 fxTree->Reset(); 00080 fxTree->SetBit(TGo4Status::kGo4BackStoreReset); 00081 } 00082 } 00083 private: 00084 00085 TTree * fxTree; 00086 00089 Bool_t fbBranchExists; 00090 00092 TGo4EventElement * fxEvent; 00093 00095 Int_t fiSplit; 00096 00098 Int_t fiBufsize; 00099 00101 Int_t fiFillCount; 00102 00103 ClassDef(TGo4BackStore,1) 00104 }; 00105 00106 #endif //TGO4BACKSTORE_H 00107 00108 //----------------------------END OF GO4 SOURCE FILE ---------------------