Changeset 4198 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 05/26/04 18:24:22 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4166 r4198 227 227 const Float_t MCalibrationChargeCalc::fgChargeRelErrLimit = 1.; 228 228 const Float_t MCalibrationChargeCalc::fgLambdaErrLimit = 0.2; 229 const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit = 0. 2;229 const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit = 0.5; 230 230 const Float_t MCalibrationChargeCalc::fgPheErrLimit = 3.5; 231 231 const Float_t MCalibrationChargeCalc::fgFFactorErrLimit = 3.; … … 600 600 *fLog << err << GetDescriptor() << ": Or, maybe, you have used a pedestal run " 601 601 << "instead of a calibration run " << endl; 602 return kFALSE;602 return kFALSE; 603 603 } 604 604 … … 1117 1117 const Float_t lambdacheck = fBlindPixel->GetLambdaCheck(); 1118 1118 1119 if (2.*(lambdacheck-lambda)/(lambdacheck+lambda) < fLambdaCheckLimit) 1120 { 1121 *fLog << warn << GetDescriptor() << ": Lambda and Lambda-Check differ by more than " 1122 << fLambdaCheckLimit << " in the Blind Pixel " << endl; 1123 return kFALSE; 1124 } 1125 1126 if (lambdaerr < fLambdaErrLimit) 1127 { 1128 *fLog << warn << GetDescriptor() << ": Error of Fitted Lambda is greater than " 1129 << fLambdaErrLimit << " in Blind Pixel " << endl; 1119 if (2.*(lambdacheck-lambda)/(lambdacheck+lambda) > fLambdaCheckLimit) 1120 { 1121 *fLog << warn << GetDescriptor() 1122 << Form("%s%4.2f%s%4.2f%s%4.2f%s",": Lambda: ",lambda," and Lambda-Check: ", 1123 lambdacheck," differ by more than ",fLambdaCheckLimit," in the Blind Pixel ") 1124 << endl; 1125 return kFALSE; 1126 } 1127 1128 if (lambdaerr > fLambdaErrLimit) 1129 { 1130 *fLog << warn << GetDescriptor() 1131 << Form("%s%4.2f%s%4.2f%s",": Error of Fitted Lambda: ",lambdaerr," is greater than ", 1132 fLambdaErrLimit," in Blind Pixel ") << endl; 1130 1133 return kFALSE; 1131 1134 } … … 1376 1379 continue; 1377 1380 } 1378 1381 1379 1382 if (!fBlindPixel->IsFluxInsidePlexiglassAvailable()) 1380 1383 { … … 1385 1388 MBadPixelsPix &bad = (*fBadPixels)[i]; 1386 1389 1387 if ( !bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun))1390 if (bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) 1388 1391 { 1389 1392 qepix.SetBlindPixelMethodValid(kFALSE, fPulserColor); … … 1397 1400 / fBlindPixel->GetFluxInsidePlexiglass() 1398 1401 / geo.GetA() 1399 * fQECam->GetPlexiglassQE();1402 * fQECam->GetPlexiglassQE(); 1400 1403 1401 1404 const Float_t qerelvar = fBlindPixel->GetFluxInsidePlexiglassRelVar() … … 1405 1408 qepix.SetQEBlindPixel ( qe , fPulserColor ); 1406 1409 qepix.SetQEBlindPixelVar ( qerelvar*qe*qe, fPulserColor ); 1407 qepix.UpdateBlindPixelMethod(); 1410 qepix.SetBlindPixelMethodValid( kTRUE , fPulserColor ); 1411 1412 if (!qepix.UpdateBlindPixelMethod()) 1413 *fLog << warn << GetDescriptor() 1414 << ": Cannot update Quantum efficiencies with the Blind Pixel Method" << endl; 1408 1415 } 1409 1416 } … … 1471 1478 qepix.SetQEPINDiode ( qe , fPulserColor ); 1472 1479 qepix.SetQEPINDiodeVar ( qerelvar*qe*qe, fPulserColor ); 1473 qepix.UpdateBlindPixelMethod(); 1480 qepix.SetPINDiodeMethodValid( kTRUE , fPulserColor ); 1481 1482 if (!qepix.UpdatePINDiodeMethod()) 1483 *fLog << warn << GetDescriptor() 1484 << ": Cannot update Quantum efficiencies with the PIN Diode Method" << endl; 1474 1485 } 1475 1486 }
Note:
See TracChangeset
for help on using the changeset viewer.