]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Set high water mark after last particle.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Feb 2001 15:21:10 +0000 (15:21 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Feb 2001 15:21:10 +0000 (15:21 +0000)
Use Vertex() method for Vertex.

EVGEN/AliGenParam.cxx

index b5aceadf8c29e73e97db5d31909160bcaf4d943f..b4e2450628844a3d879772a500eec52608a978c3 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
 
 /*
 $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
 
 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) {
 // 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 (ipa<fNpart) {
   Int_t ipa=0;
 // Generating fNpart particles
   while (ipa<fNpart) {
@@ -460,6 +468,8 @@ void AliGenParam::Generate()
          break;
     } // while
   } // event loop
          break;
     } // while
   } // event loop
+  gAlice->SetHighWaterMark(nt);
+  
 }
 
 Bool_t AliGenParam::ChildSelected(Int_t ip)
 }
 
 Bool_t AliGenParam::ChildSelected(Int_t ip)