//Conversion from local coordinates on detectors to local
//coordinates used for tracking ("v2")
- Float_t x,y,z; Double_t rt[9];GetTrans(md,x,y,z);GetRotMatrix(md,rt);
+ Float_t x,y,z;
+ Double_t rt[9];
+ GetTrans(md,x,y,z);
+ GetRotMatrix(md,rt);
Double_t al=TMath::ATan2(rt[1],rt[0])+TMath::Pi();
yout=-(-xin+(x*TMath::Cos(al)+y*TMath::Sin(al)));
- if(md<(GetModuleIndex(2,1,1)-1))yout*=-1; zout=-zin+(Double_t)z;
+ if ( md<(GetModuleIndex(2,1,1)) ) yout*=-1;
+ zout=-zin+(Double_t)z;
}
//_______________________________________________________________________
//Conversion from local coordinates used for tracking ("v2") to
//local detector coordinates
- Float_t x,y,z; Double_t rt[9];GetTrans(md,x,y,z);GetRotMatrix(md,rt);
+ Float_t x,y,z; Double_t rt[9];
+ GetTrans(md,x,y,z);
+ GetRotMatrix(md,rt);
Double_t al=TMath::ATan2(rt[1],rt[0])+TMath::Pi();
- xout=yin;if(md<(GetModuleIndex(2,1,1)-1))xout=-xout;
+ xout=yin;
+ if( md<(GetModuleIndex(2,1,1)) ) xout=-xout;
xout+=(x*TMath::Cos(al)+y*TMath::Sin(al));
zout=-zin+(Double_t)z;
}