git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing MC position of the primary vertex (Jouri)
[u/mrichter/AliRoot.git]
/
macros
/
TestVertexerTracks.C
diff --git
a/macros/TestVertexerTracks.C
b/macros/TestVertexerTracks.C
index 93e96a2e532d1f43081fa7837596d50695204386..9d2556f74653da8b5c9a6ef82b001510f1e17ba0 100644
(file)
--- a/
macros/TestVertexerTracks.C
+++ b/
macros/TestVertexerTracks.C
@@
-51,8
+51,10
@@
void TestVertexerTracks(){
rl->GetEvent(e);
AliESDVertex *vertESD = event->GetVertex();
rl->GetEvent(e);
AliESDVertex *vertESD = event->GetVertex();
- Double_t mcVertex[3], recVertex[3];
- vertESD->GetTruePos(mcVertex);
+ Double_t recVertex[3];
+ AliGenEventHeader *header=rl->GetHeader()->GenEventHeader();
+ TArrayF mcVertex(3);
+ header->PrimaryVertex(mcVertex);
cout<<"Primary vertex (MC) ";
for(Int_t kk=0;kk<3;kk++)cout<<mcVertex[kk]<<" ";
cout<<endl;
cout<<"Primary vertex (MC) ";
for(Int_t kk=0;kk<3;kk++)cout<<mcVertex[kk]<<" ";
cout<<endl;