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

TGo4FitDataHistogram.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 TGO4FITDATAHISTOGRAM_H
00017 #define TGO4FITDATAHISTOGRAM_H
00018 
00019 #include "TGo4FitData.h"
00020 #include "TGo4FitSlot.h"
00021 
00022 class TH1;
00023 
00032 class TGo4FitDataHistogram : public TGo4FitData {
00033    public:
00034 
00038       TGo4FitDataHistogram();
00039 
00045       TGo4FitDataHistogram(const char* iName, TH1* = 0, Bool_t iHistogramOwned = kFALSE, Bool_t AddAmpl = kFALSE);
00046 
00050       virtual ~TGo4FitDataHistogram();
00051 
00055       TH1* GetHistogram() { return (TH1*) fxHistogram.GetObject(); }
00056 
00061       void SetHistogram(TH1 *iHistogram, Bool_t iHistogramOwned = 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 fxHistogram;
00085 
00086    ClassDef(TGo4FitDataHistogram,1)
00087 };
00088 
00089 // *****************************************************************************
00090 
00091 class TGo4FitDataHistogramIter : public TGo4FitDataIter {
00092   public:
00093     TGo4FitDataHistogramIter();
00094     TGo4FitDataHistogramIter(TGo4FitDataHistogram* data);
00095     ~TGo4FitDataHistogramIter();
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     TGo4FitDataHistogram* fxData;       
00105     TArrayI fxLimits;                   
00106     TArrayD fxOwnScales;                
00107     TArrayD fxOwnWidths;                
00108 
00109   ClassDef(TGo4FitDataHistogramIter,1)
00110 };
00111 
00112 #endif // TGO4FITDATAHISTOGRAM_H
00113 
00114 //----------------------------END OF GO4 SOURCE FILE ---------------------

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