00001 // $Id: TGo4BackStore.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4BACKSTORE_H 00015 #define TGO4BACKSTORE_H 00016 00017 #include "TGo4EventStore.h" 00018 00019 class TTree; 00020 class TGo4EventElement; 00021 class TGo4BackStoreParameter; 00022 00030 class TGo4BackStore : public TGo4EventStore { 00031 00032 public: 00033 00034 TGo4BackStore(); 00035 00036 TGo4BackStore(TGo4BackStoreParameter* par); 00037 00038 virtual ~TGo4BackStore(); 00039 00041 virtual Int_t Store(TGo4EventElement* event); 00042 00044 virtual Int_t Store(TGo4Parameter* cali); 00045 00047 virtual Int_t Store(TGo4Condition* conny); 00048 00050 virtual Int_t Store(TGo4Fitter* fitter); 00051 00053 virtual Int_t Store(TFolder* fold); 00054 00056 virtual TTree* GetTree() { return fxTree; } 00057 00061 void Reset(Bool_t onlyclearflag=kFALSE); 00062 00065 static const char* fgcEVBRANCHNAME; 00066 00068 static const char* fgcTREESUF; 00069 00072 static const Int_t fgiMAXAUTOBYTES; 00073 00074 private: 00075 00076 TTree * fxTree; 00077 00080 Bool_t fbBranchExists; 00081 00083 TGo4EventElement * fxEvent; 00084 00086 Int_t fiSplit; 00087 00089 Int_t fiBufsize; 00090 00092 Int_t fiFillCount; 00093 00094 ClassDef(TGo4BackStore,1) 00095 }; 00096 00097 #endif //TGO4BACKSTORE_H