00001 // $Id: TGo4TreeSource.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 TGO4TREESOURCE_H 00015 #define TGO4TREESOURCE_H 00016 00017 #include "TGo4EventSource.h" 00018 00019 class TGo4TreeSourceParameter; 00020 class TGo4MainTree; 00021 class TGo4EventElement; 00022 class TBranch; 00023 class TTree; 00024 00032 class TGo4TreeSource : public TGo4EventSource { 00033 public: 00034 TGo4TreeSource(); 00035 00036 TGo4TreeSource(const char* name); 00037 00038 virtual ~TGo4TreeSource(); 00039 00040 TGo4TreeSource(TGo4TreeSourceParameter* par); 00041 00045 Bool_t BuildEvent(TGo4EventElement* dest); 00046 00047 private: 00048 00052 TGo4MainTree* fxSingletonTree; 00053 00055 TTree * fxTree; 00056 00058 TBranch * fxBranch; 00059 00060 Int_t Open(); 00061 00062 ClassDef(TGo4TreeSource,1) 00063 }; 00064 00065 #endif //TGO4TREESOURCE_H