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 TGO4FITDATAPROFILE_H 00017 #define TGO4FITDATAPROFILE_H 00018 00019 #include "TGo4FitData.h" 00020 #include "TGo4FitSlot.h" 00021 00022 class TProfile; 00023 00029 class TGo4FitDataProfile : public TGo4FitData { 00030 public: 00031 00035 TGo4FitDataProfile(); 00036 00042 TGo4FitDataProfile(const char* iName, TProfile* = 0, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE); 00043 00047 virtual ~TGo4FitDataProfile(); 00048 00052 TProfile* GetProfile() { return (TProfile*) fxProfile.GetObject(); } 00053 00058 void SetProfile(TProfile *iProfile, Bool_t iProfileOwned = kFALSE); 00059 00063 TGo4FitDataIter* MakeIter(); 00064 00068 virtual void FillSlotList(TSeqCollection* list); 00069 00073 virtual void Print(Option_t* option) const; 00074 00075 protected: 00076 00081 TGo4FitSlot fxProfile; 00082 00083 ClassDef(TGo4FitDataProfile,1) 00084 }; 00085 00086 // ************************************************************************** 00087 00088 class TGo4FitDataProfileIter : public TGo4FitDataIter { 00089 public: 00090 TGo4FitDataProfileIter(); 00091 TGo4FitDataProfileIter(TGo4FitDataProfile* Data); 00092 ~TGo4FitDataProfileIter(); 00093 00094 protected: 00095 virtual TGo4FitData* GetData() const { return fxData; } 00096 virtual Bool_t StartReset(); 00097 virtual Bool_t ReadCurrentPoint(); 00098 virtual Bool_t ShiftToNextPoint(); 00099 00100 private: 00101 TGo4FitDataProfile* fxData; 00102 Int_t fiNumPoints; 00103 00104 ClassDef(TGo4FitDataProfileIter,1) 00105 }; 00106 00107 00108 #endif // TGO4FITDATAPROFILE_H 00109 00110 //----------------------------END OF GO4 SOURCE FILE ---------------------