Changeset 4125 for trunk/MagicSoft/Mars
- Timestamp:
- 05/22/04 14:52:30 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4124 r4125 30 30 Allocation (like suggested by TBretz). 31 31 32 * mcalib/MCalibrationRelTimeCalc. cc32 * mcalib/MCalibrationRelTimeCalc.[h,cc] 33 33 - replaced the relative limit for acceptance of the time resolution 34 34 by an absolute limit -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r3982 r4125 72 72 using namespace std; 73 73 74 const Float_t MCalibrationRelTimeCalc::fgRelTimeRe lErrLimit = 10.;74 const Float_t MCalibrationRelTimeCalc::fgRelTimeResolutionLimit = 1.; 75 75 // -------------------------------------------------------------------------- 76 76 // … … 80 80 // 81 81 // Initializes: 82 // - fRelTimeRe lErrLimit to fgRelTimeRelErrimit82 // - fRelTimeResolutionLimit to fgRelTimeResolutionimit 83 83 // 84 84 // Calls: … … 92 92 fTitle = title ? title : "Task to finalize the relative time calibration"; 93 93 94 SetRelTimeRe lErrLimit();94 SetRelTimeResolutionLimit(); 95 95 96 96 Clear(); … … 238 238 239 239 PrintUncalibrated(MBadPixelsPix::kDeviatingTimeResolution, 240 Form("%s%2.1f%s","Time resolution less than ",fRelTimeRe lErrLimit," sigmafrom Mean: "));240 Form("%s%2.1f%s","Time resolution less than ",fRelTimeResolutionLimit," FADC slices from Mean: ")); 241 241 PrintUncalibrated(MBadPixelsPix::kRelTimeOscillating, 242 242 "Pixels with changing Rel. Times over time: "); … … 254 254 // MBadPixelsPix::kUnreliableRun (see FinalizeBadPixels()) 255 255 // 256 // Second loop: Exclude those deviating by more than fRelTimeRe lErrLimit mean257 // sigmasfrom the mean (obtained in first loop). Set256 // Second loop: Exclude those deviating by more than fRelTimeResolutionLimit FADC slices 257 // from the mean (obtained in first loop). Set 258 258 // MBadPixelsPix::kDeviatingTimeResolution if excluded. 259 259 // … … 267 267 Float_t upplim [nareas]; 268 268 Float_t areasum [nareas]; 269 Float_t areasum2 [nareas];269 // Float_t areasum2 [nareas]; 270 270 Int_t numareavalid [nareas]; 271 271 Int_t useunreliable[nareas]; … … 274 274 memset(upplim ,0, nareas * sizeof(Float_t)); 275 275 memset(areasum ,0, nareas * sizeof(Float_t)); 276 memset(areasum2 ,0, nareas * sizeof(Float_t));276 // memset(areasum2 ,0, nareas * sizeof(Float_t)); 277 277 memset(numareavalid ,0, nareas * sizeof(Int_t )); 278 278 memset(useunreliable ,0, nareas * sizeof(Int_t )); … … 325 325 326 326 areasum [aidx] += res; 327 areasum2 [aidx] += res*res;327 // areasum2 [aidx] += res*res; 328 328 numareavalid[aidx] ++; 329 329 } … … 340 340 341 341 // Calculate the rms out of sum2: 342 /* 342 343 areasum2[aidx] = (areasum2[aidx] - areasum[aidx]*areasum[aidx]/numareavalid[aidx]); 343 344 areasum2[aidx] /= (numareavalid[aidx]-1.); 345 */ 344 346 areasum [aidx] /= numareavalid[aidx]; 345 347 lowlim [aidx] = 0.; 346 upplim [aidx] = areasum [aidx] + fRelTimeRe lErrLimit*areasum2[aidx];348 upplim [aidx] = areasum [aidx] + fRelTimeResolutionLimit; 347 349 348 350 *fLog << endl;
Note:
See TracChangeset
for help on using the changeset viewer.