Warning message and error related to copy constructor corrected.
[u/mrichter/AliRoot.git] / TPHIC / AliGenTPHIC.cxx
index 79c5b69..932737d 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(AliGenTPHIC&) const
+{
+    //
+    // Copy 
+    //
+    Fatal("Copy","Not implemented!\n");
+}
+