Changeset 307 in Sophya for trunk/SophyaLib/NTools/hisprof.h
- Timestamp:
- May 19, 1999, 5:58:06 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/hisprof.h
r220 r307 8 8 #include "histos.h" 9 9 10 namespace PlanckDPC { 11 10 12 class HProf : public Histo { 11 13 friend class FIO_HProf; 12 14 public: 13 enum {classId = ClassId_HProf };14 15 15 16 // CREATOR / DESTRUCTOR 16 17 HProf(); 17 18 HProf(float xMin, float xMax, int nBin=100, float yMin=1., float yMax=-1.); 18 HProf(char *flnm);19 19 HProf(const HProf& H); 20 20 virtual ~HProf(); … … 44 44 inline int Fit(GeneralFit& gfit) 45 45 {if(!Ok) UpdateHisto(); return Histo::Fit(gfit,0);} 46 inline Histo *FitResidus(GeneralFit& gfit)46 inline Histo FitResidus(GeneralFit& gfit) 47 47 {if(!Ok) UpdateHisto(); return Histo::FitResidus(gfit);} 48 inline Histo *FitFunction(GeneralFit& gfit)48 inline Histo FitFunction(GeneralFit& gfit) 49 49 {if(!Ok) UpdateHisto(); return Histo::FitFunction(gfit);} 50 50 … … 52 52 inline void Print(int dyn=100,float hmin=1.,float hmax=-1.,int pflag=0,int il=1,int ih=-1) 53 53 {if(!Ok) UpdateHisto(); Histo::Print(dyn,hmin,hmax,pflag,il,ih);} 54 55 int_4 ClassId() const { return classId; }56 static PPersist* Create() { return new HProf;}57 58 virtual void WriteSelf(POutPersist&) const;59 virtual void ReadSelf(PInPersist&);60 61 54 62 55 protected: … … 72 65 }; 73 66 67 ///////////////////////////////////////////////////////////////////////// 68 // Classe pour la gestion de persistance 69 class FIO_HProf : public PPersist { 70 public: 71 FIO_HProf(); 72 FIO_HProf(string const & filename); 73 FIO_HProf(const HProf & obj); 74 FIO_HProf(HProf * obj); 75 virtual ~FIO_HProf(); 76 virtual AnyDataObj* DataObj(); 77 inline operator HProf() { return(*dobj); } 78 protected : 79 virtual void ReadSelf(PInPersist&); 80 virtual void WriteSelf(POutPersist&) const; 81 HProf * dobj; 82 bool ownobj; 83 }; 84 85 } // Fin du namespace 86 74 87 #endif // HISPROF_SEEN
Note:
See TracChangeset
for help on using the changeset viewer.