]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenBeamGas.cxx
Merging the VirtualMC branch to the main development branch (HEAD)
[u/mrichter/AliRoot.git] / EVGEN / AliGenBeamGas.cxx
index d5596ed30ad79366ffc4025d7f3fb1ae138efd4f..1876a51f95b83c3365d7e189898fc400b50b0b88 100644 (file)
 
 /*
 $Log$
-*/
+Revision 1.2.6.1  2002/06/10 14:57:41  hristov
+Merged with v3-08-02
+
+Revision 1.2  2002/05/15 13:29:11  morsch
+Use fOsigma[2] for vertex smearing. Default is 2000 cm.
 
+Revision 1.1  2002/05/15 08:59:36  morsch
+First commit.
 
-// Event generator that using an instance of type AliGenReader
-// reads particles from a file and applies cuts. 
+*/
+
+//
+// Generator to simulate beam gas interactions.
+// At present single interactions are read from an external file. 
+// Several interactions are combined in one event.
 
 
 #include "AliGenBeamGas.h"
@@ -38,6 +48,9 @@ AliGenBeamGas::AliGenBeamGas()
 //  Constructor
 //
     fInteractions = 1;
+    fOsigma[0] =    0.;
+    fOsigma[1] =    0.;
+    fOsigma[2] = 2000.;
 }
 
 AliGenBeamGas::AliGenBeamGas(const AliGenBeamGas & ExtFile)
@@ -77,7 +90,7 @@ void AliGenBeamGas::Generate()
 //
 //  Interaction vertex
 //
-      origin[2] = 4000. * random[0] - 2000.;
+      origin[2] = 2. * fOsigma[2] * random[0] - fOsigma[2];
 //
 //    beam 1 or 2
 //