Commit b4765a59 authored by Rafael Peretti Pezzi's avatar Rafael Peretti Pezzi

Dispay Event Vertex position

parent 58dea89c
Pipeline #12 canceled with stages
......@@ -29,6 +29,7 @@
#include "AliAnalysisTaskMyTask.h"
#include "AliESDtrack.h"
#include "Riostream.h"
#include "AliESDVertex.h"
Int_t esd_event_id = 0; // global variable to store unique event id
......@@ -126,8 +127,12 @@ void AliAnalysisTaskMyTask::UserExec(Option_t *)
Int_t iTracks(fESD->GetNumberOfTracks()); // see how many tracks there are in the event
Double_t vX = fESD->GetPrimaryVertex()->GetX();
Double_t vY = fESD->GetPrimaryVertex()->GetY();
Double_t vZ = fESD->GetPrimaryVertex()->GetZ();
// Add Event details to summaryfile and eventsdetail
summaryfile << " Event " << esd_event_id << ": iTracks = " << iTracks << endl;
summaryfile << " Event " << esd_event_id << ": iTracks = " << iTracks << " Vertex: X = " << vX << " Y = " << vY << " Z = " << vZ << endl;
eventsdetail << "********** Event " << esd_event_id << ": iTracks = " << iTracks << " **********" << endl;
for(Int_t i(0); i < iTracks; i++) { // loop ove rall these tracks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment