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 TGO4FITDATAPROFILE_H 00017 #define TGO4FITDATAPROFILE_H 00018 #include "TProfile.h" 00019 #include "TGo4FitSlot.h" 00020 #include "TGo4FitData.h" 00021 00027 class TGo4FitDataProfile : public TGo4FitData { 00028 public: 00029 00033 TGo4FitDataProfile(); 00034 00040 TGo4FitDataProfile(const char* iName, TProfile* = 0, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE); 00041 00045 virtual ~TGo4FitDataProfile(); 00046 00050 TProfile* GetProfile() { return (TProfile*) fxProfile.GetObject(); } 00051 00056 void SetProfile(TProfile *iProfile, Bool_t iProfileOwned = kFALSE) { fxProfile.SetObject(iProfile,iProfileOwned); } 00057 00061 TGo4FitDataIter* MakeIter(); 00062 00066 virtual void FillSlotList(TSeqCollection* list); 00067 00071 virtual void Print(Option_t* option) const; 00072 00073 protected: 00074 00079 TGo4FitSlot fxProfile; 00080 00081 ClassDef(TGo4FitDataProfile,1) 00082 }; 00083 00084 // ************************************************************************** 00085 00086 class TGo4FitDataProfileIter : public TGo4FitDataIter { 00087 public: 00088 TGo4FitDataProfileIter(); 00089 TGo4FitDataProfileIter(TGo4FitDataProfile* Data); 00090 ~TGo4FitDataProfileIter(); 00091 00092 protected: 00093 virtual TGo4FitData* GetData() const { return fxData; } 00094 virtual Bool_t StartReset(); 00095 virtual Bool_t ReadCurrentPoint(); 00096 virtual Bool_t ShiftToNextPoint(); 00097 00098 private: 00099 TGo4FitDataProfile* fxData; 00100 Int_t fiNumPoints; 00101 00102 ClassDef(TGo4FitDataProfileIter,1) 00103 }; 00104 00105 00106 #endif // TGO4FITDATAPROFILE_H 00107 00108 //----------------------------END OF GO4 SOURCE FILE ---------------------