#include <TPDGCode.h>
#include <TCanvas.h>
#include <TVirtualMC.h>
+#include <TROOT.h>
#include "AliConst.h"
#include "AliDecayer.h"
Float_t etaMax = -TMath::Log(TMath::Tan(
TMath::Max((Double_t)fThetaMin/2,1.e-10)));
fPtpi = new TF1("ptpi",&ptpi,0,20,0);
+ gROOT->GetListOfFunctions()->Remove(fPtpi);
fPtka = new TF1("ptka",&ptka,0,20,0);
+ gROOT->GetListOfFunctions()->Remove(fPtka);
fPtpi->SetNpx(1000);
fPtka->SetNpx(1000);
fETApic = new TF1("etapic",&etapic,etaMin,etaMax,0);
+ gROOT->GetListOfFunctions()->Remove(fETApic);
fETAkac = new TF1("etakac",&etakac,etaMin,etaMax,0);
+ gROOT->GetListOfFunctions()->Remove(fETAkac);
TF1 etaPic0("etaPic0",&etapic,-7,7,0);
TF1 etaKac0("etaKac0",&etakac,-7,7,0);
#include <TDatabasePDG.h>
#include <TLorentzVector.h>
#include <TVirtualMC.h>
+#include <TROOT.h>
#include <TF1.h>
#include <TCanvas.h>
if (fPtPara) fPtPara->Delete();
fPtPara = new TF1(name, fPtParaFunc, fPtMin, fPtMax,0);
+ gROOT->GetListOfFunctions()->Remove(fPtPara);
// Set representation precision to 10 MeV
Int_t npx= Int_t((fPtMax - fPtMin) / fDeltaPt);
sprintf(name, "y-parameterisation for %s", GetName());
if (fYPara) fYPara->Delete();
fYPara = new TF1(name, fYParaFunc, fYMin, fYMax, 0);
+ gROOT->GetListOfFunctions()->Remove(fYPara);
+
sprintf(name, "pt-for-%s", GetName());
TF1 ptPara(name ,fPtParaFunc, 0, 15, 0);