fetch centrality also when reading from input AOD
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Apr 2011 11:45:13 +0000 (11:45 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Apr 2011 11:45:13 +0000 (11:45 +0000)
JETAN/AliAnalysisTaskJetBackgroundSubtract.cxx

index 50339f7..37d27b4 100644 (file)
@@ -377,6 +377,8 @@ void AliAnalysisTaskJetBackgroundSubtract::UserExec(Option_t */*option*/)
    Float_t cent=0.;
    
    if(fAODOut)cent = fAODOut->GetHeader()->GetCentrality();
+   if(fAODIn) cent = fAODIn->GetHeader()->GetCentrality();
+
    if(evBkg)sigma=evBkg->GetSigma(1); 
 
    if(fSubtraction==kArea) rho = evBkg->GetBackground(1);