]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackerV2.cxx
New version of the V0 finder (M.Ivanov)
[u/mrichter/AliRoot.git] / ITS / AliITStrackerV2.cxx
index efced05e745921724aeb56ee1269835ab9eb720e..be13f576463971c910c0c4de2f189b5980eb9984 100644 (file)
@@ -670,6 +670,10 @@ Int_t AliITStrackerV2::AliITSlayer::InsertCluster(AliITSclusterV2 *c) {
   //--------------------------------------------------------------------
   Float_t circ=TMath::TwoPi()*fR;
   Int_t sec=Int_t(kNsector*c->GetPhiR()/circ);
+  if (sec>=kNsector) {
+     ::Error("InsertCluster","Wrong sector !\n");
+     return 1;
+  }
   Int_t &n=fN[sec];
   if (n>=kMaxClusterPerSector) {
      ::Error("InsertCluster","Too many clusters !\n");