Number of tracklets used in CF counted in eta range -1,1
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2012 13:25:43 +0000 (13:25 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2012 13:25:43 +0000 (13:25 +0000)
PWGHF/vertexingHF/AliCFTaskVertexingHF.cxx

index d9712b7..90dd626 100644 (file)
@@ -649,7 +649,7 @@ void AliCFTaskVertexingHF::UserExec(Option_t *)
   cfVtxHF->SetCentralityValue(centValue);  
        
   // number of tracklets - multiplicity estimator
-  Double_t multiplicity = (Double_t)(aodEvent->GetTracklets()->GetNumberOfTracklets()); // casted to double because the CF is filled with doubles
+  Double_t multiplicity = (Double_t)(AliVertexingHFUtils::GetNumberOfTrackletsInEtaRange(aodEvent,-1.,1.)); // casted to double because the CF is filled with doubles
   cfVtxHF->SetMultiplicity(multiplicity);
        
   for (Int_t iPart=0; iPart<mcArray->GetEntriesFast(); iPart++) {