Changeset 4001 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 05/07/04 11:13:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r4000 r4001 549 549 const Float_t sum = fSumx.At(pixid); 550 550 const Float_t sum2 = fSumx2.At(pixid); 551 552 551 const Float_t higainped = sum/n; 553 552 // … … 563 562 higainVar /= (Float_t)(fWindowSizeHiGain+fWindowSizeLoGain); 564 563 // 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)); 568 565 569 566 } -
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h
r3931 r4001 6 6 #endif 7 7 8 #ifndef ROOT_TArray F9 #include <TArray F.h>8 #ifndef ROOT_TArrayD 9 #include <TArrayD.h> 10 10 #endif 11 11 … … 33 33 MBadPixelsCam *fBad; // Bad Pixels 34 34 35 TArray FfSumx; // sum of values36 TArray FfSumx2; // sum of squared values37 TArray FfAreaSumx; // averaged sum of values per area idx38 TArray FfAreaSumx2; // averaged sum of squared values per area idx35 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 39 39 TArrayI fAreaValid; // number of valid pixel with area idx 40 TArray FfSectorSumx; // averaged sum of values per sector41 TArray FfSectorSumx2; // averaged sum of squared values per sector40 TArrayD fSectorSumx; // averaged sum of values per sector 41 TArrayD fSectorSumx2; // averaged sum of squared values per sector 42 42 TArrayI fSectorValid; // number of valid pixel with sector idx 43 43
Note:
See TracChangeset
for help on using the changeset viewer.