Changeset 2832


Ignore:
Timestamp:
01/16/04 14:59:52 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2831 r2832  
    1818
    1919   * mcalib/MCalibrationCalc.cc
     20   * mcalib/MCalibrationPix.cc
     21   * mcalib/MCalibrationCam.cc
    2022     - fixed the warns and errs in fLog's
    2123
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc

    r2831 r2832  
    424424
    425425
    426   *fLog << GetDescriptor() << ": Cut Histogram Edges" << endl;
     426  *fLog << inf << GetDescriptor() << ": Cut Histogram Edges" << endl;
    427427
    428428  //
     
    436436  MCalibrationBlindPix &blindpixel = *(fCalibrations->GetBlindPixel());
    437437
    438   *fLog << GetDescriptor() << ": Fitting the Blind Pixel" << endl;
     438  *fLog << inf << GetDescriptor() << ": Fitting the Blind Pixel" << endl;
    439439
    440440  //
     
    454454    }
    455455 
    456   *fLog << GetDescriptor() << ": Fitting the Normal Pixels" << endl;
     456  *fLog << inf << GetDescriptor() << ": Fitting the Normal Pixels" << endl;
    457457
    458458  //
     
    500500    return kTRUE;
    501501 
    502   *fLog << endl;
     502  *fLog << inf << endl;
    503503  *fLog << dec << setfill(' ') << fCosmics << " Events presumably cosmics" << endl;
    504504
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc

    r2795 r2832  
    248248  int id = 0;
    249249 
    250   *fLog << "Succesfully calibrated pixels:" << endl;
    251   *fLog << endl;
     250  *fLog << all << "Succesfully calibrated pixels:" << endl;
     251  *fLog << all << endl;
    252252
    253253  TIter Next(fPixels);
     
    263263            rsigma = TMath::Sqrt(rsigma);
    264264
    265           *fLog << pix->GetPixId() << " Pedestals: " << pix->GetPed() << " +- " << pix->GetPedRms()
    266                 << " Reduced Charge: " << pix->GetCharge() << " +- "
     265          *fLog << all << pix->GetPixId() << " Pedestals: " << pix->GetPed() << " +- "
     266                << pix->GetPedRms() << " Reduced Charge: " << pix->GetCharge() << " +- "
    267267                << pix->GetSigmaCharge() << " Reduced Sigma: " << rsigma
    268268                << " Nr Phe's: " << pix->GetPheFFactorMethod() << endl;
     
    271271    }
    272272 
    273   *fLog << id << " succesful pixels :-))" << endl;
     273  *fLog << all << id << " succesful pixels :-))" << endl;
    274274  id = 0;
    275275 
    276   *fLog << endl;
    277   *fLog << "Pixels with errors:" << endl;
    278   *fLog << endl;
     276  *fLog << all << endl;
     277  *fLog << all << "Pixels with errors:" << endl;
     278  *fLog << all << endl;
    279279 
    280280  TIter Next2(fPixels);
     
    289289              rsigma = TMath::Sqrt(rsigma);
    290290           
    291             *fLog << pix->GetPixId() << " Pedestals: " << pix->GetPed() << " +- " << pix->GetPedRms()
    292                   << " Reduced Charge: " << pix->GetCharge() << " +- "
    293                 << pix->GetSigmaCharge() << " Reduced Sigma: " << rsigma << endl;
     291            *fLog << all << pix->GetPixId() << " Pedestals: " << pix->GetPed() << " +- "
     292                  << pix->GetPedRms() << " Reduced Charge: " << pix->GetCharge() << " +- "
     293                  << pix->GetSigmaCharge() << " Reduced Sigma: " << rsigma << endl;
    294294            id++;
    295295          }
    296296      }
    297     *fLog << id << " pixels with errors :-((" << endl;
     297    *fLog << all << id << " pixels with errors :-((" << endl;
    298298   
    299299}
     
    455455  fNumPhotInsidePlexiglassAvailable = kTRUE;
    456456
    457   *fLog << endl;
    458   *fLog << mean << " Mean number of Photons for an Inner Pixel: " << fMeanPhotInsidePlexiglass << endl;
    459   *fLog << endl;
     457  *fLog << inf << endl;
     458  *fLog << inf << mean << " Mean number of Photons for an Inner Pixel (inside Plexiglass): "
     459        << fMeanPhotInsidePlexiglass << endl;
     460  *fLog << inf << endl;
    460461
    461462  TIter Next(fPixels);
     
    510511
    511512  fNumPhotOutsidePlexiglassAvailable = kTRUE;
     513
     514  *fLog << inf << endl;
     515  *fLog << inf << mean << " Mean number of Photons for an Inner Pixel (outside Plexiglass): "
     516        << fMeanPhotOutsidePlexiglass << endl;
     517  *fLog << inf << endl;
    512518
    513519  TIter Next(fPixels);
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc

    r2793 r2832  
    178178    fHist->SetLowerFitRange(1.5*fPedRms);
    179179  else
    180     *fLog << warn << "Cannot set lower fit range: Pedestals not available" << endl;
     180    *fLog << warn << "WARNING: Cannot set lower fit range: Pedestals not available" << endl;
    181181
    182182  //
     
    193193      if(!fHist->FitChargeLoGain())
    194194        {
    195           *fLog << warn << "Could not fit Lo Gain charges of pixel " << fPixId << endl;
     195          *fLog << warn << "WARNING: Could not fit Lo Gain charges of pixel " << fPixId << endl;
    196196          //         
    197197          // 5) In case of failure print out the fit results
     
    207207      if(!fHist->FitChargeHiGain())
    208208        {
    209           *fLog << warn << "Could not fit Hi Gain charges of pixel " << fPixId << endl;
     209          *fLog << warn << "WARNING: Could not fit Hi Gain charges of pixel " << fPixId << endl;
    210210          //         
    211211          // 5) In case of failure print out the fit results
     
    227227  if (fCharge <= 0.)
    228228    {
    229       *fLog << warn << "Cannot apply calibration: Mean Fitted Charges are smaller than 0 in pixel "
     229      *fLog << warn << "WARNING: Cannot apply calibration: Mean Fitted Charges are smaller than 0 in pixel "
    230230            << fPixId << endl;
    231231      return kFALSE;
     
    308308      if (fRSigmaSquare <= 0.)
    309309        {
    310           *fLog << warn << "Cannot apply F-Factor calibration: Reduced Sigma smaller than 0 in pixel "
     310          *fLog << warn
     311                << "WARNING: Cannot apply F-Factor calibration: Reduced Sigma smaller than 0 in pixel "
    311312                << fPixId << endl;
    312313          if (fHiGainSaturation)
     
    439440
    440441
     442//
     443// The check returns kTRUE if:
     444//
     445//
     446//
     447Bool_t MCalibrationPix::CheckOscillations()
     448{
     449
     450
     451  return kTRUE;
     452}
     453
     454
    441455
    442456void MCalibrationPix::ApplyLoGainConversion()
     
    492506      if(!fHist->FitTimeLoGain())
    493507        {
    494           *fLog << warn << "Could not fit Lo Gain times of pixel " << fPixId << endl;
     508          *fLog << warn << "WARNING: Could not fit Lo Gain times of pixel " << fPixId << endl;
    495509          fHist->PrintTimeFitResult();
    496510          return kFALSE;
     
    505519      if(!fHist->FitTimeHiGain())
    506520        {
    507           *fLog << warn << "Could not fit Hi Gain times of pixel " << fPixId << endl;
     521          *fLog << warn << "WARNING: Could not fit Hi Gain times of pixel " << fPixId << endl;
    508522          fHist->PrintTimeFitResult();
    509523          return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.