Fixed problem with z length mismatch (Marian, Marek)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Sep 2007 13:39:17 +0000 (13:39 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Sep 2007 13:39:17 +0000 (13:39 +0000)
TPC/AliTPCParam.cxx
TPC/AliTPCParam.h

index b24efad7e08b8e63c83e037d5d027d375adb0cce..ff15faf3143444b283c9ec804a8548999b49fdd9 100644 (file)
@@ -804,7 +804,7 @@ Float_t AliTPCParam::GetChamberCenter(Int_t isec, Float_t * center) const
     if (center){
       center[0] = kROCcenterIn;
       center[1] = 0; 
-      center[2] = -5.51; 
+      center[2] = -5.51-0.08
     }
     return kROCcenterIn;
   }
@@ -812,7 +812,7 @@ Float_t AliTPCParam::GetChamberCenter(Int_t isec, Float_t * center) const
     if (center){
       center[0] = kROCcenterOut;
       center[1] = 0; 
-      center[2] = -5.61; 
+      center[2] = -5.61-0.08
     }
     return kROCcenterOut;
   }
index 8243161336198995227fee6416fb00898a3b3a06..ac07af7584c9279f81d6d4a317e2f7a1648faed7 100644 (file)
@@ -219,7 +219,7 @@ public:
   Int_t    GetNInnerSector() const {return fNInnerSector;}
   Int_t    GetNOuterSector() const {return fNOuterSector;}
   Int_t    GetNSector() const {return fNSector;}
-  Float_t  GetZLength(Int_t sector=0) const {return (sector<35) ? fZLength-0.275 : fZLength-0.302;}
+  Float_t  GetZLength(Int_t sector=0) const;
   Int_t    GetGeometryType() const {return fGeometryType;}
 
   //
@@ -733,5 +733,8 @@ inline void  AliTPCParam::Transform8to6(Float_t *xyz, Int_t *index) const
   }  
   index[0]=6;
 }
-
+inline Float_t AliTPCParam::GetZLength(Int_t sector) const
+{ if(sector <18 || (sector>35&&sector<54)) return   fZLength-0.275;
+  else return fZLength-0.302;
+}
 #endif