]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliGenerator.cxx
- AliStack::FinishEvent() not called for lego run
[u/mrichter/AliRoot.git] / STEER / AliGenerator.cxx
index cb28af264ce9d583c369c91e15c70fe8570a5647..f08162882ae7bc6799f499cd9f9771508a1d1b76 100644 (file)
@@ -35,7 +35,9 @@
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 #include <TGenerator.h>
+#include <TMCProcess.h>
 
+#include "AliLog.h"
 #include "AliCollisionGeometry.h"
 #include "AliConfig.h"
 #include "AliGenerator.h"
@@ -49,6 +51,8 @@ ClassImp(AliGenerator)
 
 //_______________________________________________________________________
 AliGenerator::AliGenerator():
+  TNamed(),
+  AliRndm(),
   fMCEvGen(0),
   fThetaMin(0),
   fThetaMax(0),
@@ -70,18 +74,19 @@ AliGenerator::AliGenerator():
   fVertexSource(kInternal),
   fCutVertexZ(0),
   fTrackIt(0),
+  fVertexGenerator(0),
   fOrigin(3),
   fOsigma(3),
   fVertex(3),
   fStack(0),
+  fContainer(0),
   fCollisionGeometry(0)
 {
   //
   // Default constructor
   //
     if (gAlice) {
-       if (gAlice->GetDebug()>0)
-           printf("\n AliGenerator Default Constructor\n\n");
+       AliDebug(1, "AliGenerator Default Constructor");
        AliMC * mc = gAlice->GetMCApp();
        if (mc) mc->SetGenerator(this);
     }
@@ -106,6 +111,8 @@ AliGenerator::AliGenerator():
 
 //_______________________________________________________________________
 AliGenerator::AliGenerator(Int_t npart):
+  TNamed(),
+  AliRndm(),
   fMCEvGen(0),
   fThetaMin(0),
   fThetaMax(0),
@@ -127,18 +134,19 @@ AliGenerator::AliGenerator(Int_t npart):
   fVertexSource(kInternal),
   fCutVertexZ(0),
   fTrackIt(0),
+  fVertexGenerator(0),
   fOrigin(3),
   fOsigma(3),
   fVertex(3),
   fStack(0),
+  fContainer(0),
   fCollisionGeometry(0)
 {
   //
   // Standard constructor
   //
     if (gAlice) {
-       if (gAlice->GetDebug()>0)
-           printf("\n AliGenerator Constructor initializing number of particles \n\n");
+        AliDebug(1, "AliGenerator Constructor initializing number of particles");
        AliMC * mc = gAlice->GetMCApp();
        if (mc) mc->SetGenerator(this);
     }
@@ -188,10 +196,13 @@ AliGenerator::AliGenerator(const AliGenerator &gen):
   fVertexSource(kInternal),
   fCutVertexZ(0),
   fTrackIt(0),
+  fVertexGenerator(0),
   fOrigin(3),
   fOsigma(3),
   fVertex(3),
-  fStack(0)
+  fStack(0),
+  fContainer(0),
+  fCollisionGeometry(0)
 {
   //
   // Copy constructor
@@ -215,7 +226,7 @@ void AliGenerator::Copy(TObject &/* gen */) const
   //
   // Copy *this onto gen
   //
-  Fatal("Copy","Not implemented!\n");
+  AliFatal("Not implemented!");
 }
 
 //_______________________________________________________________________