// 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"
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;
Double_t sP[] = {Ycoor,
Zcoor,
- TMath::Sin(phi-sAlpha),
+ TMath::Sin(phi-alpha),
tanlambda,
curv/conv};
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<AliITSgeomTGeo::GetNLayers(); i++) fIndex[i] = 0; // to be set explicitely
//____________________________________________________________
void AliITStrackSA::AddClusterSA(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 = GetNumberOfClustersSA();
- if(presnum>=fgkMaxNumberOfClusters){
+ if(presnum>=kMaxNumberOfClusters){
Warning("AddClusterSA","Maximum number of clusters already reached. Nothing is done\n");
return;
}
//____________________________________________________________
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;
}
//Reset array of marked clusters
for(Int_t nlay=0;nlay<AliITSgeomTGeo::GetNLayers();nlay++){
- for(Int_t k=0; k<fgkMaxNumberOfClustersL; k++) fCluMark[nlay][k]=0;
+ for(Int_t k=0; k<kMaxNumberOfClustersL; k++) fCluMark[nlay][k]=0;
}
}