Fixed cast to AliVAODHeader
authormfloris <michele.floris@cern.ch>
Wed, 10 Sep 2014 09:23:35 +0000 (11:23 +0200)
committerhristov <Peter.Hristov@cern.ch>
Mon, 27 Oct 2014 12:50:02 +0000 (13:50 +0100)
JETAN/AliAnalysisTaskJetBackgroundSubtract.cxx
JETAN/AliAnalysisTaskJetCluster.cxx

index 1f7b5a0..3df2fb7 100644 (file)
@@ -410,8 +410,8 @@ void AliAnalysisTaskJetBackgroundSubtract::UserExec(Option_t */*option*/)
    TLorentzVector backgroundv;
    Float_t cent=0.;
    
-   if(fAODOut)cent = fAODOut->GetHeader()->GetCentrality();
-   if(fAODIn) cent = fAODIn->GetHeader()->GetCentrality();
+   if(fAODOut)cent = ((AliVAODHeader*)fAODOut->GetHeader())->GetCentrality();
+   if(fAODIn) cent = ((AliVAODHeader*)fAODIn->GetHeader() )->GetCentrality();
 
    if(evBkg)sigma=evBkg->GetSigma(1); 
   
index 8173f51..9bf03c6 100644 (file)
@@ -932,7 +932,7 @@ void AliAnalysisTaskJetCluster::UserExec(Option_t */*option*/)
     TString vtxTitle(vtxAOD->GetTitle());
     zVtx = vtxAOD->GetZ();
 
-    cent = fAOD->GetHeader()->GetCentrality();
+    cent = ((AliVAODHeader*)fAOD->GetHeader())->GetCentrality();
     if(cent<10)cenClass = 0;
     else if(cent<30)cenClass = 1;
     else if(cent<50)cenClass = 2;