From: fca Date: Tue, 5 Oct 1999 17:18:27 +0000 (+0000) Subject: Correct GetWire check on even/odd fnWires X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=ae4cbe705374fc875c207b2efacb562a4b5b537d Correct GetWire check on even/odd fnWires --- 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; }