Changeset 2719 for trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc
- Timestamp:
- 12/18/03 18:03:21 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc
r2715 r2719 206 206 } 207 207 208 // --------------------------------------------------------------------------209 //210 // Return TRUE if:211 //212 // 1) Pixel is inside the range of the TClonesArray213 // 2) Pixel has a fitted charge greater than 3*PedRMS214 // 3) Pixel has a charge sigma bigger than its Pedestal RMS215 // 4) Pixel has a fit error greater than 0.216 // 5) Pixel has a fit Probability greater than 0.0001217 // 6) If FitTimes is used,218 // the mean arrival time is at least 1.5 slices from the edge219 //220 Bool_t MCalibrationCam::IsPixelFitValid(Int_t idx) const221 {222 223 if (!CheckBounds(idx))224 return kFALSE;225 226 return (*this)[idx].IsFitValid();227 }228 208 229 209 // -------------------------------------- … … 397 377 } 398 378 379 380 399 381 Bool_t MCalibrationCam::CalcNumPhotInsidePlexiglass() 400 382 { … … 442 424 { 443 425 if((pix->GetCharge() > 0.) && (fMeanPhotInsidePlexiglass > 0.)) 444 pix->SetConversionBlindPixelMethod(fMeanPhotInsidePlexiglass/pix->GetCharge(), 0., 0.); 426 { 427 428 Float_t conversion = fMeanPhotInsidePlexiglass/pix->GetCharge(); 429 Float_t conversionerr = 0.; 430 Float_t conversionsigma = 0.; 431 pix->SetConversionBlindPixelMethod(conversion, conversionerr, conversionsigma); 432 433 if (conversionerr/conversion < 0.1) 434 pix->SetBlindPixelMethodValid(); 435 } 445 436 } 446 437 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.