Skip to content

Commit

Permalink
Calculating the mean-radial cluster positions
Browse files Browse the repository at this point in the history
  • Loading branch information
iouribelikov committed May 21, 2014
1 parent 0f7d198 commit 9db9017
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ITS/UPGRADE/AliITSUTrackerCooked.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ ClassImp(AliITSUTrackerCooked)
//************************************************
// Constants hardcoded for the moment:
//************************************************
// radial positions of layers: default contructor
const
Double_t klRadius[7]={2.34, 3.15, 3.93, 19.61, 24.55, 34.39, 39.34}; //tdr6
// seed "windows" in z and phi: MakeSeeds
const Double_t kzWin=0.33, kpWin=3.14/4;
// Maximal accepted impact parameters for the seeds
Expand Down Expand Up @@ -59,6 +56,8 @@ fTrackToFollow(0)
//--------------------------------------------------------------------
// This default constructor needs to be provided
//--------------------------------------------------------------------
const Double_t
klRadius[7]={2.34, 3.15, 3.93, 19.61, 24.55, 34.39, 39.34}; //tdr6

AliITSUGeomTGeo *gm = new AliITSUGeomTGeo(kTRUE,kTRUE);
AliITSUClusterPix::SetGeom(gm);
Expand Down Expand Up @@ -657,14 +656,17 @@ void AliITSUTrackerCooked::
// Load clusters to this layer
//--------------------------------------------------------------------
Int_t ncl=clusters->GetEntriesFast();

while (ncl--) {
AliITSUClusterPix *c=(AliITSUClusterPix*)clusters->UncheckedAt(ncl);
(seedingLayer) ? c->GoToFrameGlo() : c->GoToFrameTrk();
Double_t r=0.;
for (Int_t i=0; i<ncl; i++) {
AliITSUClusterPix *c=(AliITSUClusterPix*)clusters->UncheckedAt(i);
c->GoToFrameGlo();
Double_t x=c->GetX(), y=c->GetY();
r += TMath::Sqrt(x*x + y*y);
if (!seedingLayer) c->GoToFrameTrk();
//if (!c->Misalign()) AliWarning("Can't misalign this cluster !");
InsertCluster(new AliITSUClusterPix(*c));
}

if (ncl) fR = r/ncl;
}

void AliITSUTrackerCooked::AliITSUlayer::DeleteClusters()
Expand Down

0 comments on commit 9db9017

Please sign in to comment.