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

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

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