]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use fOsigma[2] for vertex smearing. Default is 2000 cm.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 May 2002 13:29:11 +0000 (13:29 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 May 2002 13:29:11 +0000 (13:29 +0000)
EVGEN/AliGenBeamGas.cxx
EVGEN/AliGenBeamGas.h

index d5596ed30ad79366ffc4025d7f3fb1ae138efd4f..dbd7c9052a13c0c0bbb98a66a76bf0186832a8c9 100644 (file)
 
 /*
 $Log$
-*/
+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 +42,9 @@ AliGenBeamGas::AliGenBeamGas()
 //  Constructor
 //
     fInteractions = 1;
+    fOsigma[0] =    0.;
+    fOsigma[1] =    0.;
+    fOsigma[2] = 2000.;
 }
 
 AliGenBeamGas::AliGenBeamGas(const AliGenBeamGas & ExtFile)
@@ -77,7 +84,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
 //      
index ce0056f2af321e5909ac69f497eee91b043767ab..071f03e865a6fecd74c350be612f8c9bb6d29d8c 100644 (file)
@@ -27,7 +27,7 @@ class AliGenBeamGas : public AliGenExtFile
  protected:
     Int_t fInteractions;
     
-    ClassDef(AliGenBeamGas,1) //Generate particles from external file
+    ClassDef(AliGenBeamGas,1) //Generate for beam gas interactions
        
 };
 #endif