Ignore:
Timestamp:
02/09/09 11:30:54 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc

    r8907 r9308  
    9090
    9191#include "MFFT.h"
     92#include "MString.h"
    9293#include "MArrayF.h"
    9394
     
    320321  fPowerSpectrum     = fourier.PowerSpectrumDensity(&fEvents);
    321322  fHPowerProbability = ProjectArray(*fPowerSpectrum, fPowerProbabilityBins,
    322                                     Form("%s%s","PowerProb",GetName()),
     323                                    MString::Format("PowerProb%s", GetName()),
    323324                                    "Probability of Power occurrance");
    324325  fHPowerProbability->SetXTitle("P(f)");
     
    332333  const Double_t xmax = fHPowerProbability->GetXaxis()->GetXmax();
    333334
    334   fFExpFit = new TF1("FExpFit","exp([0]-[1]*x)",0.,xmax);
     335  fFExpFit = new TF1("","exp([0]-[1]*x)",0.,xmax);
     336  fFExpFit->SetName("FExpFit");
     337  gROOT->GetListOfFunctions()->Remove(fFExpFit);
     338
    335339
    336340  const Double_t slope_guess  = (TMath::Log(fHPowerProbability->GetEntries())+1.)/xmax;
Note: See TracChangeset for help on using the changeset viewer.