Bugfix in GetPadPitchWidth(patch). return inner width if patch < 2, not patch<=2.
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 May 2002 08:53:53 +0000 (08:53 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 May 2002 08:53:53 +0000 (08:53 +0000)
HLT/src/AliL3Transform.h

index 212b32ce8612c77a236d929ac92b49b73040e3a3..dcce4e91d84ce5ac52779c25611238c3f4698b8b 100644 (file)
@@ -54,7 +54,7 @@ class AliL3Transform {
   static Int_t GetVersion(){return fVersion;}
   static Double_t GetPadPitchWidthLow() {return fPadPitchWidthLow;}
   static Double_t GetPadPitchWidthUp() {return fPadPitchWidthUp;}
-  static Double_t GetPadPitchWidth(Int_t patch) {if(patch<=2) return fPadPitchWidthLow; else return fPadPitchWidthUp;}
+  static Double_t GetPadPitchWidth(Int_t patch) {return patch < 2 ? fPadPitchWidthLow : fPadPitchWidthUp;}  
   static Double_t GetZWidth() {return fZWidth;}
   static Double_t GetZLength() {return fZLength;}
   static Double_t GetZOffset() {return fZOffset;}