From f36a6c8bd417212eabcaf6635ddc27bce9a19c2b Mon Sep 17 00:00:00 2001 From: martinez Date: Fri, 19 Sep 2003 17:02:23 +0000 Subject: [PATCH] Patch for the division par zero in fQ[1]. To be investigated --- MUON/AliMUONClusterFinderVS.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/MUON/AliMUONClusterFinderVS.cxx b/MUON/AliMUONClusterFinderVS.cxx index 0c5f9282562..ee06f71e301 100644 --- a/MUON/AliMUONClusterFinderVS.cxx +++ b/MUON/AliMUONClusterFinderVS.cxx @@ -1474,18 +1474,21 @@ void AliMUONClusterFinderVS::FindRawClusters() fSector= fSeg[cath]->Sector(i,j)/100; if (fDebugLevel) printf("\n New Seed %d %d ", i,j); - + + FindCluster(i,j,cath,c); // ^^^^^^^^^^^^^^^^^^^^^^^^ // center of gravity - c.fX[0] /= c.fQ[0]; + if (c.fX[0]!=0.) c.fX[0] /= c.fQ[0]; // Force on anod c.fX[0]=fSeg[0]->GetAnod(c.fX[0]); - c.fY[0] /= c.fQ[0]; - c.fX[1] /= c.fQ[1]; -// Force on anod + if (c.fY[0]!=0.) c.fY[0] /= c.fQ[0]; + + if(c.fQ[1]!=0.) c.fX[1] /= c.fQ[1]; + + // Force on anod c.fX[1]=fSeg[0]->GetAnod(c.fX[1]); - c.fY[1] /= c.fQ[1]; + if(c.fQ[1]!=0.) c.fY[1] /= c.fQ[1]; c.fZ[0] = fZPlane; c.fZ[1] = fZPlane; -- 2.39.3