Changeset 3938


Ignore:
Timestamp:
05/03/04 13:54:53 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc

    r3937 r3938  
    7272using namespace std;
    7373
    74 const Float_t MCalibrationRelTimeCalc::fgRelTimeRelErrLimit      = 6.;
     74const Float_t MCalibrationRelTimeCalc::fgRelTimeRelErrLimit      = 15.;
    7575// --------------------------------------------------------------------------
    7676//
     
    8080//
    8181// Initializes:
    82 // - fRelTimeRelErrLimit to fgRelTimeRelErrLimit
     82// - fRelTimeRelErrLimit to fgRelTimeRelErrimit
    8383//
    8484// Calls:
     
    313313        }
    314314 
     315      *fLog << err << areasum2[aidx] << "  " << areasum[aidx] << "  " << numareavalid[aidx] << endl;
     316
    315317      // Calculate the rms out of sum2:
    316318      areasum2[aidx]  = (areasum2[aidx] - areasum[aidx]*areasum[aidx]/numareavalid[aidx]);
     319      areasum2[aidx] /= (numareavalid[aidx]-1.);
    317320      areasum [aidx] /= numareavalid[aidx];
    318       areasum2[aidx] /= (numareavalid[aidx]-1.);
    319321      lowlim  [aidx]  = areasum [aidx] - fRelTimeRelErrLimit*areasum2[aidx];
    320322      upplim  [aidx]  = areasum [aidx] + fRelTimeRelErrLimit*areasum2[aidx];
Note: See TracChangeset for help on using the changeset viewer.