Changeset 8263 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/23/07 13:17:49 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc

    r8066 r8263  
    130130
    131131    // "b" option: calculate binomial errors
    132     fHEnergy.Divide(hsel, hall, totalarea, 1, "b");
     132    // Do not use totalarea inside the binomial error calculation:
     133    //  it is not a weight.
     134    fHEnergy.Divide(hsel, hall, 1, 1, "b");
    133135#if ROOT_VERSION_CODE < ROOT_VERSION(5,13,04)
    134     MH::SetBinomialErrors(fHEnergy, *hsel, *hall, totalarea, 1);
     136    MH::SetBinomialErrors(fHEnergy, *hsel, *hall);
    135137#endif
     138    fHEnergy.Scale(totalenergy);
    136139
    137140    delete hsel;
Note: See TracChangeset for help on using the changeset viewer.