Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4FitDataGraph.h

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

Generated on Fri Nov 28 12:59:12 2008 for Go4-v3.04-1 by  doxygen 1.4.2