]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEPEMGEN/AliGenEpEmv1.cxx
DP:Misalignment of CPV added
[u/mrichter/AliRoot.git] / TEPEMGEN / AliGenEpEmv1.cxx
index f4a7f6addb6a90a3f5c2542a99e81e85b249bd95..450e3d2d96ca5c9291fff89ecab23fd876ffb2f3 100644 (file)
  *                                                                        *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1  2002/11/06 10:26:45  hristov
-Event generator for e+e- pair production (Yu.Kharlov)
-
-*/
+/* $Id$ */
 
 // Event generator of single e+e- pair production in ultraperipheral PbPb collisions
 // at 5.5 TeV/nucleon.
@@ -91,13 +86,6 @@ AliGenEpEmv1::AliGenEpEmv1()
   if (fPtMin == 0) fPtMin = 1.E-04;
 }
 
-//____________________________________________________________
-AliGenEpEmv1::AliGenEpEmv1(const AliGenEpEmv1 & gen)
-{
-  // copy constructor
-  gen.Copy(*this);
-}
-
 //____________________________________________________________
 AliGenEpEmv1::~AliGenEpEmv1()
 {
@@ -114,7 +102,7 @@ void AliGenEpEmv1::Init()
   fMass = TDatabasePDG::Instance()->GetParticle(11)->Mass();
 
   SetMC(new TEpEmGen());
-  fEpEmGen = (TEpEmGen*) fgMCEvGen;
+  fEpEmGen = (TEpEmGen*) fMCEvGen;
   fEpEmGen ->Initialize(fYMin,fYMax,fPtMin,fPtMax);
   fEvent = 0;
 }
@@ -175,7 +163,7 @@ void AliGenEpEmv1::Generate()
   id =  11;
   if (fDebug == 2)
     printf("id=%+3d, p = (%+11.4e,%+11.4e,%+11.4e) GeV\n",id,p[0],p[1],p[2]);
-  SetTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
+  PushTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
 
   // Produce positron
   mt = TMath::Sqrt(ptPositron*ptPositron + fMass*fMass);
@@ -185,7 +173,7 @@ void AliGenEpEmv1::Generate()
   id = -11;
   if (fDebug == 2)
     printf("id=%+3d, p = (%+11.4e,%+11.4e,%+11.4e) GeV\n",id,p[0],p[1],p[2]);
-  SetTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
+  PushTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
   
   fEvent++;
   if (fEvent%1000 == 0) {