Ignore:
Timestamp:
02/09/04 17:57:31 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3061 r3073  
    6161const Int_t   MHCalibrationPixel::fNDFLimit          = 5;
    6262
    63 const Axis_t  MHCalibrationPixel::fNyquistFreq       = 1.0;
     63const Axis_t  MHCalibrationPixel::fMaxFreq           = 3.5;
    6464const Axis_t  MHCalibrationPixel::fMinFreq           = 0.;
    6565const Int_t   MHCalibrationPixel::fPSDNbins          = 30;
     
    7979        fChargeXaxis(NULL),
    8080        fPSDXaxis(NULL),
    81         fCurrentSize(1024),
    82         fFitLegend(NULL)
     81        fFitLegend(NULL),
     82        fCurrentSize(1024)
    8383{
    8484
     
    260260      fHPSD = new TH1F(Form("%s%d","HPSD",fPixId),
    261261                       Form("%s%s","Power Spectrum Density Projection ","LoGain"),
    262                        fPSDNbins,fMinFreq,fNyquistFreq);
     262                       fPSDNbins,fMinFreq,fMaxFreq);
    263263     
    264264      array = fPSDLoGain;
     
    269269      fHPSD = new TH1F(Form("%s%d","HPSD",fPixId),
    270270                       Form("%s%s","Power Spectrum Density Projection ","HiGain"),
    271                        fPSDNbins,fMinFreq,fNyquistFreq);
     271                       fPSDNbins,fMinFreq,fMaxFreq);
    272272     
    273273      array = fPSDHiGain;
     
    286286  fPSDExpFit = new TF1(Form("%s%d","PSDExpFit",fPixId),"[0]*exp(-[1]*x)",0.,1.);
    287287
    288   fPSDExpFit->SetParameters(entries,10.);
     288  fPSDExpFit->SetParameters(area_guess,10.);
    289289  fPSDExpFit->SetParNames("Area","slope");
    290290  fPSDExpFit->SetParLimits(0,0.,3.*area_guess);
    291   fPSDExpFit->SetParLimits(1,5.,20.);
    292   fPSDExpFit->SetRange(fMinFreq,fNyquistFreq);
     291  fPSDExpFit->SetParLimits(1,0.,20.);
     292  fPSDExpFit->SetRange(fMinFreq,fMaxFreq);
    293293
    294294  fHPSD->Fit(fPSDExpFit,"RQL0");
     
    638638  fHAbsTimeLoGain->Draw(opt);
    639639
    640   CutArrayBorder(fHiGains);
     640  //  CutArrayBorder(fHiGains);
    641641  CreateChargeXaxis(fHiGains->GetSize());
    642642
     
    651651 
    652652  CutArrayBorder(fLoGains); 
    653   CreateChargeXaxis(fHiGains->GetSize());
     653  CreateChargeXaxis(fLoGains->GetSize());
    654654
    655655  c->cd(8);
     
    658658                           fChargeXaxis->GetArray(),
    659659                           fLoGains->GetArray()); 
    660   gr2->SetTitle("Evolution of HiGain charges with event number");
     660  gr2->SetTitle("Evolution of LoGain charges with event number");
    661661  gr2->SetBit(kCanDelete);
    662662  gr2->Draw("AL");
     
    668668 
    669669  TArrayF *array;
     670  TString title = "Power Spectrum Density ";
    670671
    671672  if(IsUseLoGain())
     
    674675        return;
    675676      array = fPSDLoGain;
     677      title += "LoGain";
    676678    }
    677679  else
     
    680682        return;
    681683      array = fPSDHiGain;
     684      title += "HiGain";
    682685    }
    683686 
     
    686689
    687690  TGraph *gr3 = new TGraph(fPSDXaxis->GetSize(),fPSDXaxis->GetArray(),array->GetArray());
    688   gr3->SetTitle("Power Spectrum Density");
     691  gr3->SetTitle(title.Data());
    689692  gr3->SetBit(kCanDelete);
    690693  gr3->Draw("AL");
Note: See TracChangeset for help on using the changeset viewer.