//-------------------------------------------------------------------------
// Implementation of the ITS tracker class
-// It reads AliITSclusterV2 clusters and creates AliITStrackV2 tracks
+// It reads AliITSRecPoint clusters and creates AliITStrackV2 tracks
// and fills with them the ESD
// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
// dEdx analysis by: Boris Batyunya, JINR, Boris.Batiounia@cern.ch
#include "AliITSgeom.h"
#include "AliITSRecPoint.h"
#include "AliESD.h"
-#include "AliITSclusterV2.h"
+#include "AliITSRecPoint.h"
#include "AliITStrackerV2.h"
ClassImp(AliITStrackerV2)
//--------------------------------------------------------------------
//This function loads ITS clusters
//--------------------------------------------------------------------
- TBranch *branch=cTree->GetBranch("Clusters");
+ TBranch *branch=cTree->GetBranch("ITSRecPoints");
if (!branch) {
Error("LoadClusters"," can't get the branch !\n");
return 1;
}
- TClonesArray dummy("AliITSclusterV2",10000), *clusters=&dummy;
+ TClonesArray dummy("AliITSRecPoint",10000), *clusters=&dummy;
branch->SetAddress(&clusters);
Int_t j=0;
if (!cTree->GetEvent(j)) continue;
Int_t ncl=clusters->GetEntriesFast();
while (ncl--) {
- AliITSclusterV2 *c=(AliITSclusterV2*)clusters->UncheckedAt(ncl);
+ AliITSRecPoint *c=(AliITSRecPoint*)clusters->UncheckedAt(ncl);
Int_t idx=c->GetDetectorIndex();
Double_t y=r*fgLayers[i].GetDetector(idx).GetPhi()+c->GetY();
if (y>circ) y-=circ; else if (y<0) y+=circ;
c->SetPhiR(y);
- fgLayers[i].InsertCluster(new AliITSclusterV2(*c));
+ fgLayers[i].InsertCluster(new AliITSRecPoint(*c));
}
clusters->Delete();
}
dz=road*scz; dy=road*scy;
}
- const AliITSclusterV2 *c=0; Int_t ci=-1;
- const AliITSclusterV2 *cc=0; Int_t cci=-1;
+ const AliITSRecPoint *c=0; Int_t ci=-1;
+ const AliITSRecPoint *cc=0; Int_t cci=-1;
Double_t chi2=kMaxChi2;
while ((c=layer.GetNextCluster(ci))!=0) {
Int_t idet=c->GetDetectorIndex();
if (n>1) fRoad=2*fR*TMath::Sqrt(3.14/n);
}
-Int_t AliITStrackerV2::AliITSlayer::InsertCluster(AliITSclusterV2 *c) {
+Int_t AliITStrackerV2::AliITSlayer::InsertCluster(AliITSRecPoint *c) {
//--------------------------------------------------------------------
// This function inserts a cluster to this layer in increasing
// order of the cluster's fZ
else {
Int_t i=FindClusterIndex(c->GetZ(),sec);
Int_t k=n-i+sec*kMaxClusterPerSector;
- memmove(fClusters+i+1 ,fClusters+i,k*sizeof(AliITSclusterV2*));
+ memmove(fClusters+i+1 ,fClusters+i,k*sizeof(AliITSRecPoint*));
fClusters[i]=c;
}
n++;
Float_t ym = (ymax<ymin) ? ymax+circ : ymax;
Int_t i=FindClusterIndex(zmin,i1), imax=i1*kMaxClusterPerSector+fN[i1];
for (; i<imax; i++) {
- AliITSclusterV2 *c=fClusters[i];
+ AliITSRecPoint *c=fClusters[i];
if (c->IsUsed()) continue;
if (c->GetZ()>zmax) break;
if (c->GetPhiR()<=ymin) continue;
Float_t ym = (ymin>ymax) ? ymin-circ : ymin;
Int_t i=FindClusterIndex(zmin,i2), imax=i2*kMaxClusterPerSector+fN[i2];
for (; i<imax; i++) {
- AliITSclusterV2 *c=fClusters[i];
+ AliITSRecPoint *c=fClusters[i];
if (c->IsUsed()) continue;
if (c->GetZ()>zmax) break;
if (c->GetPhiR()<=ym) continue;
return fNsel;
}
-const AliITSclusterV2 *AliITStrackerV2::AliITSlayer::GetNextCluster(Int_t &ci){
+const AliITSRecPoint *AliITStrackerV2::AliITSlayer::GetNextCluster(Int_t &ci){
//--------------------------------------------------------------------
// This function returns clusters within the "window"
//--------------------------------------------------------------------
- AliITSclusterV2 *c=0;
+ AliITSRecPoint *c=0;
ci=-1;
if (fNsel) {
fNsel--;
}
t->SetDetectorIndex(idet);
- const AliITSclusterV2 *cl=0;
+ const AliITSRecPoint *cl=0;
Double_t maxchi2=kMaxChi2;
Int_t idx=index[i];
if (idx>0) {
- const AliITSclusterV2 *c=(AliITSclusterV2 *)GetCluster(idx);
+ const AliITSRecPoint *c=(AliITSRecPoint *)GetCluster(idx);
if (idet != c->GetDetectorIndex()) {
idet=c->GetDetectorIndex();
const AliITSdetector &det=layer.GetDetector(idet);
Double_t ymax=t->GetY() + phi*r + dy;
layer.SelectClusters(zmin,zmax,ymin,ymax);
- const AliITSclusterV2 *c=0; Int_t ci=-1;
+ const AliITSRecPoint *c=0; Int_t ci=-1;
while ((c=layer.GetNextCluster(ci))!=0) {
if (idet != c->GetDetectorIndex()) continue;
Double_t chi2=t->GetPredictedChi2(c);
//--------------------------------------------------------------------
AliTracker::UseClusters(t,from);
- AliITSclusterV2 *c=(AliITSclusterV2 *)GetCluster(t->GetClusterIndex(0));
+ AliITSRecPoint *c=(AliITSRecPoint *)GetCluster(t->GetClusterIndex(0));
if (c && c->GetSigmaZ2()>0.1) c->UnUse();
- c=(AliITSclusterV2 *)GetCluster(t->GetClusterIndex(1));
+ c=(AliITSRecPoint *)GetCluster(t->GetClusterIndex(1));
if (c && c->GetSigmaZ2()>0.1) c->UnUse();
}