X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITStrackSA.cxx;h=22d48dee36373ae35895e9774a6ef37992842389;hb=845e843e0eb5d5b7ba7122da84123ef0a6f1333b;hp=70a235d03718d8110aebb74cab0ffea60161e51a;hpb=1966f03c9be02348c32fa7a0bd22ecc82047d6ce;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITStrackSA.cxx b/ITS/AliITStrackSA.cxx index 70a235d0371..22d48dee363 100755 --- a/ITS/AliITStrackSA.cxx +++ b/ITS/AliITStrackSA.cxx @@ -20,7 +20,7 @@ // Origin: Elisabetta Crescio // // e-mail: crescio@to.infn.it // // it is a V2 track with a possible number // -// of cluster equal to fgkMaxNumberOfClusters // +// of cluster equal to kMaxNumberOfClusters // //////////////////////////////////////////////////// #include "AliITSgeomTGeo.h" @@ -37,7 +37,7 @@ fNSA(0) SetNumberOfClusters(0); SetNumberOfClustersSA(0); ResetIndexSA(); - for(Int_t nlay=0;nlay=TMath::TwoPi()) sAlpha-=TMath::TwoPi(); + Double_t sX=TMath::Sqrt(xyz[0]*xyz[0] + xyz[1]*xyz[1]); fdEdx = 0; @@ -138,20 +128,21 @@ fNSA(0) // dealing with the case B=0 (taken from AliTPCtrack.cxx) - Double_t p0=TMath::Sign(1/kMostProbablePt,sP[4]); + Double_t mostProbablePt=AliExternalTrackParam::GetMostProbablePt(); + Double_t p0=TMath::Sign(1/mostProbablePt,sP[4]); Double_t w0=sC[14]/(sC[14] + p0*p0), w1=p0*p0/(sC[14] + p0*p0); sP[4] = w0*p0 + w1*sP[4]; sC[14]*=w1; Set(sX,sAlpha,sP,sC); - for(Int_t i=0; i=fgkMaxNumberOfClusters){ + if(presnum>=kMaxNumberOfClusters){ Warning("AddClusterSA","Maximum number of clusters already reached. Nothing is done\n"); return; } @@ -176,10 +167,10 @@ void AliITStrackSA::AddClusterSA(Int_t layer, Int_t clnumb) { //____________________________________________________________ void AliITStrackSA::AddClusterMark(Int_t layer, Int_t clnumb) { - // add one clusters to the list (maximum number=fgkMaxNumberOfClusters) + // add one clusters to the list (maximum number=kMaxNumberOfClusters) Int_t presnum = GetNumberOfMarked(layer); // printf("presnum=%d\n",presnum); - if(presnum>=fgkMaxNumberOfClustersL){ + if(presnum>=kMaxNumberOfClustersL){ Warning("AddClusterMark","Maximum number of clusters already reached. Nothing is done\n"); return; } @@ -193,7 +184,7 @@ void AliITStrackSA::AddClusterMark(Int_t layer, Int_t clnumb) { void AliITStrackSA::AddClusterV2(Int_t layer,Int_t clnumb) { // add one clusters to the list (maximum number=6) Int_t presnum = GetNumberOfClusters(); - if(presnum>=kMaxLayer){ + if(presnum>=AliITSgeomTGeo::GetNLayers()){ Warning("AddClusterV2","Maximum number of clusters already reached. Nothing is done\n"); return; } @@ -207,21 +198,8 @@ void AliITStrackSA::AddClusterV2(Int_t layer,Int_t clnumb) { void AliITStrackSA::ResetMarked(){ //Reset array of marked clusters - for(Int_t nlay=0;nlay