From cf6105a456c09f6fe863bd72c84b177a1c1f0be4 Mon Sep 17 00:00:00 2001 From: barbera Date: Tue, 16 Jul 2002 17:00:17 +0000 Subject: [PATCH] Fixes added to make the slow simulation running with the current HEAD (from M. Masera) --- ITS/AliITSSDigits2Digits.C | 1 - ITS/AliITSsimulationSPD.cxx | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ITS/AliITSSDigits2Digits.C b/ITS/AliITSSDigits2Digits.C index 081006d4930..106f5f608b5 100644 --- a/ITS/AliITSSDigits2Digits.C +++ b/ITS/AliITSSDigits2Digits.C @@ -31,7 +31,6 @@ void AliITSSD2D(TString inFile, TString outFile){ file2 = new TFile(outFile,"UPDATE"); writeAR(file,file2); } - delete dITS; delete manager; if(file){ file->Close(); diff --git a/ITS/AliITSsimulationSPD.cxx b/ITS/AliITSsimulationSPD.cxx index e33ade32b96..e0539444ef0 100644 --- a/ITS/AliITSsimulationSPD.cxx +++ b/ITS/AliITSsimulationSPD.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.16 2002/06/19 16:02:22 hristov +Division by zero corrected + Revision 1.15 2002/03/15 17:32:14 nilsen Reintroduced SDigitization, and Digitization from SDigits, along with functions InitSimulationModule, and FinishSDigitizModule. @@ -396,8 +399,10 @@ void AliITSsimulationSPD::ChargeSharing(Float_t x1l,Float_t z1l,Float_t x2l, npixel = 0; xa = x1l; za = z1l; - dx = x1l-x2l; - dz = z1l-z2l; +// dx = x1l-x2l; +// dz = z1l-z2l; + dx = x2l-x1l; + dz = z2l-z1l; dtot = TMath::Sqrt((dx*dx)+(dz*dz)); if (dtot==0.0) dtot = 0.01; dirx = (Int_t) TMath::Sign((Float_t)1,dx); -- 2.31.1