From ae4cbe705374fc875c207b2efacb562a4b5b537d Mon Sep 17 00:00:00 2001 From: fca Date: Tue, 5 Oct 1999 17:18:27 +0000 Subject: [PATCH] Correct GetWire check on even/odd fnWires --- TPC/AliTPCParam.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TPC/AliTPCParam.cxx b/TPC/AliTPCParam.cxx index 25ef352d3f8..1032a4549b5 100644 --- a/TPC/AliTPCParam.cxx +++ b/TPC/AliTPCParam.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.4 1999/09/29 09:24:34 fca +Introduction of the Copyright and cvs Log + */ /////////////////////////////////////////////////////////////////////// @@ -259,13 +262,13 @@ Int_t AliTPCParam::GetWire(Float_t & x) //is at center of pad // Float_t xrel= x/fWWPitch; - if ((fnWires>>1)==0) xrel+=1; + if ((fnWires&1)==0) xrel+=1; else xrel+=0.5; Int_t nw=Int_t(xrel); if (xrel<0) nw-=1; x=(nw*fWWPitch); - if ((fnWires>>1)==0) x-=fWWPitch/2.; + if ((fnWires&1)==0) x-=fWWPitch/2.; return nw; } -- 2.31.1