X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITStrackSA.cxx;h=101b597f7dcc86eb0721a570e6af93ec2291a7c0;hb=3db9b379e749236fa8d72d06ea01973cdf592a71;hp=22d48dee36373ae35895e9774a6ef37992842389;hpb=deae0246406a6ee7f6f00071b9797ba2593872a2;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITStrackSA.cxx b/ITS/AliITStrackSA.cxx index 22d48dee363..101b597f7dc 100755 --- a/ITS/AliITStrackSA.cxx +++ b/ITS/AliITStrackSA.cxx @@ -101,6 +101,26 @@ fNSA(0) Double_t sX=TMath::Sqrt(xyz[0]*xyz[0] + xyz[1]*xyz[1]); + Init(sAlpha,sX,Ycoor,Zcoor,phi,tanlambda,curv,lab); + +} +//____________________________________________________ +AliITStrackSA::AliITStrackSA(Double_t alpha, Double_t radius, Double_t Ycoor, Double_t Zcoor, Double_t phi, Double_t tanlambda, Double_t curv, Int_t lab ): +fNSA(0) +{ + // standard constructor. Used for ITS standalone tracking + + // get the azimuthal angle of the detector containing the innermost + // cluster of this track (data member fAlpha) + + if (alpha<0) alpha+=TMath::TwoPi(); + else if (alpha>=TMath::TwoPi()) alpha-=TMath::TwoPi(); + Init(alpha,radius,Ycoor,Zcoor,phi,tanlambda,curv,lab); +} +//____________________________________________________ + void AliITStrackSA::Init(Double_t alpha, Double_t radius, Double_t Ycoor, Double_t Zcoor, Double_t phi, Double_t tanlambda, Double_t curv, Int_t lab ){ + // initialize parameters + fdEdx = 0; Double_t conv=GetBz()*kB2C; @@ -122,7 +142,7 @@ fNSA(0) Double_t sP[] = {Ycoor, Zcoor, - TMath::Sin(phi-sAlpha), + TMath::Sin(phi-alpha), tanlambda, curv/conv}; @@ -134,7 +154,7 @@ fNSA(0) sP[4] = w0*p0 + w1*sP[4]; sC[14]*=w1; - Set(sX,sAlpha,sP,sC); + Set(radius,alpha,sP,sC); for(Int_t i=0; i