Changeset 3073 for trunk


Ignore:
Timestamp:
02/09/04 17:57:31 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h

    r3065 r3073  
    3131
    3232  MGeomCam             *fGeomCam;             //! Need geom cam to know which pixel in inner or outer
    33  
     33
    3434  TH1D* fOffsets;                             //!
    3535  TH1D* fSlopes;                              //!
  • 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");
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h

    r3055 r3073  
    2626  static const Int_t   fNDFLimit; 
    2727
    28   static const Axis_t  fNyquistFreq;
     28  static const Axis_t  fMaxFreq;
    2929  static const Axis_t  fMinFreq;
    3030  static const Int_t   fPSDNbins;
  • trunk/MagicSoft/Mars/mtools/MFFT.cc

    r3054 r3073  
    680680  //
    681681  c02 = (fDataF[0]*fDataF[0]);
    682   newarray->AddAt(c02/dim2,0);
     682  //  newarray->AddAt(c02/dim2,0);
    683683  //
    684684  // 2) P(k) = 1/(N*N) (|C(k)|*|C(k)|))
    685685  //
    686   for (Int_t k=0;k<dim05-1;k++)
     686  for (Int_t k=1;k<dim05-1;k++)
    687687    {
    688688      const Int_t k2 = k+k;
     
    733733  // 2) P(k) = 1/(N*N) (|C(k)|*|C(k)|))
    734734  //
    735   for (Int_t k=0;k<dim05-1;k++)
     735  for (Int_t k=1;k<dim05-1;k++)
    736736    {
    737737      const Int_t k2 = k+k;
Note: See TracChangeset for help on using the changeset viewer.