TGo4FitDataGraph.h

Go to the documentation of this file.
00001 // $Id: TGo4FitDataGraph.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 TGO4FITDATAGRAPH_H
00015 #define TGO4FITDATAGRAPH_H
00016 
00017 #include "TGo4FitData.h"
00018 #include "TGo4FitSlot.h"
00019 
00020 class TGraph;
00021 
00030 class TGo4FitDataGraph : public TGo4FitData {
00031    public:
00032 
00036       TGo4FitDataGraph();
00037 
00043       TGo4FitDataGraph(const char* iName, TGraph* = 0, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE);
00044 
00048       virtual ~TGo4FitDataGraph();
00049 
00053       TGraph* GetGraph() { return (TGraph*) fxGraph.GetObject(); }
00054 
00059       void SetGraph(TGraph *iGraph, Bool_t iGraphOwned = kFALSE);
00060 
00064       TGo4FitDataIter* MakeIter();
00065 
00069       virtual void FillSlotList(TSeqCollection* list);
00070 
00074       virtual void Print(Option_t* option) const;
00075 
00076    protected:
00077 
00082       TGo4FitSlot fxGraph;
00083 
00084    ClassDef(TGo4FitDataGraph,1)
00085 };
00086 
00087 // **************************************************************************
00088 
00089 class TGo4FitDataGraphIter : public TGo4FitDataIter {
00090    public:
00091       TGo4FitDataGraphIter();
00092       TGo4FitDataGraphIter(TGo4FitDataGraph* Data);
00093       ~TGo4FitDataGraphIter();
00094 
00095    protected:
00096       virtual TGo4FitData* GetData() const { return fxData; }
00097       virtual Bool_t StartReset();
00098       virtual Bool_t ReadCurrentPoint();
00099       virtual Bool_t ShiftToNextPoint();
00100 
00101    private:
00102       TGo4FitDataGraph* fxData;
00103       Int_t fiNumPoints;
00104 
00105    ClassDef(TGo4FitDataGraphIter,1)
00106 };
00107 
00108 #endif // TGO4FITDATAGRAPH_H

Generated on Thu Oct 28 15:54:12 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1