]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Explicit protection on max. anode and timewise coordinates. Savannah bug 56123. ...
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Sep 2009 12:27:15 +0000 (12:27 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Sep 2009 12:27:15 +0000 (12:27 +0000)
ITS/AliITSClusterFinderV2SDD.cxx

index 63618bba0a21b16f0fa41afb747b578dea2e743c..3bdb7147d9a50920ae109e9a5866e2ab7c799694 100644 (file)
@@ -390,7 +390,8 @@ void AliITSClusterFinderV2SDD::FindClustersSDD(AliITSRawStream* input,
          Int_t iz = input->GetCoord1();
          Int_t itb = input->GetCoord2();
          Int_t index = (itb+1) * nzBins + (iz+1);
-         if(index<kMaxBin){
+         //      if(index<kMaxBin){
+         if((itb < nTimeBins) && (iz < nAnodes)) {
            ddlbins[iHybrid][index].SetQ(q);
            ddlbins[iHybrid][index].SetMask(1);
            ddlbins[iHybrid][index].SetIndex(index);