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 TGO4FILESOURCE_H 00017 #define TGO4FILESOURCE_H 00018 00019 #include "TGo4EventSource.h" 00020 00021 #include "TString.h" 00022 00023 class TFile; 00024 class TTree; 00025 class TGo4FileSourceParameter; 00026 class TGo4EventElement; 00027 class TGo4CompositeEvent; 00028 00038 class TGo4FileSource : public TGo4EventSource { 00039 00040 public: 00041 00042 TGo4FileSource(); 00043 00044 TGo4FileSource(TGo4FileSourceParameter* par); 00045 00046 TGo4FileSource(const char* name); 00047 00048 virtual ~TGo4FileSource(); 00049 00053 Bool_t BuildEvent(TGo4EventElement* dest); 00054 00057 Bool_t BuildCompositeEvent(TGo4CompositeEvent *dest); 00058 00059 private: 00060 00061 TFile* fxFile; 00062 00063 TTree * fxTree; 00064 00067 Int_t fiMaxEvents; 00068 00071 Int_t fiCurrentEvent; 00072 00074 TString fxBranchName; 00075 00077 Bool_t fbActivated; 00078 00080 TObject* fxTopEvent; 00081 00083 Int_t Open(); 00084 00085 ClassDef(TGo4FileSource,1) 00086 }; 00087 00088 #endif //TGO4FILESOURCE_H 00089 00090 //----------------------------END OF GO4 SOURCE FILE ---------------------