Changeset 2765 for trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
- Timestamp:
- 01/09/04 22:57:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r2760 r2765 239 239 for (UInt_t i=0;i<cam->GetNumPixels();i++) 240 240 { 241 241 242 MCalibrationPix &pix = (*fCalibrations)[i]; 242 243 pix.DefinePixId(i); 244 MHCalibrationPixel *hist = pix.GetHist(); 245 246 hist->SetTimeFitRangesHiGain(fSignals->GetFirstUsedSliceHiGain(), 247 fSignals->GetLastUsedSliceHiGain()); 248 hist->SetTimeFitRangesLoGain(fSignals->GetFirstUsedSliceLoGain(), 249 fSignals->GetLastUsedSliceLoGain()); 250 243 251 } 244 252 … … 453 461 MCalibrationPix &pix = (*fCalibrations)[pixid]; 454 462 463 // 464 // get the pedestals 465 // 455 466 const Float_t ped = (*fPedestals)[pixid].GetPedestal() * fNumHiGainSamples; 456 const Float_t prms = (*fPedestals)[pixid].GetPedestalRms() * TMath::Sqrt((float)fNumHiGainSamples); 457 467 const Float_t prms = (*fPedestals)[pixid].GetPedestalRms() * fSqrtHiGainSamples; 468 469 // 470 // set them in the calibration camera 471 // 458 472 pix.SetPedestal(ped,prms); 459 473 474 // 475 // perform the Gauss fits to the charges 476 // 460 477 pix.FitCharge(); 461 478 479 // 480 // Fill 1-dim histograms with the results 481 // 482 fCalibrations->Fill1DimCharges(pix.GetCharge(),pix.GetErrCharge(), 483 pix.GetSigmaCharge(),pix.GetChargeProb()); 484 485 // 486 // Perform the Gauss fits to the arrival times 487 // 462 488 if (TESTBIT(fFlags,kUseTimeFits)) 463 489 pix.FitTime();
Note:
See TracChangeset
for help on using the changeset viewer.