Ignore:
Timestamp:
06/02/08 09:52:26 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc

    r8709 r8907  
    3737#include <TF1.h>
    3838#include <TLine.h>
     39#include <TMath.h>
    3940#include <TCanvas.h>
    4041#include <TStyle.h>
  • trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc

    r8883 r8907  
    282282Double_t MMcSpectrumWeight::GetSpecNewIntegral(Double_t emin, Double_t emax) const
    283283{
    284     TF1 funcnew("Dummy", GetFormulaSpecNewX());
     284    TF1 funcnew("Dummy", GetFormulaSpecNewX().Data());
    285285    return funcnew.Integral(emin, emax);
    286286}
     
    293293Double_t MMcSpectrumWeight::GetSpecOldIntegral(Double_t emin, Double_t emax) const
    294294{
    295     TF1 funcold("Dummy", GetFormulaSpecOldX());
     295    TF1 funcold("Dummy", GetFormulaSpecOldX().Data());
    296296    return funcold.Integral(emin, emax);
    297297}
     
    304304Double_t MMcSpectrumWeight::CalcSpecNew(Double_t e) const
    305305{
    306     TF1 funcnew("Dummy", GetFormulaSpecNewX());
     306    TF1 funcnew("Dummy", GetFormulaSpecNewX().Data());
    307307    return funcnew.Eval(e);
    308308}
     
    315315Double_t MMcSpectrumWeight::CalcSpecOld(Double_t e) const
    316316{
    317     TF1 funcnew("Dummy", GetFormulaSpecOldX());
     317    TF1 funcnew("Dummy", GetFormulaSpecOldX().Data());
    318318    return funcnew.Eval(e);
    319319}
     
    412412    }
    413413
    414     fFunc = new TF1("", GetFormulaWeightsX());
     414    fFunc = new TF1("", GetFormulaWeightsX().Data());
    415415    gROOT->GetListOfFunctions()->Remove(fFunc);
    416416    fFunc->SetName("SpectralWeighs");
Note: See TracChangeset for help on using the changeset viewer.