]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEPEMGEN/AliGenEpEmv1.cxx
Adding the option to zero shared entries below threshold
[u/mrichter/AliRoot.git] / TEPEMGEN / AliGenEpEmv1.cxx
index 467c3a1b4bf2769c562fab3fbc413a8bcd9087df..3aa0f17c204832424062b11b389da8de04fc8165 100644 (file)
@@ -79,21 +79,18 @@ ClassImp(AliGenEpEmv1)
 
 //------------------------------------------------------------
 
-AliGenEpEmv1::AliGenEpEmv1()
+AliGenEpEmv1::AliGenEpEmv1():
+  fMass(0),
+  fEpEmGen(0),
+  fDebug(0),
+  fEvent(0),
+  fHeader(AliGenEventHeader())
 {
   // Default constructor
   // Avoid zero pt
   if (fPtMin == 0) fPtMin = 1.E-04;
 }
 
-//____________________________________________________________
-AliGenEpEmv1::AliGenEpEmv1(const AliGenEpEmv1 & gen)
-    :AliGenMC(gen)
-{
-  // copy constructor
-  gen.Copy(*this);
-}
-
 //____________________________________________________________
 AliGenEpEmv1::~AliGenEpEmv1()
 {
@@ -188,5 +185,7 @@ void AliGenEpEmv1::Generate()
     printf("=====> AliGenEpEmv1::Generate(): \n   Event %d, sigma=%f +- %f kb\n",
           fEvent,fEpEmGen->GetXsection(),fEpEmGen->GetDsection());
   }
+  fHeader.SetEventWeight(weight);
+  AddHeader(&fHeader);
 }