From 1e68a0c5a6bba18a62dd777e0d745cb295408dae Mon Sep 17 00:00:00 2001 From: morsch Date: Tue, 12 Aug 2003 15:16:25 +0000 Subject: [PATCH] Saver initialisation of fFitp array. (Lenaic COUEDEL) --- FASTSIM/AliMUONFastTracking.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/FASTSIM/AliMUONFastTracking.cxx b/FASTSIM/AliMUONFastTracking.cxx index 679e8e9ac22..179d33e2e6e 100644 --- a/FASTSIM/AliMUONFastTracking.cxx +++ b/FASTSIM/AliMUONFastTracking.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.5 2003/08/05 16:14:20 morsch +Some problems with too big fluctuations corrected. (A. de Falco) + Revision 1.2 2003/01/08 10:29:33 morsch Path to data file changed. @@ -69,6 +72,14 @@ AliMUONFastTracking* AliMUONFastTracking::Instance() AliMUONFastTracking::AliMUONFastTracking() { + for (Int_t i = 0; i<20;i++) { + for (Int_t j = 0; j<20; j++) { + for (Int_t k = 0; k<20; k++) { + fFitp[i][j][k] = 0x0; + } + } + } + fClusterFinder = kOld; fPrintLevel = 1; // read binning; temporarily put by hand @@ -254,6 +265,7 @@ void AliMUONFastTracking::GetIpIthetaIphi(Float_t p, Float_t theta, Float_t phi, itheta = Int_t (( theta - fThetamin ) / fDeltaTheta); iphi = Int_t (( phi - fPhimin ) / fDeltaPhi); + if (ip< 0) ip = 0; if (ip>= fNbinp) ip = fNbinp-1; if (itheta< 0) itheta = 0; @@ -706,7 +718,7 @@ TF1* AliMUONFastTracking::GetFitP(Int_t ip,Int_t itheta,Int_t iphi) { if (!fFitp[ip][itheta][iphi]) { fFitp[ip][itheta][iphi] = new TF1("fit1",FitP,-20.,20.,6); fFitp[ip][itheta][iphi]->SetNpx(500); - fFitp[ip][itheta][iphi]->SetParameters(0,0,0,0,0,0); + fFitp[ip][itheta][iphi]->SetParameters(0.,0.,0.,0.,0.,0.); } return fFitp[ip][itheta][iphi]; } -- 2.39.3