Changeset 7058


Ignore:
Timestamp:
05/18/05 18:38:53 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7055 r7058  
    5454       more by calculating the number of steps from the rise and fall time.
    5555       this should at least give consistent results on the same machine!
     56
     57   * mbase/MContinue.cc:
     58     - fixed a namimg problem of the filter when it is added to
     59       the tasklist and has the same name as MContinue
     60
     61   * mcalib/MCalibrationChargeCalc.cc:
     62     - for some sceen output the manipulator (inf) was missing
     63
     64   * msignal/MExtractPINDiode.cc:
     65     - fixed a problem with the fit (it always tried to display
     66       the fit-function somewhere)
    5667
    5768
  • trunk/MagicSoft/Mars/mbase/MContinue.cc

    r7023 r7058  
    148148    }
    149149
     150    if ((TString)GetFilter()->GetName()==fName)
     151        GetFilter()->SetName(Form("MF:%s", fName.Data()));
     152
    150153    if (!fTaskList->AddToListBefore(GetFilter(), this))
    151154    {
     
    295298    MTask::SetFilter(f);
    296299
    297     f->SetName(Form("MF:%s", fName.Data()));
    298 
    299300    return kTRUE;
    300301}
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r7028 r7058  
    501501      fBlindCam = (MCalibrationBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationBlindCam"));
    502502      if (!fBlindCam)
    503         *fLog << "No MCalibrationBlindCam found... no Blind Pixel method!" << endl;
     503        *fLog << inf << "No MCalibrationBlindCam found... no Blind Pixel method!" << endl;
    504504    }
    505505 
    506506  fHBlindCam = (MHCalibrationChargeBlindCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeBlindCam")); 
    507507  if (!fHBlindCam)
    508     *fLog << "No MHCalibrationChargeBlindCam found... no Blind Pixel method!" << endl;
     508    *fLog << inf << "No MHCalibrationChargeBlindCam found... no Blind Pixel method!" << endl;
    509509
    510510  fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam"));
     
    526526  fPINDiode = (MCalibrationChargePINDiode*)pList->FindObject("MCalibrationChargePINDiode");
    527527  if (!fPINDiode)
    528     *fLog << "No MCalibrationChargePINDiode found... no PIN Diode method!" << endl;
     528    *fLog << inf << "No MCalibrationChargePINDiode found... no PIN Diode method!" << endl;
    529529 
    530530  MCalibrationQECam     *qecam     = fIntensQE     
  • trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc

    r7043 r7058  
    354354    }
    355355
    356   fSlices->Fit("gaus", "RQ", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit);
    357  
    358   TF1 *gausfunc = fSlices->GetFunction("gaus");
    359 
    360   fPINDiode->SetExtractedSignal(gausfunc->GetParameter(0), gausfunc->GetParError(0));
    361   fPINDiode->SetExtractedTime  (gausfunc->GetParameter(1), gausfunc->GetParError(1));
    362   fPINDiode->SetExtractedSigma (gausfunc->GetParameter(2), gausfunc->GetParError(2));
    363   fPINDiode->SetExtractedChi2  (gausfunc->GetChisquare());
     356  // Must be created manually. Otherwise we cannot use N-option
     357  TF1 gaus("func", "gaus");
     358
     359  fSlices->Fit(&gaus, "QN", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit);
     360 
     361  fPINDiode->SetExtractedSignal(gaus.GetParameter(0), gaus.GetParError(0));
     362  fPINDiode->SetExtractedTime  (gaus.GetParameter(1), gaus.GetParError(1));
     363  fPINDiode->SetExtractedSigma (gaus.GetParameter(2), gaus.GetParError(2));
     364  fPINDiode->SetExtractedChi2  (gaus.GetChisquare());
    364365  fPINDiode->SetReadyToSave();
    365366
Note: See TracChangeset for help on using the changeset viewer.