Ignore:
Timestamp:
04/11/05 18:10:00 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r6855 r6926  
    448448  fIntensCam = (MCalibrationIntensityChargeCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityChargeCam"));
    449449  if (fIntensCam)
    450     *fLog << inf << "Found MCalibrationIntensityChargeCam ... " << endl;
     450    *fLog << inf << "Found MCalibrationIntensityChargeCam... " << flush;
    451451  else
    452452    {
     
    455455        {
    456456          *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;
    458458          return kFALSE;
    459459        }
     
    464464    {
    465465      *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;
    467467      return kFALSE;
    468468    }
     
    470470  fIntensQE = (MCalibrationIntensityQECam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityQECam"));
    471471  if (fIntensQE)
    472     *fLog << inf << "Found MCalibrationIntensityQECam ... " << endl;
     472    *fLog << inf << "Found MCalibrationIntensityQECam... " << flush;
    473473  else
    474474    {
     
    477477        {
    478478          *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;
    480480          return kFALSE;
    481481        }
     
    484484  fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityBlindCam"));
    485485  if (fIntensBlind)
    486     *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << endl;
     486    *fLog << inf << "Found MCalibrationIntensityBlindCam... " << flush;
    487487  else
    488488    {
    489489      fBlindCam = (MCalibrationBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationBlindCam"));
    490490      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;
    493492    }
    494493 
    495494  fHBlindCam = (MHCalibrationChargeBlindCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeBlindCam")); 
    496495  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;
    499497
    500498  fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam"));
    501499  if (fIntensBad)
    502     *fLog << inf << "Found MBadPixelsIntensityCam ... " << endl;
     500    *fLog << inf << "Found MBadPixelsIntensityCam... " << flush;
    503501  else
    504502    {
     
    516514  fPINDiode = (MCalibrationChargePINDiode*)pList->FindObject("MCalibrationChargePINDiode");
    517515  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;
    520517 
    521518  MCalibrationQECam     *qecam     = fIntensQE     
     
    688685Int_t MCalibrationChargeCalc::Finalize()
    689686{
    690  
    691687  fNumHiGainSamples  =  fSignal->GetNumUsedHiGainFADCSlices();
    692688  fNumLoGainSamples  =  fSignal->GetNumUsedLoGainFADCSlices();
     
    739735
    740736  *fLog << endl; 
     737
    741738  //
    742739  // The Michele check ...
     
    797794
    798795  *fLog << endl;
    799   //
     796
     797  //
    800798  // Finalize Blind Pixel
    801799  //
     
    11281126Bool_t MCalibrationChargeCalc::FinalizeFFactorMethod()
    11291127{
    1130 
    11311128  MBadPixelsCam         *badcam    = fIntensBad
    11321129    ? (MBadPixelsCam*)        fIntensBad->GetCam()  : fBadPixels;
     
    11561153  for (Int_t i=0; i<npixels; i++)
    11571154    {
    1158      
    11591155      MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i];
    11601156      MBadPixelsPix         &bad =                         (*badcam)[i];
     
    11741170      const Float_t nphe  = pix.GetPheFFactorMethod();
    11751171      const Int_t   aidx  = (*fGeom)[i].GetAidx();
    1176 
    11771172      camphes.Fill(i,nphe);
    11781173      camphes.SetUsed(i);
    1179 
    11801174      areaphes    [aidx] += nphe;
    11811175      areavars    [aidx] += nphe*nphe;
     
    17521746          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor "
    17531747                << "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;
    17561750          delete hist;
    17571751          continue;
     
    17641758          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor "
    17651759                << "in the camera with area index: " << i << endl;
    1766           *fLog << warn << GetDescriptor() << ": Fit probability " << prob
     1760          *fLog << "Fit probability " << prob
    17671761                << " 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;
    17691763          delete hist;
    17701764          continue;
Note: See TracChangeset for help on using the changeset viewer.