Changeset 8907 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 06/02/08 09:52:26 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8709 r8907 37 37 #include <TF1.h> 38 38 #include <TLine.h> 39 #include <TMath.h> 39 40 #include <TCanvas.h> 40 41 #include <TStyle.h> -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8883 r8907 282 282 Double_t MMcSpectrumWeight::GetSpecNewIntegral(Double_t emin, Double_t emax) const 283 283 { 284 TF1 funcnew("Dummy", GetFormulaSpecNewX() );284 TF1 funcnew("Dummy", GetFormulaSpecNewX().Data()); 285 285 return funcnew.Integral(emin, emax); 286 286 } … … 293 293 Double_t MMcSpectrumWeight::GetSpecOldIntegral(Double_t emin, Double_t emax) const 294 294 { 295 TF1 funcold("Dummy", GetFormulaSpecOldX() );295 TF1 funcold("Dummy", GetFormulaSpecOldX().Data()); 296 296 return funcold.Integral(emin, emax); 297 297 } … … 304 304 Double_t MMcSpectrumWeight::CalcSpecNew(Double_t e) const 305 305 { 306 TF1 funcnew("Dummy", GetFormulaSpecNewX() );306 TF1 funcnew("Dummy", GetFormulaSpecNewX().Data()); 307 307 return funcnew.Eval(e); 308 308 } … … 315 315 Double_t MMcSpectrumWeight::CalcSpecOld(Double_t e) const 316 316 { 317 TF1 funcnew("Dummy", GetFormulaSpecOldX() );317 TF1 funcnew("Dummy", GetFormulaSpecOldX().Data()); 318 318 return funcnew.Eval(e); 319 319 } … … 412 412 } 413 413 414 fFunc = new TF1("", GetFormulaWeightsX() );414 fFunc = new TF1("", GetFormulaWeightsX().Data()); 415 415 gROOT->GetListOfFunctions()->Remove(fFunc); 416 416 fFunc->SetName("SpectralWeighs");
Note:
See TracChangeset
for help on using the changeset viewer.