Changeset 6926 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 04/11/05 18:10:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r6855 r6926 448 448 fIntensCam = (MCalibrationIntensityChargeCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityChargeCam")); 449 449 if (fIntensCam) 450 *fLog << inf << "Found MCalibrationIntensityChargeCam ... " << endl;450 *fLog << inf << "Found MCalibrationIntensityChargeCam... " << flush; 451 451 else 452 452 { … … 455 455 { 456 456 *fLog << err << "Cannot find MCalibrationChargeCam ... abort." << endl; 457 *fLog << err <<"Maybe you forget to call an MFillH for the MHCalibrationChargeCam before..." << endl;457 *fLog << "Maybe you forget to call an MFillH for the MHCalibrationChargeCam before..." << endl; 458 458 return kFALSE; 459 459 } … … 464 464 { 465 465 *fLog << err << "Cannot find MHCalibrationChargeCam ... abort." << endl; 466 *fLog << err <<"Maybe you forget to call an MFillH for the MHCalibrationChargeCam before..." << endl;466 *fLog << "Maybe you forget to call an MFillH for the MHCalibrationChargeCam before..." << endl; 467 467 return kFALSE; 468 468 } … … 470 470 fIntensQE = (MCalibrationIntensityQECam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityQECam")); 471 471 if (fIntensQE) 472 *fLog << inf << "Found MCalibrationIntensityQECam ... " << endl;472 *fLog << inf << "Found MCalibrationIntensityQECam... " << flush; 473 473 else 474 474 { … … 477 477 { 478 478 *fLog << err << "Cannot find MCalibrationQECam ... abort." << endl; 479 *fLog << err <<"Maybe you forget to call an MFillH for the MHCalibrationQECam before..." << endl;479 *fLog << "Maybe you forget to call an MFillH for the MHCalibrationQECam before..." << endl; 480 480 return kFALSE; 481 481 } … … 484 484 fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityBlindCam")); 485 485 if (fIntensBlind) 486 *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << endl;486 *fLog << inf << "Found MCalibrationIntensityBlindCam... " << flush; 487 487 else 488 488 { 489 489 fBlindCam = (MCalibrationBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationBlindCam")); 490 490 if (!fBlindCam) 491 *fLog << warn << GetDescriptor() 492 << ": No MCalibrationBlindCam found... no Blind Pixel method! " << endl; 491 *fLog << "No MCalibrationBlindCam found... no Blind Pixel method!" << endl; 493 492 } 494 493 495 494 fHBlindCam = (MHCalibrationChargeBlindCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeBlindCam")); 496 495 if (!fHBlindCam) 497 *fLog << warn << GetDescriptor() 498 << ": No MHCalibrationChargeBlindCam found... no Blind Pixel method! " << endl; 496 *fLog << "No MHCalibrationChargeBlindCam found... no Blind Pixel method!" << endl; 499 497 500 498 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 501 499 if (fIntensBad) 502 *fLog << inf << "Found MBadPixelsIntensityCam ... " << endl;500 *fLog << inf << "Found MBadPixelsIntensityCam... " << flush; 503 501 else 504 502 { … … 516 514 fPINDiode = (MCalibrationChargePINDiode*)pList->FindObject("MCalibrationChargePINDiode"); 517 515 if (!fPINDiode) 518 *fLog << warn << GetDescriptor() 519 << ": No MCalibrationChargePINDiode found... no PIN Diode method! " << endl; 516 *fLog << "No MCalibrationChargePINDiode found... no PIN Diode method!" << endl; 520 517 521 518 MCalibrationQECam *qecam = fIntensQE … … 688 685 Int_t MCalibrationChargeCalc::Finalize() 689 686 { 690 691 687 fNumHiGainSamples = fSignal->GetNumUsedHiGainFADCSlices(); 692 688 fNumLoGainSamples = fSignal->GetNumUsedLoGainFADCSlices(); … … 739 735 740 736 *fLog << endl; 737 741 738 // 742 739 // The Michele check ... … … 797 794 798 795 *fLog << endl; 799 // 796 797 // 800 798 // Finalize Blind Pixel 801 799 // … … 1128 1126 Bool_t MCalibrationChargeCalc::FinalizeFFactorMethod() 1129 1127 { 1130 1131 1128 MBadPixelsCam *badcam = fIntensBad 1132 1129 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; … … 1156 1153 for (Int_t i=0; i<npixels; i++) 1157 1154 { 1158 1159 1155 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1160 1156 MBadPixelsPix &bad = (*badcam)[i]; … … 1174 1170 const Float_t nphe = pix.GetPheFFactorMethod(); 1175 1171 const Int_t aidx = (*fGeom)[i].GetAidx(); 1176 1177 1172 camphes.Fill(i,nphe); 1178 1173 camphes.SetUsed(i); 1179 1180 1174 areaphes [aidx] += nphe; 1181 1175 areavars [aidx] += nphe*nphe; … … 1752 1746 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor " 1753 1747 << "in the camera with area index: " << i << endl; 1754 *fLog << warn << GetDescriptor() << ":Number of dof.: " << ndf << " is smaller than 2 " << endl;1755 *fLog << warn << GetDescriptor() << ": Will use the simple mean and rms" << endl;1748 *fLog << "Number of dof.: " << ndf << " is smaller than 2 " << endl; 1749 *fLog << "Will use the simple mean and rms." << endl; 1756 1750 delete hist; 1757 1751 continue; … … 1764 1758 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor " 1765 1759 << "in the camera with area index: " << i << endl; 1766 *fLog << warn << GetDescriptor() << ": Fit probability " << prob1760 *fLog << "Fit probability " << prob 1767 1761 << " is smaller than 0.001 " << endl; 1768 *fLog << warn << GetDescriptor() << ": Will use the simple mean and rms" << endl;1762 *fLog << "Will use the simple mean and rms." << endl; 1769 1763 delete hist; 1770 1764 continue;
Note:
See TracChangeset
for help on using the changeset viewer.