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 TGO4FITDATAGRAPH_H 00017 #define TGO4FITDATAGRAPH_H 00018 #include "TGraph.h" 00019 #include "TArrayI.h" 00020 #include "TGo4FitSlot.h" 00021 #include "TGo4FitData.h" 00022 00031 class TGo4FitDataGraph : public TGo4FitData { 00032 public: 00033 00037 TGo4FitDataGraph(); 00038 00044 TGo4FitDataGraph(const char* iName, TGraph* = 0, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE); 00045 00049 virtual ~TGo4FitDataGraph(); 00050 00054 TGraph* GetGraph() { return (TGraph*) fxGraph.GetObject(); } 00055 00060 void SetGraph(TGraph *iGraph, Bool_t iGraphOwned = kFALSE) { fxGraph.SetObject(iGraph,iGraphOwned); } 00061 00065 TGo4FitDataIter* MakeIter(); 00066 00070 virtual void FillSlotList(TSeqCollection* list); 00071 00075 virtual void Print(Option_t* option) const; 00076 00077 protected: 00078 00083 TGo4FitSlot fxGraph; 00084 00085 ClassDef(TGo4FitDataGraph,1) 00086 }; 00087 00088 // ************************************************************************** 00089 00090 class TGo4FitDataGraphIter : public TGo4FitDataIter { 00091 public: 00092 TGo4FitDataGraphIter(); 00093 TGo4FitDataGraphIter(TGo4FitDataGraph* Data); 00094 ~TGo4FitDataGraphIter(); 00095 00096 protected: 00097 virtual TGo4FitData* GetData() const { return fxData; } 00098 virtual Bool_t StartReset(); 00099 virtual Bool_t ReadCurrentPoint(); 00100 virtual Bool_t ShiftToNextPoint(); 00101 00102 private: 00103 TGo4FitDataGraph* fxData; 00104 Int_t fiNumPoints; 00105 00106 ClassDef(TGo4FitDataGraphIter,1) 00107 }; 00108 00109 #endif // TGO4FITDATAGRAPH_H 00110 00111 //----------------------------END OF GO4 SOURCE FILE ---------------------