Changeset 6919 for trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
- Timestamp:
- 04/08/05 11:55:55 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r6215 r6919 351 351 352 352 MHCalibrationPix &histlo = (*this)(i); 353 histlo.FillHistAndArray(time-reftime); 353 if (IsOscillations()) 354 histlo.FillHistAndArray(time-reftime); 355 else 356 histlo.FillHist(time-reftime); 354 357 355 358 fSumarealo [aidx] += time; … … 362 365 const Float_t time = pix.GetArrivalTimeHiGain(); 363 366 364 histhi.FillHistAndArray(time-reftime) ; 367 if (IsOscillations()) 368 histhi.FillHistAndArray(time-reftime); 369 else 370 histhi.FillHist(time-reftime); 371 365 372 fSumareahi [aidx] += time; 366 373 fNumareahi [aidx] ++; … … 373 380 { 374 381 MHCalibrationPix &histhi = GetAverageHiGainArea(j); 375 histhi.FillHistAndArray(fNumareahi[j] == 0 ? 0. : fSumareahi[j]/fNumareahi[j]); 382 if (IsOscillations()) 383 histhi.FillHistAndArray(fNumareahi[j] == 0 ? 0. : fSumareahi[j]/fNumareahi[j]); 384 else 385 histhi.FillHist(fNumareahi[j] == 0 ? 0. : fSumareahi[j]/fNumareahi[j]); 376 386 377 387 if (IsLoGain()) 378 388 { 379 389 MHCalibrationPix &histlo = GetAverageLoGainArea(j); 380 histlo.FillHistAndArray(fNumarealo[j] == 0 ? 0. : fSumarealo[j]/fNumarealo[j]); 390 if (IsOscillations()) 391 histlo.FillHistAndArray(fNumarealo[j] == 0 ? 0. : fSumarealo[j]/fNumarealo[j]); 392 else 393 histlo.FillHist(fNumarealo[j] == 0 ? 0. : fSumarealo[j]/fNumarealo[j]); 381 394 } 382 395 } … … 385 398 { 386 399 MHCalibrationPix &histhi = GetAverageHiGainSector(j); 387 histhi.FillHistAndArray(fNumsectorhi[j] == 0 ? 0. : fSumsectorhi[j]/fNumsectorhi[j]); 400 if (IsOscillations()) 401 histhi.FillHistAndArray(fNumsectorhi[j] == 0 ? 0. : fSumsectorhi[j]/fNumsectorhi[j]); 402 else 403 histhi.FillHist(fNumsectorhi[j] == 0 ? 0. : fSumsectorhi[j]/fNumsectorhi[j]); 388 404 389 405 if (IsLoGain()) 390 406 { 391 407 MHCalibrationPix &histlo = GetAverageLoGainSector(j); 392 histlo.FillHistAndArray(fNumsectorlo[j] == 0 ? 0. : fSumsectorlo[j]/fNumsectorlo[j]); 408 if (IsOscillations()) 409 histlo.FillHistAndArray(fNumsectorlo[j] == 0 ? 0. : fSumsectorlo[j]/fNumsectorlo[j]); 410 else 411 histlo.FillHist(fNumsectorlo[j] == 0 ? 0. : fSumsectorlo[j]/fNumsectorlo[j]); 393 412 } 394 413 }
Note:
See TracChangeset
for help on using the changeset viewer.