From: morsch Date: Fri, 2 Feb 2001 15:21:10 +0000 (+0000) Subject: Set high water mark after last particle. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=d9ea0e3b20e98f4417794ba609229d87ed975eb6 Set high water mark after last particle. Use Vertex() method for Vertex. --- diff --git a/EVGEN/AliGenParam.cxx b/EVGEN/AliGenParam.cxx index b5aceadf8c2..b4e24506288 100644 --- a/EVGEN/AliGenParam.cxx +++ b/EVGEN/AliGenParam.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.26 2000/12/21 16:24:06 morsch +Coding convention clean-up + Revision 1.25 2000/11/30 07:12:50 alibrary Introducing new Rndm and QA classes @@ -318,12 +321,17 @@ void AliGenParam::Generate() // Calculating vertex position per event for (j=0;j<3;j++) origin0[j]=fOrigin[j]; if(fVertexSmear==kPerEvent) { - Rndm(random,6); - for (j=0;j<3;j++) { - origin0[j]+=fOsigma[j]*TMath::Cos(2*random[2*j]*TMath::Pi())* - TMath::Sqrt(-2*TMath::Log(random[2*j+1])); - } +// Rndm(random,6); +// for (j=0;j<3;j++) { +// origin0[j]+=fOsigma[j]*TMath::Cos(2*random[2*j]*TMath::Pi())* +// TMath::Sqrt(-2*TMath::Log(random[2*j+1])); +// TMath::Sqrt(-2*TMath::Log(random[2*j+1])); +// } +// } + Vertex(); + for (j=0;j<3;j++) origin0[j]=fVertex[j]; } + Int_t ipa=0; // Generating fNpart particles while (ipaSetHighWaterMark(nt); + } Bool_t AliGenParam::ChildSelected(Int_t ip)