From: morsch Date: Fri, 5 Mar 2004 12:07:57 +0000 (+0000) Subject: Write header with vertex position. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=42cca6d482837496e5b79357072cffee8cef83c9;p=u%2Fmrichter%2FAliRoot.git Write header with vertex position. --- diff --git a/EVGEN/AliGenBox.cxx b/EVGEN/AliGenBox.cxx index ebe0548d5e3..56c8e735b55 100644 --- a/EVGEN/AliGenBox.cxx +++ b/EVGEN/AliGenBox.cxx @@ -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); } //_____________________________________________________________________________