Changeset 2980


Ignore:
Timestamp:
01/30/04 10:50:22 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

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

    r2973 r2980  
    417417 
    418418  const Double_t mu_0_guess = maximum_bin;
    419   const Double_t si_0_guess = 20.;
    420   const Double_t mu_1_guess = mu_0_guess + 50.;
     419  const Double_t si_0_guess = 40.;
     420  const Double_t mu_1_guess = mu_0_guess + 100.;
    421421  const Double_t si_1_guess = si_0_guess + si_0_guess;
    422422  // Michele
     
    440440     
    441441    case kEPoisson4:
    442       if (fMeanPedestal && fSigmaPedestal)
     442      if ((fMeanPedestal) && (fSigmaPedestal))
    443443        fSinglePheFit->SetParameters(lambda_guess,fMeanPedestal,mu_1_guess,fSigmaPedestal,si_1_guess,norm);
    444444      else
     
    449449      fSinglePheFit->SetParLimits(0,0.,1.);
    450450
    451       if (fMeanPedestal && fSigmaPedestal)
    452         fSinglePheFit->SetParLimits(1,fMeanPedestal-fMeanPedestalErr,fMeanPedestal+fMeanPedestalErr);
     451      if ((fMeanPedestal) && (fSigmaPedestal))
     452        fSinglePheFit->SetParLimits(1,
     453                                    fMeanPedestal-1.*fMeanPedestalErr,
     454                                    fMeanPedestal+1.*fMeanPedestalErr);
    453455      else
    454456        fSinglePheFit->SetParLimits(1,-3.,0.);
    455457
    456       fSinglePheFit->SetParLimits(2,(max-min)/2.,(max-0.05*(max-min)));
    457 
    458       if (fMeanPedestal && fSigmaPedestal)
    459         fSinglePheFit->SetParLimits(3,fSigmaPedestal-fSigmaPedestalErr,fSigmaPedestal+fSigmaPedestalErr);
     458      fSinglePheFit->SetParLimits(2,(max-min)/2.,max);
     459
     460      if ((fMeanPedestal) && (fSigmaPedestal))
     461        fSinglePheFit->SetParLimits(3,
     462                                    fSigmaPedestal-3.*fSigmaPedestalErr,
     463                                    fSigmaPedestal+3.*fSigmaPedestalErr);
    460464      else
    461465        fSinglePheFit->SetParLimits(3,1.0,(max-min)/2.0);
    462466
    463       fSinglePheFit->SetParLimits(4,1.0,(max-min)/2.5);
     467      fSinglePheFit->SetParLimits(4,1.0,(max-min));
    464468      fSinglePheFit->SetParLimits(5,norm-0.5,norm+0.5);
    465469      break;
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc

    r2950 r2980  
    5959        fChargeNbinsLoGain(1010),
    6060        fTimeNbins(32),
    61         fChargevsNbins(1000),
     61        fChargevsNbins(5000),
    6262        fTimeFirst(-0.25),
    6363        fTimeLast(15.75),
Note: See TracChangeset for help on using the changeset viewer.