Changeset 2622 in Sophya


Ignore:
Timestamp:
Sep 23, 2004, 6:34:30 PM (21 years ago)
Author:
cmv
Message:

Erreur de jugement dans ToCorrel, ajout histerr.h ds histats.h pour c++exec cmv 23/09/04

Location:
trunk/SophyaLib/HiStats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histats.h

    r1203 r2622  
    66#include "histos2.h"
    77#include "hisprof.h"
     8#include "histerr.h"
    89#include "ntuple.h"
    910#include "xntuple.h"
  • trunk/SophyaLib/HiStats/histerr.cc

    r2619 r2622  
    167167  Each bin content is divided by the number of entries in that bin.
    168168  Each squared error is divided by the number of entries in that bin.
    169   The number of entries by bin is set to 1
     169  The number of entries by bin is NOT set to 1 (calling ToCorrel
     170    many time will change the histogram !)
    170171*/
    171172void HistoErr::ToCorrel(void)
     
    176177   mData[i] /= (r_8) mNData[i];
    177178   mErr2[i] /= (r_8) mNData[i];
    178    mNData[i] = 1;
    179179 }
    180180 return;
Note: See TracChangeset for help on using the changeset viewer.