Use AliGrayParticleModel.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jan 2003 10:09:57 +0000 (10:09 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jan 2003 10:09:57 +0000 (10:09 +0000)
EVGEN/AliGenGrayParticles.cxx
EVGEN/AliGenGrayParticles.h

index bd2a475627f92ab8e79a34b91c19d5bae2b08b67..3c1a4c5635ab85153e24fa3a7b8808f3197b779f 100644 (file)
 
 /*
 $Log$
+Revision 1.3  2002/12/02 10:02:40  morsch
+Corrections introduced by F. Silker:
+- SetBetaSource
+- Particle type according to charge.
+
 Revision 1.2  2002/10/14 14:55:35  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -32,6 +37,7 @@ Gray particle generator, first commit.
   Original code by  Ferenc Sikler  <sikler@rmki.kfki.hu>
  */
 #include "AliGenGrayParticles.h"
+#include "AliGrayParticleModel.h"
 #include "AliPDG.h"
 #include <TDatabasePDG.h>
 
index 108dae67f31e62d22cf08c8b0d8d66489c32113d..3882834a34b01828d924b4cb4c6d1085c0f475c3 100644 (file)
@@ -6,6 +6,7 @@
 /* $Id$ */
 
 #include "AliGenerator.h"
+class AliGrayParticleModel;
 
 class AliGenGrayParticles : public AliGenerator
 {
@@ -21,7 +22,10 @@ public:
     virtual void SetCharge(Int_t c = 1) {fCharge = c;}
     virtual void SetTemperature(Double_t t = 0.05) {fTemperature = t;}
     virtual void SetBetaSource(Double_t b = 0.05) {fBetaSource = b;}
-    
+    //
+    virtual void SetGrayParticleModel(AliGrayParticleModel* model) 
+       {fGrayParticleModel = model;}
+           
  protected:
     void     GenerateSlow(Int_t charge, Double_t T, Double_t beta, Float_t* q);
     Double_t Maxwell(Double_t m, Double_t p, Double_t t);
@@ -36,6 +40,8 @@ public:
     Int_t    fCharge;      // Slow nucleon charge
     Float_t  fTemperature; // Source Temperature
     Float_t  fBetaSource;  // Source beta
+    //
+    AliGrayParticleModel* fGrayParticleModel; // The gray particle model
   ClassDef(AliGenGrayParticles,1) // Gray Particle Generator
 };
 #endif