| 1 | //
|
|---|
| 2 | // histogrammes 2D cmv 2/8/96
|
|---|
| 3 | //
|
|---|
| 4 |
|
|---|
| 5 | #ifndef HISTOS2_SEEN
|
|---|
| 6 | #define HISTOS2_SEEN
|
|---|
| 7 |
|
|---|
| 8 | #include "machdefs.h"
|
|---|
| 9 | #include <string>
|
|---|
| 10 |
|
|---|
| 11 | #include <list>
|
|---|
| 12 | #if defined(__KCC__)
|
|---|
| 13 | #include <list.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #include "peida.h"
|
|---|
| 17 | #include "utils.h"
|
|---|
| 18 | #include "histos.h"
|
|---|
| 19 |
|
|---|
| 20 | namespace SOPHYA {
|
|---|
| 21 |
|
|---|
| 22 | // Forward class declaration for Fits handler
|
|---|
| 23 | template <class T> class FitsHandler;
|
|---|
| 24 |
|
|---|
| 25 | //! 2 dimensions histograms
|
|---|
| 26 | class Histo2D : public AnyDataObj {
|
|---|
| 27 | friend class ObjFileIO<Histo2D>;
|
|---|
| 28 | friend class FitsHandler<Histo2D>;
|
|---|
| 29 | public:
|
|---|
| 30 |
|
|---|
| 31 | // CREATOR / DESTRUCTOR
|
|---|
| 32 | Histo2D(r_8 xMin,r_8 xMax,int_4 nxBin,r_8 yMin,r_8 yMax,int_4 nyBin);
|
|---|
| 33 | Histo2D(r_4 xMin,r_4 xMax,int_4 nxBin,r_4 yMin,r_4 yMax,int_4 nyBin);
|
|---|
| 34 | Histo2D(const Histo2D& h);
|
|---|
| 35 | Histo2D();
|
|---|
| 36 | virtual ~Histo2D();
|
|---|
| 37 |
|
|---|
| 38 | // OPTIONS
|
|---|
| 39 | void Errors();
|
|---|
| 40 |
|
|---|
| 41 | // UPDATING
|
|---|
| 42 | void Zero();
|
|---|
| 43 | void Add(r_8 x, r_8 y, r_8 w = 1.);
|
|---|
| 44 |
|
|---|
| 45 | // Operators
|
|---|
| 46 | Histo2D& operator = (const Histo2D& h);
|
|---|
| 47 | Histo2D& operator *= (r_8 b);
|
|---|
| 48 | Histo2D& operator /= (r_8 b);
|
|---|
| 49 | Histo2D& operator += (r_8 b);
|
|---|
| 50 | Histo2D& operator -= (r_8 b);
|
|---|
| 51 | Histo2D& operator += (const Histo2D& a);
|
|---|
| 52 | Histo2D& operator -= (const Histo2D& a);
|
|---|
| 53 | Histo2D& operator *= (const Histo2D& a);
|
|---|
| 54 | Histo2D& operator /= (const Histo2D& a);
|
|---|
| 55 |
|
|---|
| 56 | // get/put dans/depuis une matrice / vector
|
|---|
| 57 | void GetXCoor(TVector<r_8>& v) const;
|
|---|
| 58 | void GetValue(TMatrix<r_8> &v) const;
|
|---|
| 59 | void GetYCoor(TVector<r_8>& v) const;
|
|---|
| 60 | void GetError2(TMatrix<r_8>& v) const;
|
|---|
| 61 | void GetError(TMatrix<r_8>& v) const;
|
|---|
| 62 | void PutValue(TMatrix<r_8>& v, int_4 ierr=0);
|
|---|
| 63 | void PutValueAdd(TMatrix<r_8>& v, int_4 ierr=0);
|
|---|
| 64 | void PutError2(TMatrix<r_8>& v);
|
|---|
| 65 | void PutError2Add(TMatrix<r_8>& v);
|
|---|
| 66 | void PutError(TMatrix<r_8>& v);
|
|---|
| 67 |
|
|---|
| 68 | // INLINES
|
|---|
| 69 | //! Retourne l'abscisse minimum.
|
|---|
| 70 | inline r_8 XMin() const {return mXmin;}
|
|---|
| 71 | //! Retourne l'abscisse maximum.
|
|---|
| 72 | inline r_8 XMax() const {return mXmax;}
|
|---|
| 73 | //! Retourne l'ordonnee minimum.
|
|---|
| 74 | inline r_8 YMin() const {return mYmin;}
|
|---|
| 75 | //! Retourne l'ordonnee maximum.
|
|---|
| 76 | inline r_8 YMax() const {return mYmax;}
|
|---|
| 77 | //! Retourne le nombre de bins selon X.
|
|---|
| 78 | inline int_4 NBinX() const {return mNx;}
|
|---|
| 79 | //! Retourne le nombre de bins selon Y.
|
|---|
| 80 | inline int_4 NBinY() const {return mNy;}
|
|---|
| 81 | //! Retourne la largeur du bin selon X.
|
|---|
| 82 | inline r_8 WBinX() const {return mWBinx;}
|
|---|
| 83 | //! Retourne la largeur du bin selon Y.
|
|---|
| 84 | inline r_8 WBinY() const {return mWBiny;}
|
|---|
| 85 | //! Retourne le pointeur sur le tableaux des contenus.
|
|---|
| 86 | inline r_8* Bins() const {return mData;}
|
|---|
| 87 | //! Retourne le contenu du bin i,j.
|
|---|
| 88 | inline r_8 operator()(int_4 i,int_4 j) const {return mData[j*mNx+i];}
|
|---|
| 89 | //! Remplit le contenu du bin i,j.
|
|---|
| 90 | inline r_8& operator()(int_4 i,int_4 j) {return mData[j*mNx+i];}
|
|---|
| 91 | //! retourne "true" si il y a des erreurs stoquees
|
|---|
| 92 | inline bool HasErrors() const { if(mErr2) return true; else return false;}
|
|---|
| 93 | //! Retourne l'erreur du bin i,j.
|
|---|
| 94 | inline r_8 Error(int_4 i,int_4 j) const
|
|---|
| 95 | {if(mErr2)
|
|---|
| 96 | {if(mErr2[j*mNx+i]>0.) return sqrt(mErr2[j*mNx+i]); else return 0.;}
|
|---|
| 97 | else return 0.;}
|
|---|
| 98 | //! Remplit l'erreur au carre du bin i,j.
|
|---|
| 99 | inline r_8 Error2(int_4 i,int_4 j) const
|
|---|
| 100 | {if(mErr2) return mErr2[j*mNx+i]; else return 0.;}
|
|---|
| 101 | //! Remplit l'erreur au carre du bin i,j.
|
|---|
| 102 | inline r_8& Error2(int_4 i,int_4 j) {return mErr2[j*mNx+i];}
|
|---|
| 103 | //! Retourne la somme ponderee.
|
|---|
| 104 | inline r_8 NData() const {return nHist;}
|
|---|
| 105 | //! Retourne le nombre d'entrees.
|
|---|
| 106 | inline int_4 NEntries() const {return nEntries;}
|
|---|
| 107 | //! Retourne l'abscisse et l'ordonnee du coin inferieur du bin i,j.
|
|---|
| 108 | inline void BinLowEdge(int_4 i,int_4 j,r_8& x,r_8& y) const
|
|---|
| 109 | {x = mXmin + i*mWBinx; y = mYmin + j*mWBiny;}
|
|---|
| 110 | //! Retourne l'abscisse et l'ordonnee du coin inferieur du bin i,j.
|
|---|
| 111 | inline void BinLowEdge(int_4 i,int_4 j,r_4& xf,r_4& yf) const
|
|---|
| 112 | {r_8 x,y; BinLowEdge(i,j,x,y); xf=x; yf=y;}
|
|---|
| 113 | //! Retourne l'abscisse et l'ordonnee du centre du bin i,j.
|
|---|
| 114 | inline void BinCenter(int_4 i,int_4 j,r_8& x,r_8& y) const
|
|---|
| 115 | {x = mXmin + (i+0.5)*mWBinx; y = mYmin + (j+0.5)*mWBiny;}
|
|---|
| 116 | //! Retourne l'abscisse et l'ordonnee du centre du bin i,j.
|
|---|
| 117 | inline void BinCenter(int_4 i,int_4 j,r_4& xf,r_4& yf) const
|
|---|
| 118 | {r_8 x,y; BinCenter(i,j,x,y); xf=x; yf=y;}
|
|---|
| 119 | //! Retourne l'abscisse et l'ordonnee du coin superieur du bin i,j.
|
|---|
| 120 | inline void BinHighEdge(int_4 i,int_4 j,r_8& x,r_8& y) const
|
|---|
| 121 | {x = mXmin + (i+1)*mWBinx; y = mYmin + (j+1)*mWBiny;}
|
|---|
| 122 | //! Retourne l'abscisse et l'ordonnee du coin superieur du bin i,j.
|
|---|
| 123 | inline void BinHighEdge(int_4 i,int_4 j,r_4& xf,r_4& yf) const
|
|---|
| 124 | {r_8 x,y; BinHighEdge(i,j,x,y); xf=x; yf=y;}
|
|---|
| 125 | //! Retourne les numeros du bin contenant l'abscisse et l'ordonnee x,y.
|
|---|
| 126 | inline void FindBin(r_8 x,r_8 y,int_4& i,int_4& j) const
|
|---|
| 127 | {i=(int_4) floor((x-mXmin)/mWBinx); j=(int_4) floor((y-mYmin)/mWBiny);}
|
|---|
| 128 |
|
|---|
| 129 | // Info, statistique et calculs sur les histogrammes
|
|---|
| 130 | r_8 NOver(int_4 i=-1,int_4 j=-1) const;
|
|---|
| 131 | int_4 BinNonNul() const;
|
|---|
| 132 | int_4 ErrNonNul() const;
|
|---|
| 133 | void IJMax(int_4& imax,int_4& jmax,int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 134 | void IJMin(int_4& imax,int_4& jmax,int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 135 | r_8 VMax(int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 136 | r_8 VMin(int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 137 | int_4 EstimeMax(r_8& xm,r_8& ym,int_4 SzPav = 3
|
|---|
| 138 | ,int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 139 | int_4 EstimeMax(int_4 im,int_4 jm,r_8& xm,r_8& ym,int_4 SzPav = 3) const;
|
|---|
| 140 | int_4 FindMax(int_4& im,int_4& jm,int_4 SzPav = 3,r_8 Dz = 0.
|
|---|
| 141 | ,int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 142 |
|
|---|
| 143 | // Print et Display ASCII
|
|---|
| 144 | virtual void Show(ostream& os) const;
|
|---|
| 145 | inline void Show() const { Show(cout); }
|
|---|
| 146 | inline void PrintStatus() const { Show(cout); }
|
|---|
| 147 |
|
|---|
| 148 | void Print(r_8 min=1.,r_8 max=-1.
|
|---|
| 149 | ,int_4 il=1,int_4 ih= -1,int_4 jl=1,int_4 jh= -1) const;
|
|---|
| 150 |
|
|---|
| 151 | // PROJECTIONS
|
|---|
| 152 | void SetProjX();
|
|---|
| 153 | void SetProjY();
|
|---|
| 154 | void SetProj();
|
|---|
| 155 | void DelProjX();
|
|---|
| 156 | void DelProjY();
|
|---|
| 157 | void DelProj();
|
|---|
| 158 | void ZeroProjX();
|
|---|
| 159 | void ZeroProjY();
|
|---|
| 160 | void ZeroProj();
|
|---|
| 161 | //! Retourne le pointeur sur l'histo 1D de la projection selon X.
|
|---|
| 162 | inline Histo* HProjX() const {return mHprojx;}
|
|---|
| 163 | //! Retourne le pointeur sur l'histo 1D de la projection selon Y.
|
|---|
| 164 | inline Histo* HProjY() const {return mHprojy;}
|
|---|
| 165 | void ShowProj() const;
|
|---|
| 166 |
|
|---|
| 167 | // BANDES
|
|---|
| 168 | //! Retourne le nombre de bandes selon X
|
|---|
| 169 | inline int_4 NBandX() const {return mLBandx.size();}
|
|---|
| 170 | //! Retourne le nombre de bandes selon Y
|
|---|
| 171 | inline int_4 NBandY() const {return mLBandy.size();}
|
|---|
| 172 | int_4 SetBandX(r_8 ybmin,r_8 ybmax);
|
|---|
| 173 | int_4 SetBandY(r_8 xbmin,r_8 xbmax);
|
|---|
| 174 | void DelBandX();
|
|---|
| 175 | void DelBandY();
|
|---|
| 176 | void ZeroBandX();
|
|---|
| 177 | void ZeroBandY();
|
|---|
| 178 | Histo* HBandX(int_4 n) const;
|
|---|
| 179 | Histo* HBandY(int_4 n) const;
|
|---|
| 180 | void GetBandX(int_4 n,r_8& ybmin,r_8& ybmax) const;
|
|---|
| 181 | void GetBandY(int_4 n,r_8& xbmin,r_8& xbmax) const;
|
|---|
| 182 | void ShowBand(int_4 lp = 0) const;
|
|---|
| 183 |
|
|---|
| 184 | // SLICES
|
|---|
| 185 | //! Retourne le nombre de slices selon X
|
|---|
| 186 | inline int_4 NSliX() const {return mLSlix.size();}
|
|---|
| 187 | //! Retourne le nombre de slices selon Y
|
|---|
| 188 | inline int_4 NSliY() const {return mLSliy.size();}
|
|---|
| 189 | int_4 SetSliX(int_4 nsli);
|
|---|
| 190 | int_4 SetSliY(int_4 nsli);
|
|---|
| 191 | void DelSliX();
|
|---|
| 192 | void DelSliY();
|
|---|
| 193 | void ZeroSliX();
|
|---|
| 194 | void ZeroSliY();
|
|---|
| 195 | Histo* HSliX(int_4 n) const;
|
|---|
| 196 | Histo* HSliY(int_4 n) const;
|
|---|
| 197 | void GetSliX(int_4 n,r_8& ybmin,r_8& ybmax) const;
|
|---|
| 198 | void GetSliY(int_4 n,r_8& xbmin,r_8& xbmax) const;
|
|---|
| 199 | void ShowSli(int_4 lp = 0) const;
|
|---|
| 200 |
|
|---|
| 201 | #ifndef __DECCXX
|
|---|
| 202 | protected:
|
|---|
| 203 | #endif
|
|---|
| 204 | //! structure de definition des bandes
|
|---|
| 205 | struct bande_slice {
|
|---|
| 206 | int_4 num; //!< nombre de bandes
|
|---|
| 207 | r_8 min; //!< limite minimum pour remplir la bande
|
|---|
| 208 | r_8 max; //!< limite maximum pour remplir la bande
|
|---|
| 209 | Histo* H; //!< pointer sur l Histo 1D de la bande
|
|---|
| 210 | STRUCTCOMP(bande_slice)
|
|---|
| 211 | };
|
|---|
| 212 | #ifdef __DECCXX
|
|---|
| 213 | protected:
|
|---|
| 214 | #endif
|
|---|
| 215 |
|
|---|
| 216 | void CreateOrResize(r_8 xMin,r_8 xMax,int_4 nxBin,r_8 yMin,r_8 yMax,int_4 nyBin);
|
|---|
| 217 | void Delete(void);
|
|---|
| 218 |
|
|---|
| 219 | r_8* mData; //!< donnees
|
|---|
| 220 | r_8* mErr2; //!< erreurs carrees
|
|---|
| 221 |
|
|---|
| 222 | r_8 mOver[3][3]; //!< overflow table
|
|---|
| 223 | r_8 nHist; //!< somme ponderee des entrees
|
|---|
| 224 | int_4 nEntries; //!< nombre d'entrees
|
|---|
| 225 |
|
|---|
| 226 | int_4 mNx; //!< nombre de bins en X
|
|---|
| 227 | int_4 mNy; //!< nombre de bins en Y
|
|---|
| 228 | int_4 mNxy; //!< nombre de bins total
|
|---|
| 229 | r_8 mXmin; //!< abscisse minimum
|
|---|
| 230 | r_8 mXmax; //!< abscisse maximum
|
|---|
| 231 | r_8 mYmin; //!< ordonnee minimum
|
|---|
| 232 | r_8 mYmax; //!< ordonnee maximum
|
|---|
| 233 | r_8 mWBinx; //!< largeur du bin en X
|
|---|
| 234 | r_8 mWBiny; //!< largeur du bin en Y
|
|---|
| 235 |
|
|---|
| 236 | bande_slice mB_s;
|
|---|
| 237 |
|
|---|
| 238 | Histo* mHprojx; //!< pointer sur Histo des proj X
|
|---|
| 239 | Histo* mHprojy; //!< pointer sur Histo des proj Y
|
|---|
| 240 |
|
|---|
| 241 | list<bande_slice> mLBandx; //!< liste des bandes selon X
|
|---|
| 242 | list<bande_slice> mLBandy; //!< liste des bandes selon Y
|
|---|
| 243 |
|
|---|
| 244 | list<bande_slice> mLSlix; //!< liste des slices selon X
|
|---|
| 245 | list<bande_slice> mLSliy; //!< liste des slices selon Y
|
|---|
| 246 |
|
|---|
| 247 | };
|
|---|
| 248 |
|
|---|
| 249 | /*! Prints histogram information on stream \b s (h.Show(s)) */
|
|---|
| 250 | inline ostream& operator << (ostream& s, Histo2D const & h)
|
|---|
| 251 | { h.Show(s); return(s); }
|
|---|
| 252 |
|
|---|
| 253 | /////////////////////////////////////////////////////////////////////////
|
|---|
| 254 | // Classe pour la gestion de persistance
|
|---|
| 255 |
|
|---|
| 256 | /*! \ingroup HiStats \fn operator<<(POuttPersist&,Histo2D)
|
|---|
| 257 | \brief Persistance management */
|
|---|
| 258 | inline POutPersist& operator << (POutPersist& os, Histo2D & obj)
|
|---|
| 259 | { ObjFileIO<Histo2D> fio(&obj); fio.Write(os); return(os); }
|
|---|
| 260 | /*! \ingroup HiStats \fn operator<<(POuttPersist&,Histo2D)
|
|---|
| 261 | \brief Persistance management */
|
|---|
| 262 | inline PInPersist& operator >> (PInPersist& is, Histo2D & obj)
|
|---|
| 263 | { ObjFileIO<Histo2D> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); }
|
|---|
| 264 |
|
|---|
| 265 | // Classe pour la gestion de persistance
|
|---|
| 266 | // ObjFileIO<Histo2D>
|
|---|
| 267 |
|
|---|
| 268 | /*! \ingroup HiStats \fn operator*(const Histo2D&,r_8)
|
|---|
| 269 | \brief Operateur H2 = H1 * b */
|
|---|
| 270 | inline Histo2D operator * (const Histo2D& a, r_8 b)
|
|---|
| 271 | {
|
|---|
| 272 | Histo2D result(a);
|
|---|
| 273 | return (result *= b);
|
|---|
| 274 | }
|
|---|
| 275 |
|
|---|
| 276 | /*! \ingroup HiStats \fn operator*(r_8,const Histo2D&)
|
|---|
| 277 | \brief Operateur H2 = b * H1 */
|
|---|
| 278 | inline Histo2D operator * (r_8 b, const Histo2D& a)
|
|---|
| 279 | {
|
|---|
| 280 | Histo2D result(a);
|
|---|
| 281 | return (result *= b);
|
|---|
| 282 | }
|
|---|
| 283 |
|
|---|
| 284 | /*! \ingroup HiStats \fn operator/(const Histo2D&,r_8)
|
|---|
| 285 | \brief Operateur H2 = H1 / b */
|
|---|
| 286 | inline Histo2D operator / (const Histo2D& a, r_8 b)
|
|---|
| 287 | {
|
|---|
| 288 | Histo2D result(a);
|
|---|
| 289 | return (result /= b);
|
|---|
| 290 | }
|
|---|
| 291 |
|
|---|
| 292 | /*! \ingroup HiStats \fn operator+(const Histo2D&,r_8)
|
|---|
| 293 | \brief Operateur H2 = H1 + b */
|
|---|
| 294 | inline Histo2D operator + (const Histo2D& a, r_8 b)
|
|---|
| 295 | {
|
|---|
| 296 | Histo2D result(a);
|
|---|
| 297 | return (result += b);
|
|---|
| 298 | }
|
|---|
| 299 |
|
|---|
| 300 | /*! \ingroup HiStats \fn operator+(r_8,const Histo2D&)
|
|---|
| 301 | \brief Operateur H2 = b + H1 */
|
|---|
| 302 | inline Histo2D operator + (r_8 b, const Histo2D& a)
|
|---|
| 303 | {
|
|---|
| 304 | Histo2D result(a);
|
|---|
| 305 | return (result += b);
|
|---|
| 306 | }
|
|---|
| 307 |
|
|---|
| 308 | /*! \ingroup HiStats \fn operator-(const Histo2D&,r_8)
|
|---|
| 309 | \brief Operateur H2 = H1 - b */
|
|---|
| 310 | inline Histo2D operator - (const Histo2D& a, r_8 b)
|
|---|
| 311 | {
|
|---|
| 312 | Histo2D result(a);
|
|---|
| 313 | return (result -= b);
|
|---|
| 314 | }
|
|---|
| 315 |
|
|---|
| 316 | /*! \ingroup HiStats \fn operator-(r_8,const Histo2D&)
|
|---|
| 317 | \brief Operateur H2 = b - H1 */
|
|---|
| 318 | inline Histo2D operator - (r_8 b, const Histo2D& a)
|
|---|
| 319 | {
|
|---|
| 320 | Histo2D result(a);
|
|---|
| 321 | result *= -1.;
|
|---|
| 322 | return (result += b);
|
|---|
| 323 | }
|
|---|
| 324 |
|
|---|
| 325 | /*! \ingroup HiStats \fn operator+(const Histo2D&,const Histo2D&)
|
|---|
| 326 | \brief Operateur H = H1 + H2 */
|
|---|
| 327 |
|
|---|
| 328 | inline Histo2D operator + (const Histo2D& a, const Histo2D& b)
|
|---|
| 329 | {
|
|---|
| 330 | if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
|
|---|
| 331 | Histo2D c(a);
|
|---|
| 332 | return (c += b);
|
|---|
| 333 | }
|
|---|
| 334 |
|
|---|
| 335 | /*! \ingroup HiStats \fn operator-(const Histo2D&,const Histo2D&)
|
|---|
| 336 | \brief Operateur H = H1 - H2 */
|
|---|
| 337 | inline Histo2D operator - (const Histo2D& a, const Histo2D& b)
|
|---|
| 338 | {
|
|---|
| 339 | if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
|
|---|
| 340 | Histo2D c(a);
|
|---|
| 341 | return (c -= b);
|
|---|
| 342 | }
|
|---|
| 343 |
|
|---|
| 344 | /*! \ingroup HiStats \fn operator*(const Histo2D&,const Histo2D&)
|
|---|
| 345 | \brief Operateur H = H1 * H2 */
|
|---|
| 346 | inline Histo2D operator * (const Histo2D& a, const Histo2D& b)
|
|---|
| 347 | {
|
|---|
| 348 | if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
|
|---|
| 349 | Histo2D c(a);
|
|---|
| 350 | return (c *= b);
|
|---|
| 351 | }
|
|---|
| 352 |
|
|---|
| 353 | /*! \ingroup HiStats \fn operator/(const Histo2D&,const Histo2D&)
|
|---|
| 354 | \brief Operateur H = H1 / H2 */
|
|---|
| 355 | inline Histo2D operator / (const Histo2D& a, const Histo2D& b)
|
|---|
| 356 | {
|
|---|
| 357 | if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
|
|---|
| 358 | Histo2D c(a);
|
|---|
| 359 | return (c /= b);
|
|---|
| 360 | }
|
|---|
| 361 |
|
|---|
| 362 | } // Fin du namespace
|
|---|
| 363 |
|
|---|
| 364 | #endif // HISTOS2_SEEN
|
|---|