]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Proper fix to enumeration error.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jun 2006 14:03:14 +0000 (14:03 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jun 2006 14:03:14 +0000 (14:03 +0000)
ITS/AliITSgeom.cxx
ITS/AliITSgeom.h

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++;
index 2300acb91aba4fd5088fe11aaaf2bb29e88a8917..f05916fda96444dc86bed375ffc15e104d304717 100644 (file)
@@ -27,7 +27,7 @@ class TArrayI;
 
 #include "AliITSgeomMatrix.h"
 
-typedef enum {kSPD=0, kSDD=1, kSSD=2, kSSDp=3,kSDDp=4} AliITSDetector;
+typedef enum {kND=-1,kSPD=0, kSDD=1, kSSD=2, kSSDp=3,kSDDp=4} AliITSDetector;
 
 //_______________________________________________________________________