Changeset 3418 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/07/04 14:27:40 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3417 r3418 275 275 return kFALSE; 276 276 277 fCam->SetPINDiode(fPINDiode);278 279 277 fBlindPixel = (MCalibrationChargeBlindPix*)pList->FindCreateObj("MCalibrationChargeBlindPix"); 280 278 if (!fBlindPixel) 281 279 return kFALSE; 282 280 281 fCam->SetPINDiode(fPINDiode); 283 282 fCam->SetBlindPixel(fBlindPixel); 284 283 … … 333 332 334 333 fCam->SetGeomCam(fGeom); 335 fCam->SetBadPixelsCam(fBadPixels);336 334 337 335 fNumHiGainSamples = fSignals->GetNumUsedHiGainFADCSlices(); … … 392 390 393 391 MCalibrationChargePix &pix = (*fCam)[pixid]; 392 MBadPixelsPix &bad = (*fBadPixels)[pixid]; 393 394 // 395 // Check if the pixel has been excluded from the fits 396 // 397 if (pix.IsExcluded()) 398 continue; 394 399 395 400 // … … 400 405 const Float_t num = TMath::Sqrt((Float_t)fPedestals->GetTotalEntries()); 401 406 402 //403 // Check if the pixel has been excluded from the fits404 //405 if (pix.IsExcluded())406 continue;407 408 407 if (fGeom->GetPixRatio(pixid) == 1.) 409 408 { … … 436 435 } 437 436 438 if (!pix.CheckChargeValidity( ) || !pix.CheckTimeValidity())437 if (!pix.CheckChargeValidity(&bad) || !pix.CheckTimeValidity(&bad)) 439 438 continue; 440 439 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3356 r3418 90 90 #include "MLogManip.h" 91 91 92 #include "MBadPixelsPix.h" 93 92 94 ClassImp(MCalibrationChargePix); 93 95 … … 507 509 508 510 509 Bool_t MCalibrationChargePix::IsExcluded() 511 Bool_t MCalibrationChargePix::IsExcluded() const 510 512 { 511 513 return TESTBIT(fFlags,kExcluded); … … 576 578 // 4) Pixel has a charge sigma bigger than its Pedestal RMS 577 579 // 578 Bool_t MCalibrationChargePix::CheckChargeValidity( )580 Bool_t MCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad) 579 581 { 580 582 … … 618 620 // The mean arrival time is at least 1.0 slices from the used edge slices 619 621 // 620 Bool_t MCalibrationChargePix::CheckTimeValidity( )622 Bool_t MCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad) 621 623 { 622 624 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3356 r3418 6 6 #endif 7 7 8 class MBadPixelsPix; 8 9 class MCalibrationChargePix : public MParContainer 9 10 { … … 297 298 void ApplyLoGainConversion(); 298 299 299 Bool_t CheckChargeValidity ();300 Bool_t CheckTimeValidity ();300 Bool_t CheckChargeValidity ( MBadPixelsPix *bad=NULL ); 301 Bool_t CheckTimeValidity ( MBadPixelsPix *bad=NULL ); 301 302 Bool_t CalcReducedSigma(); 302 303 Bool_t CalcFFactorMethod();
Note:
See TracChangeset
for help on using the changeset viewer.