From: nilsen Date: Wed, 22 Jan 2003 01:09:00 +0000 (+0000) Subject: Added function CellBoundries to return the cell boundries. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=bd8ff3875acd70b04851a4be2199ba6db2b1914e;p=u%2Fmrichter%2FAliRoot.git Added function CellBoundries to return the cell boundries. --- diff --git a/ITS/AliITSsegmentationSPD.cxx b/ITS/AliITSsegmentationSPD.cxx index 32c452e2d82..2d2fe587241 100644 --- a/ITS/AliITSsegmentationSPD.cxx +++ b/ITS/AliITSsegmentationSPD.cxx @@ -442,3 +442,42 @@ void AliITSsegmentationSPD::DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z) z += 0.5*kconv*fCellSizeZ[iz]; // add 1/2 of cell iz for center location. return; // Found x and z, return. } +//______________________________________________________________________ +void AliITSsegmentationSPD::CellBoundries(Int_t ix,Int_t iz, + Double_t &xl,Double_t &xu, + Double_t &zl,Double_t &zu) +{ +// Transformation from Detector cell coordiantes to Geant detector centerd +// local coordinates (cm). +// Input: +// Int_t ix detector x cell coordinate. Has the range 0<=ix=Npx()) return; // outside of detector + if(iz<0 || iz>=Npz()) return; // outside of detctor + for(i=0;i