X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCROC.cxx;h=e72058edd77e564a21a3dddd6cd5311e568d1d83;hb=035e7b9f34ef84cf9e00a4a331feb800802d381d;hp=c4bb00ecfa445ea63faf4da73bcc8b88d5aa81eb;hpb=179c6296933f765a926e55ebbf1188a75d495c62;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCROC.cxx b/TPC/AliTPCROC.cxx index c4bb00ecfa4..e72058edd77 100644 --- a/TPC/AliTPCROC.cxx +++ b/TPC/AliTPCROC.cxx @@ -197,6 +197,43 @@ void AliTPCROC::SetGeometry() // SetOuterWWPitch(kOuterWWPitch); // SetROuterFirstWire(kROuterFirstWire); // SetROuterLastWire(kROuterLastWire); + + UInt_t i=0; + Float_t firstrow = fInnerRadiusLow + 1.575; + for( i= 0;i=18){ + pos[2] *= -1.; + pos[1] *= -1.; + } +} + + +void AliTPCROC::GetPositionGlobal(UInt_t sector, UInt_t row, UInt_t pad, Float_t *pos){ + // + // get position of center of pad - ideal frame used + // + GetPositionLocal(sector,row,pad,pos); + Double_t alpha = TMath::DegToRad()*(10.+20.*(sector%18)); + Float_t gx = pos[0]*TMath::Cos(alpha)-pos[1]*TMath::Sin(alpha); + Float_t gy = pos[1]*TMath::Cos(alpha)+pos[0]*TMath::Sin(alpha); + pos[0] = gx; + pos[1] = gy; +}