]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/TestVertexerTracks.C
remove temporary task that was used to troubleshoot the gamma flow anaysis
[u/mrichter/AliRoot.git] / macros / TestVertexerTracks.C
index 93e96a2e532d1f43081fa7837596d50695204386..ea21a1684ea7c5f7cd6af50f0c9bed86b1474f91 100644 (file)
@@ -16,7 +16,7 @@
 
 void TestVertexerTracks(){
   if (gAlice) {
-    delete gAlice->GetRunLoader();
+    delete AliRunLoader::Instance();
     delete gAlice;
     gAlice = 0x0;
   }
@@ -51,8 +51,10 @@ void TestVertexerTracks(){
 
   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;