- Timestamp:
- 05/07/04 11:13:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4000 r4001 18 18 19 19 -*-*- 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 20 28 21 29 2004/05/06: Markus Gaug -
trunk/MagicSoft/Mars/macros/bootcampstandardanalysis.C
r4000 r4001 70 70 // Set Ranges or Windows 71 71 // 72 extractor.SetRange( 5,14,5,14);72 extractor.SetRange(2,14,5,14); 73 73 // extractor.SetWindows(8,8); 74 74 -
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.