From c6ba3ff437c1b382d6d5e723d243ce1f2622404f Mon Sep 17 00:00:00 2001 From: morsch Date: Tue, 3 Feb 2004 16:45:20 +0000 Subject: [PATCH] Unique name for functions (TF1). --- FASTSIM/AliMUONFastTracking.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/FASTSIM/AliMUONFastTracking.cxx b/FASTSIM/AliMUONFastTracking.cxx index 721f77be66d..ab0e12ddfbf 100644 --- a/FASTSIM/AliMUONFastTracking.cxx +++ b/FASTSIM/AliMUONFastTracking.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.8 2004/01/27 18:02:38 hristov +Removing some warning (Sun) + Revision 1.7 2003/11/13 14:21:57 morsch Coding Rule violation corrections. @@ -802,8 +805,10 @@ void AliMUONFastTracking::SetBackground(Float_t bkg){ TF1* AliMUONFastTracking::GetFitP(Int_t ip,Int_t itheta,Int_t iphi) { // gets the correct prec-pgen distribution for a given LUT cell - if (!fFitp[ip][itheta][iphi]) { - fFitp[ip][itheta][iphi] = new TF1("fit1",FitP,-20.,20.,6); + if (!fFitp[ip][itheta][iphi]) { + char name[256]; + sprintf(name, "fit_%d_%d_%d", ip, itheta, iphi); + fFitp[ip][itheta][iphi] = new TF1(name ,FitP,-20.,20.,6); fFitp[ip][itheta][iphi]->SetNpx(500); fFitp[ip][itheta][iphi]->SetParameters(0.,0.,0.,0.,0.,0.); } -- 2.39.3