Changeset 2973


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2972 r2973  
    2323     - initialize charges histogram with a bigger range
    2424     - use pedestal information to constrain the pedestal fit ranges
     25
     26   * manalysis/MHPedestalPixel.cc
     27     - initialize charges histogram with a bigger range
    2528
    2629
  • trunk/MagicSoft/Mars/manalysis/MHPedestalPixel.h

    r2951 r2973  
    1717
    1818  const Int_t   fChargeNbins;
     19  Axis_t  fChargeFirst;
     20  Axis_t  fChargeLast;
     21
    1922  const Int_t   fChargevsNbins;
    20 
    2123  const Axis_t  fChargevsNFirst;
    2224  const Axis_t  fChargevsNLast;
    2325 
    24   Axis_t  fChargeFirst;
    25   Axis_t  fChargeLast;
    26 
    2726  TH1F* fHPedestalCharge;               //-> Summed FADC slices
    2827  TH1I* fHPedestalChargevsN;            //-> Summed FADC slices vs Event nr.
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc

    r2931 r2973  
    5858//
    5959MHCalibrationBlindPixel::MHCalibrationBlindPixel(const char *name, const char *title)
    60     :   fBlindPixelChargeNbins(500),
     60    :   fBlindPixelChargeNbins(1000),
    6161        fBlindPixelTimeNbins(32),
    62         fBlindPixelChargevsNbins(1000),
     62        fBlindPixelChargevsNbins(10000),
    6363        fBlindPixelTimeFirst(-0.25),
    6464        fBlindPixelTimeLast(15.75),
     
    7474
    7575    // Create a large number of bins, later we will rebin
    76     fBlindPixelChargefirst = -100.;
    77     fBlindPixelChargelast  = 400.;
     76    fBlindPixelChargefirst = -200.;
     77    fBlindPixelChargelast  = 800.;
    7878
    7979    fHBlindPixelCharge = new TH1F("HBlindPixelCharge","Distribution of Summed FADC Slices",
     
    124124{
    125125 
    126   fBlindPixelChargefirst = -100.;
    127   fBlindPixelChargelast  = 400.;
     126  fBlindPixelChargefirst = -200.;
     127  fBlindPixelChargelast  = 800.;
    128128
    129129  fLambda    = 0.;
     
    151151  fLambdaCheckErr = -1.;
    152152 
     153  fMeanPedestal     = 0.;
     154  fMeanPedestalErr  = 0.;
     155  fSigmaPedestal    = 0.;
     156  fSigmaPedestalErr = 0.;
     157
    153158  fFitFunc = kEPoisson4;
    154159
     
    391396    {
    392397    case kEPoisson4:
    393       //      fSinglePheFit = new TF1("SinglePheFit",&fPoissonKto4,min,max,5);
    394398      fSinglePheFit = new TF1("SinglePheFit",&fPoissonKto4,min,max,6);
    395399      break;
     
    436440     
    437441    case kEPoisson4:
    438       fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,norm);
     442      if (fMeanPedestal && fSigmaPedestal)
     443        fSinglePheFit->SetParameters(lambda_guess,fMeanPedestal,mu_1_guess,fSigmaPedestal,si_1_guess,norm);
     444      else
     445        fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,norm);
     446
    439447      fSinglePheFit->SetParNames("#lambda","#mu_{0}","#mu_{1}","#sigma_{0}","#sigma_{1}","Area");
     448
    440449      fSinglePheFit->SetParLimits(0,0.,1.);
    441       fSinglePheFit->SetParLimits(1,-2.,2.);
     450
     451      if (fMeanPedestal && fSigmaPedestal)
     452        fSinglePheFit->SetParLimits(1,fMeanPedestal-fMeanPedestalErr,fMeanPedestal+fMeanPedestalErr);
     453      else
     454        fSinglePheFit->SetParLimits(1,-3.,0.);
     455
    442456      fSinglePheFit->SetParLimits(2,(max-min)/2.,(max-0.05*(max-min)));
    443       fSinglePheFit->SetParLimits(3,1.0,(max-min)/2.0);
     457
     458      if (fMeanPedestal && fSigmaPedestal)
     459        fSinglePheFit->SetParLimits(3,fSigmaPedestal-fSigmaPedestalErr,fSigmaPedestal+fSigmaPedestalErr);
     460      else
     461        fSinglePheFit->SetParLimits(3,1.0,(max-min)/2.0);
     462
    444463      fSinglePheFit->SetParLimits(4,1.0,(max-min)/2.5);
    445464      fSinglePheFit->SetParLimits(5,norm-0.5,norm+0.5);
Note: See TracChangeset for help on using the changeset viewer.