Changeset 4001


Ignore:
Timestamp:
05/07/04 11:13:45 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4000 r4001  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/05/07: Markus Gaug
     22
     23   * mpedestal/MPedCalcPedRun.[h,cc]
     24     - make the arrays fSum and fSum2 doubles. This is necessary since
     25       rounding errors of the floats introduced significant errors in the
     26       RMS!
     27
    2028
    2129 2004/05/06: Markus Gaug
  • trunk/MagicSoft/Mars/macros/bootcampstandardanalysis.C

    r4000 r4001  
    7070  // Set Ranges or Windows
    7171  //
    72   extractor.SetRange(5,14,5,14);
     72  extractor.SetRange(2,14,5,14);
    7373  //  extractor.SetWindows(8,8);
    7474
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r4000 r4001  
    549549      const Float_t sum  = fSumx.At(pixid);
    550550      const Float_t sum2 = fSumx2.At(pixid);
    551      
    552551      const Float_t higainped = sum/n;
    553552      //
     
    563562      higainVar /= (Float_t)(fWindowSizeHiGain+fWindowSizeLoGain);
    564563      // 3. Calculate the RMS from the Variance:
    565       const Float_t higainrms = TMath::Sqrt(higainVar);
    566 
    567       (*fPedestals)[pixid].Set(higainped, higainrms);
     564      (*fPedestals)[pixid].Set(higainped, higainVar < 0 ? 0. : TMath::Sqrt(higainVar));
    568565
    569566    }
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h

    r3931 r4001  
    66#endif
    77
    8 #ifndef ROOT_TArrayF
    9 #include <TArrayF.h>
     8#ifndef ROOT_TArrayD
     9#include <TArrayD.h>
    1010#endif
    1111
     
    3333  MBadPixelsCam *fBad;       // Bad Pixels
    3434 
    35   TArrayF fSumx;         // sum of values
    36   TArrayF fSumx2;        // sum of squared values
    37   TArrayF fAreaSumx;     // averaged sum of values per area idx
    38   TArrayF fAreaSumx2;    // averaged sum of squared values per area idx
     35  TArrayD fSumx;         // sum of values
     36  TArrayD fSumx2;        // sum of squared values
     37  TArrayD fAreaSumx;     // averaged sum of values per area idx
     38  TArrayD fAreaSumx2;    // averaged sum of squared values per area idx
    3939  TArrayI fAreaValid;    // number of valid pixel with area idx 
    40   TArrayF fSectorSumx;   // averaged sum of values per sector
    41   TArrayF fSectorSumx2;  // averaged sum of squared values per sector
     40  TArrayD fSectorSumx;   // averaged sum of values per sector
     41  TArrayD fSectorSumx2;  // averaged sum of squared values per sector
    4242  TArrayI fSectorValid;  // number of valid pixel with sector idx 
    4343 
Note: See TracChangeset for help on using the changeset viewer.