Cleanup obsolete dependencies and update calculations where primary vertex is needed...
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jun 2008 21:49:58 +0000 (21:49 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jun 2008 21:49:58 +0000 (21:49 +0000)
PWG2/SPECTRA/AliAnalysisTaskCheckV0.cxx
PWG2/SPECTRA/AliAnalysisTaskCheckV0.h

index fde144aa5d90afb0f86c4255684bb85247ff2931..bda9e8bbf85cf1722fc19eab7fcdb360cd5f419c 100644 (file)
 //            This task is for QAing the V0s from ESD/AOD
 //              Origin: B.H. Nov2007, hippolyt@in2p3.fr
 //-----------------------------------------------------------------
-#include "TChain.h"
-#include "TTree.h"
 #include "TList.h"
 #include "TH1F.h"
 #include "TCanvas.h"
 #include "TLegend.h"
 
 #include "AliAnalysisTaskSE.h"
-#include "AliAnalysisManager.h"
 
 #include "AliESDEvent.h"
 #include "AliESDVertex.h"
-#include "AliESDInputHandler.h"
 #include "AliAODEvent.h"
 #include "AliAODVertex.h"
-#include "AliAODInputHandler.h"
 
 #include "AliESDv0.h"
 
@@ -295,8 +290,8 @@ void AliAnalysisTaskCheckV0::UserExec(Option_t *)
        lOnFlyStatus = v0->GetOnFlyStatus();
        lChi2V0 = v0->GetChi2V0();
        lDcaV0Daughters = v0->GetDcaV0Daughters();
-       lDcaV0ToPrimVertex = v0->GetD();
-       lV0CosineOfPointingAngle = v0->GetV0CosineOfPointingAngle();
+       lDcaV0ToPrimVertex = v0->GetD(tPrimaryVtxPosition[0],tPrimaryVtxPosition[1],tPrimaryVtxPosition[2]);
+       lV0CosineOfPointingAngle = v0->GetV0CosineOfPointingAngle(tPrimaryVtxPosition[0],tPrimaryVtxPosition[1],tPrimaryVtxPosition[2]);
 
        // Getting invariant mass infos directly from ESD
        v0->ChangeMassHypothesis(310);
index 8dc9f0b13b0996146580d22d60024f3001d08566..c39c71dbd1ca58a83eece33d869440584b785acc 100644 (file)
@@ -12,8 +12,6 @@
 class TString;
 class TList;
 class TH1F;
-class AliESDEvent;
-class AliAODEvent;
 
 #include "AliAnalysisTaskSE.h"