]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
A protection added into Find1DClusters() for the variable tstart
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Nov 2000 21:57:00 +0000 (21:57 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Nov 2000 21:57:00 +0000 (21:57 +0000)
ITS/AliITSClusterFinderSDD.cxx

index 851d49e77a7b99365d18dfd280cea7b240ef02b6..16d4eff7ae0d47f0a57eab7a3cfcf5ed94732852 100644 (file)
@@ -206,6 +206,7 @@ void AliITSClusterFinderSDD::Find1DClusters()
 
         // cluster charge
         Int_t tstart = it-1;
+        if( tstart<0 ) tstart = 0;
        
         Bool_t ilcl = 0;
         if(lthrt >= lthrmint && lthra >= lthrmina) ilcl = 1;