Cosmetics changes...
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisTaskCheckV0.cxx
index fde144aa5d90afb0f86c4255684bb85247ff2931..08f41cbfa70ae74b216522580c2c4491fb6e6e49 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);
@@ -456,7 +451,7 @@ void AliAnalysisTaskCheckV0::Terminate(Option_t *)
   fHistV0MultiplicityOn->SetMarkerStyle(20);
   fHistV0MultiplicityOn->DrawCopy("ESAME");
 
-  TLegend *legendMultiplicity = new TLegend(0.4,0.4,0.65,0.6);
+  TLegend *legendMultiplicity = new TLegend(0.5,0.5,0.75,0.75);
   legendMultiplicity->AddEntry(fHistTrackMultiplicity,"tracks");
   legendMultiplicity->AddEntry(fHistV0Multiplicity,"all V^{0}");
   legendMultiplicity->AddEntry(fHistV0MultiplicityOff,"offline V^{0}");
@@ -495,21 +490,21 @@ void AliAnalysisTaskCheckV0::Terminate(Option_t *)
   }
 
   canCheckV0->cd(2);
-  fHistMassK0Off->SetMarkerStyle(24);
-  fHistMassK0Off->DrawCopy("E");
   fHistMassK0On->SetMarkerStyle(20);
-  fHistMassK0On->DrawCopy("ESAME");
+  fHistMassK0On->DrawCopy("E");
+  fHistMassK0Off->SetMarkerStyle(24);
+  fHistMassK0Off->DrawCopy("ESAME");
 
   canCheckV0->cd(3);
-  fHistMassLambdaOff->SetMarkerStyle(24);
-  fHistMassLambdaOff->DrawCopy("E");
   fHistMassLambdaOn->SetMarkerStyle(20);
-  fHistMassLambdaOn->DrawCopy("ESAME");
+  fHistMassLambdaOn->DrawCopy("E");
+  fHistMassLambdaOff->SetMarkerStyle(24);
+  fHistMassLambdaOff->DrawCopy("ESAME");
 
   canCheckV0->cd(4);
-  fHistMassAntiLambdaOff->SetMarkerStyle(24);
-  fHistMassAntiLambdaOff->DrawCopy("E");
   fHistMassAntiLambdaOn->SetMarkerStyle(20);
-  fHistMassAntiLambdaOn->DrawCopy("ESAME");
+  fHistMassAntiLambdaOn->DrawCopy("E");
+  fHistMassAntiLambdaOff->SetMarkerStyle(24);
+  fHistMassAntiLambdaOff->DrawCopy("ESAME");
 
 }