Ignore:
Timestamp:
02/09/04 22:50:52 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3074 r3075  
    6161const Int_t   MHCalibrationPixel::fNDFLimit          = 5;
    6262
    63 const Axis_t  MHCalibrationPixel::fMaxFreq           = 30.5;
    6463const Axis_t  MHCalibrationPixel::fMinFreq           = 0.;
    65 const Int_t   MHCalibrationPixel::fPSDNbins          = 30;
     64const Int_t   MHCalibrationPixel::fPSDNbins          = 50;
    6665 
    6766// --------------------------------------------------------------------------
     
    260259  //
    261260 
    262   // This cuts only the non-used zero's, but MFFT will cut the rest
     261  // This cuts only the non-used zero's, but MFFT will later cut the rest
    263262  CutArrayBorder(fHiGains);
    264263  CutArrayBorder(fLoGains); 
    265264
    266 
    267265  MFFT fourier;
    268266
     
    272270  Int_t entries;
    273271  TArrayF *array;
    274  
     272
     273  const Double_t max_freq = (fChargeSigma > 0.) ? fChargeSigma*0.2 : 2.;
     274  const Double_t min_freq = 0.;
     275
    275276  if (IsUseLoGain())
    276277    {
    277278      fHPSD = new TH1F(Form("%s%d","HPSD",fPixId),
    278279                       Form("%s%s","Power Spectrum Density Projection ","LoGain"),
    279                        fPSDNbins,fMinFreq,fMaxFreq);
     280                       fPSDNbins,min_freq,max_freq);
    280281     
    281282      array = fPSDLoGain;
     
    286287      fHPSD = new TH1F(Form("%s%d","HPSD",fPixId),
    287288                       Form("%s%s","Power Spectrum Density Projection ","HiGain"),
    288                        fPSDNbins,fMinFreq,fMaxFreq);
     289                       fPSDNbins,min_freq,max_freq);
    289290     
    290291      array = fPSDHiGain;
     
    305306  fPSDExpFit->SetParameters(area_guess,10.);
    306307  fPSDExpFit->SetParNames("Area","slope");
    307   fPSDExpFit->SetParLimits(0,0.,3.*area_guess);
    308   fPSDExpFit->SetParLimits(1,0.,20.);
    309   fPSDExpFit->SetRange(fMinFreq,fMaxFreq);
     308  fPSDExpFit->SetParLimits(0,0.,20.*area_guess);
     309  fPSDExpFit->SetParLimits(1,0.,30.);
     310  fPSDExpFit->SetRange(min_freq,max_freq);
    310311
    311312  fHPSD->Fit(fPSDExpFit,"RQL0");
     
    351352
    352353  const Int_t diff = fChargeXaxis->GetSize()-n;
     354
    353355  fChargeXaxis->Set(n);
    354356  if (diff < 0)
    355     for (Int_t i=n;i<n+diff;i++)
     357    for (Int_t i=n-1;i>n-diff-1;i--)
    356358      fChargeXaxis->AddAt((Float_t)i,i);
    357359}
     
    582584 
    583585  TCanvas *c = MH::MakeDefCanvas(this,600,900);
     586  c->SetBit(kCanDelete);
    584587 
    585588  c->Divide(2,5);
     
    714717 
    715718  gStyle->SetOptStat(111111);
     719  gStyle->SetOptFit();
    716720  gPad->SetTicks(); 
    717721
     
    729733  c->Modified();
    730734  c->Update();
     735
     736  c->Iconify();
    731737 
    732738  return;
Note: See TracChangeset for help on using the changeset viewer.