Changeset 3434 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/07/04 20:09:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3427 r3434 507 507 { 508 508 509 if (!IsFitted())510 return kFALSE;511 512 509 if (GetMeanCharge() < fChargeLimit*GetPedRms()) 513 510 { … … 515 512 << fChargeLimit << " Pedestal RMS in Pixel " << fPixId << endl; 516 513 if (bad) 517 bad->SetC alcChargePedestal();514 bad->SetChargeIsPedestal(); 518 515 else 519 516 return kFALSE; 520 517 } 521 else522 if (bad)523 bad->SetNoCalcChargePedestal();524 525 518 526 519 if (GetMeanChargeErr() < fChargeErrLimit) … … 529 522 << fChargeErrLimit << " in Pixel " << fPixId << endl; 530 523 if (bad) 531 bad->Set NoCalcChargeErrValid();524 bad->SetChargeErrNotValid(); 532 525 else 533 526 return kFALSE; 534 527 } 535 else536 if (bad)537 bad->SetCalcChargeErrValid();538 528 539 529 if (GetMeanCharge() < fChargeRelErrLimit*GetMeanChargeErr()) … … 542 532 << fChargeRelErrLimit << "* its error in Pixel " << fPixId << endl; 543 533 if (bad) 544 bad->Set NoCalcChargeRelErrValid();534 bad->SetChargeRelErrNotValid(); 545 535 else 546 536 return kFALSE; 547 537 } 548 else549 if (bad)550 bad->SetCalcChargeRelErrValid();551 538 552 539 if (GetSigmaCharge() < GetPedRms()) … … 555 542 << fPixId << endl; 556 543 if (bad) 557 bad->SetNoCalcChargeSigmaValid(); 544 { 545 *fLog << err << "HERERERERE" << endl; 546 bad->SetChargeSigmaNotValid(); 547 } 558 548 else 559 549 return kFALSE; 560 550 } 561 else 562 if (bad)563 bad->SetCalcChargeSigmaValid();551 552 if (bad->IsChargeSigmaNotValid()) 553 *fLog << err << " HERE " << endl; 564 554 565 555 return kTRUE; … … 585 575 return kFALSE; 586 576 } 587 else588 bad->SetNoMeanTimeInFirstBin();589 577 590 578 if ( fAbsTimeMean > upperedge-1.) … … 596 584 return kFALSE; 597 585 } 598 else599 bad->SetNoMeanTimeInLastBin();600 586 601 587 return kTRUE; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3433 r3434 549 549 FinalizeLoGainHists(*fAverageLoGainOuterPix,*fCam->GetAverageOuterPix(),*fCam->GetAverageOuterBadPix()); 550 550 551 fCam->GetAverageInnerPix()->SetSigmaCharge (fCam->GetAverageInnerPix()->GetSigmaCharge() *TMath::Sqrt((Float_t)fNumInnerPixels)); 552 fCam->GetAverageOuterPix()->SetSigmaCharge (fCam->GetAverageOuterPix()->GetSigmaCharge() *TMath::Sqrt((Float_t)fNumOuterPixels)); 553 fCam->GetAverageInnerPix()->SetSigmaChargeErr(fCam->GetAverageInnerPix()->GetSigmaChargeErr()*TMath::Sqrt((Float_t)fNumInnerPixels)); 554 fCam->GetAverageOuterPix()->SetSigmaChargeErr(fCam->GetAverageOuterPix()->GetSigmaChargeErr()*TMath::Sqrt((Float_t)fNumOuterPixels)); 551 fCam->GetAverageInnerPix()->SetSigmaCharge (fCam->GetAverageInnerPix()->GetSigmaCharge() 552 *TMath::Sqrt((Float_t)fNumInnerPixels)); 553 fCam->GetAverageOuterPix()->SetSigmaCharge (fCam->GetAverageOuterPix()->GetSigmaCharge() 554 *TMath::Sqrt((Float_t)fNumOuterPixels)); 555 fCam->GetAverageInnerPix()->SetSigmaChargeErr(fCam->GetAverageInnerPix()->GetSigmaChargeErr() 556 *TMath::Sqrt((Float_t)fNumInnerPixels)); 557 fCam->GetAverageOuterPix()->SetSigmaChargeErr(fCam->GetAverageOuterPix()->GetSigmaChargeErr() 558 *TMath::Sqrt((Float_t)fNumOuterPixels)); 555 559 556 560 return kTRUE; … … 575 579 // 2) Fit the Hi Gain histograms with a Gaussian 576 580 // 577 if (hist.FitGaus()) 578 bad.SetHiGainFitted(); 581 if (!hist.FitGaus()) 579 582 // 580 583 // 3) In case of failure set the bit Fitted to false and take histogram means and RMS 581 584 // 582 else if (hist.RepeatFit()) 583 bad.SetHiGainFitted(); 584 else 585 if (!hist.RepeatFit()) 585 586 { 586 587 hist.BypassFit(); 587 bad.Set NoHiGainFitted();588 bad.SetHiGainNotFitted(); 588 589 } 589 590 … … 635 636 // 2) Fit the Lo Gain histograms with a Gaussian 636 637 // 637 if (hist.FitGaus()) 638 bad.SetLoGainFitted(); 638 if (!hist.FitGaus()) 639 639 // 640 640 // 3) In case of failure set the bit kFitted to false and take histogram means and RMS 641 641 // 642 else if (hist.RepeatFit()) 643 bad.SetLoGainFitted(); 644 else 645 { 646 hist.BypassFit(); 647 bad.SetNoLoGainFitted(); 648 } 642 if (!hist.RepeatFit()) 643 { 644 hist.BypassFit(); 645 bad.SetLoGainNotFitted(); 646 } 649 647 650 648 //
Note:
See TracChangeset
for help on using the changeset viewer.