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

Legend:

Unmodified
Added
Removed
  • 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.