Fix centrality
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2012 10:39:56 +0000 (10:39 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2012 10:39:56 +0000 (10:39 +0000)
PWGCF/FEMTOSCOPY/AliFemto/AliFemtoEventReaderAOD.cxx

index 27f2892..7b831d7 100644 (file)
@@ -304,9 +304,8 @@ void AliFemtoEventReaderAOD::CopyAODtoFemtoEvent(AliFemtoEvent *tEvent)
     nofTracks=fEvent->GetNumberOfTracks();
   cout<<"nofTracks: "<<nofTracks<<endl;
 
-  if (!fNoCentrality)
-    AliCentrality *cent = fEvent->GetCentrality();
+  AliCentrality *cent = fEvent->GetCentrality();
+
   if (!fNoCentrality && cent && fUsePreCent) {
     if ((cent->GetCentralityPercentile("V0M")*10 < fCentRange[0]) ||
        (cent->GetCentralityPercentile("V0M")*10 > fCentRange[1]))