Write header with vertex position.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 12:07:57 +0000 (12:07 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 12:07:57 +0000 (12:07 +0000)
EVGEN/AliGenBox.cxx

index ebe0548..56c8e73 100644 (file)
@@ -28,6 +28,7 @@
 #include "AliConst.h"
 #include "AliGenBox.h"
 #include "AliRun.h"
+#include "AliGenEventHeader.h"
 
 ClassImp(AliGenBox)
 
@@ -102,6 +103,10 @@ void AliGenBox::Generate()
        }
        PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
     }
+
+    AliGenEventHeader* header = new AliGenEventHeader("BOX");
+    header->SetPrimaryVertex(fVertex);
+    gAlice->SetGenEventHeader(header); 
 }
 
 //_____________________________________________________________________________