]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Final fix for combined multiplicity estimator from Anton
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Nov 2013 12:52:03 +0000 (12:52 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Nov 2013 12:52:03 +0000 (12:52 +0000)
ANALYSIS/AliESDtrackCuts.cxx

index 8ef040d5e6123f931a00c1b37f023bea28a60613..4672bee8d123b1aa1390436826868486a8704602 100644 (file)
@@ -2322,13 +2322,13 @@ Int_t AliESDtrackCuts::GetReferenceMultiplicity(const AliESDEvent* esd, MultEstT
   //*******************************************************************************************************
   // get multiplicity from ITS tracklets to complement TPC+ITS, and ITSpureSA
   const AliMultiplicity* spdmult = esd->GetMultiplicity();    // spd multiplicity object
-  for (Int_t iTracklet=0; iTracklet<spdmult->GetNumberOfTracklets(); ++iTracklet) {
-    if (TMath::Abs(spdmult->GetEta(iTracklet)) > etaRange) continue; // eta selection for tracklets
+  for (Int_t i=0; i<spdmult->GetNumberOfTracklets(); ++i) {
+    if (TMath::Abs(spdmult->GetEta(i)) > etaRange) continue; // eta selection for tracklets
     
     // if counting tracks+tracklets, check if clusters were already used in tracks
     Int_t id1, id2, id3, id4;
-    spdmult->GetTrackletTrackIDs ( iTracklet, 0, id1, id2 ); // references for eventual Global/ITS_SA tracks
-    spdmult->GetTrackletTrackIDs ( iTracklet, 1, id3, id4 ); // references for eventual ITS_SA_pure tracks
+    spdmult->GetTrackletTrackIDs ( i, 0, id1, id2 ); // references for eventual Global/ITS_SA tracks
+    spdmult->GetTrackletTrackIDs ( i, 1, id3, id4 ); // references for eventual ITS_SA_pure tracks
     
     // are both clusters from the same tracks? If not, skip the tracklet (shouldn't change things much)
     if ( ( id1 != id2 && id1 >= 0 && id2 >= 0 ) || ( id3 != id4 && id3 >= 0 && id4 >= 0 ) ) continue;