]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeom.cxx
Proper fix to enumeration error.
[u/mrichter/AliRoot.git] / ITS / AliITSgeom.cxx
index e6f1b8c89da6df33fbaafb07d9f17a7c438b721f..45d0eeac8fe7c789c27fd7d2e7c09ee4a9b719ca 100644 (file)
@@ -1435,6 +1435,16 @@ Double_t AliITSgeom::GetAverageRadiusOfLayer(Int_t layer,Double_t &range)const{
                dl[1] = ((AliITSgeomSSD*)GetShape(idet))->GetDy();
                dl[2] = ((AliITSgeomSSD*)GetShape(idet))->GetDz();
            } break;
+           case kND:{
+               Warning("GetAverageRadiusOfLayer",
+                       "idet=kND undefined detector type");
+               continue;
+           }break;
+           default:{
+               Warning("GetAverageRadiusOfLayer",
+                       "idet=%d not a defined value",(Int_t)idet);
+               continue;
+           }break;
            }// end switch.
         } // end of
         n++;