Add computation of dE/dx (truncated mean) after inward fit for ITS standalone tracks...
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Jun 2010 16:25:29 +0000 (16:25 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Jun 2010 16:25:29 +0000 (16:25 +0000)
ITS/AliITStrackerSA.cxx

index 2d122da..4b2ca52 100644 (file)
@@ -635,7 +635,6 @@ AliITStrackV2* AliITStrackerSA::FitTrack(AliITStrackSA* tr,Double_t *primaryVert
   for(Int_t ncl=0;ncl<nclusters;ncl++){
     Int_t index = tr->GetClusterIndexSA(ncl); 
     AliITSRecPoint* cl = (AliITSRecPoint*)GetCluster(index);
-    if(cl->TestBit(kSAflag)==kTRUE) cl->ResetBit(kSAflag);
     Int_t lay = (index & 0xf0000000) >> 28;
     Int_t nInLay=end[lay];
     listlayer[lay][nInLay]=cl;
@@ -849,6 +848,9 @@ AliITStrackV2* AliITStrackerSA::FitTrack(AliITStrackSA* tr,Double_t *primaryVert
   CookLabel(otrack,0.); //MI change - to see fake ratio
   Int_t label=FindLabel(otrack);
   otrack->SetLabel(label);  
+  Double_t low=0.;
+  Double_t up=0.51;    
+  otrack->CookdEdx(low,up);
 
   //remove clusters of found track
   for(Int_t nlay=0;nlay<AliITSgeomTGeo::GetNLayers();nlay++){