]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPHIC/AliGenTPHIC.cxx
Bug found (Jean-Pierre)
[u/mrichter/AliRoot.git] / TPHIC / AliGenTPHIC.cxx
index 79c5b69734e300096138cac46ac9eccbb195a7f2..055885c9297a4a491ed65318612ef2fe596141ef 100644 (file)
 
 /* $Id$ */
 
-/*
-$Log$
-*/
-
 // Event generator of two-photon processes
 // in ultra-peripheral ion collisions.
 // 5 two-photon process are implemented, see comments to SetProcess().
@@ -95,7 +91,8 @@ AliGenTPHIC::AliGenTPHIC()
 }
 
 //____________________________________________________________
-AliGenTPHIC::AliGenTPHIC(const AliGenTPHIC & gen)
+AliGenTPHIC::AliGenTPHIC(const AliGenTPHIC & gen):
+    AliGenMC(gen)
 {
   // copy constructor
   gen.Copy(*this);
@@ -179,7 +176,7 @@ void AliGenTPHIC::Generate()
     tof     = kconv*iparticle->T();
     if (ks == 1) trackIt = 1;
     else         trackIt = 0;
-    SetTrack(fTrackIt*trackIt,iparent,kf,p,origin,polar,tof,kPPrimary,nt,weight,ks);
+    PushTrack(fTrackIt*trackIt,iparent,kf,p,origin,polar,tof,kPPrimary,nt,weight,ks);
     KeepTrack(nt); 
 
     if (fDebug == 2)
@@ -398,3 +395,12 @@ void AliGenTPHIC::SetProcess       (Int_t   proc  )
   // calculated so far
   return fTPHICgen->GetXSTOTE();
 }
+
+void AliGenTPHIC::Copy(TObject&) const
+{
+    //
+    // Copy 
+    //
+    Fatal("Copy","Not implemented!\n");
+}
+