Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALICE-open-data
AliESD_Example
Commits
b4765a59
Commit
b4765a59
authored
Sep 02, 2019
by
Rafael Pezzi
Browse files
Dispay Event Vertex position
parent
58dea89c
Pipeline
#12
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
AliAnalysisTaskMyTask.cxx
View file @
b4765a59
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment