/* $Id$ */
-/*
-$Log$
-Revision 1.1.2.1 2003/05/20 17:27:07 hristov
-Merging with v3-09-09
-
-Revision 1.1 2003/05/09 09:18:11 hristov
-Adding TPHIC
-
-*/
-
// Event generator of two-photon processes
// in ultra-peripheral ion collisions.
// 5 two-photon process are implemented, see comments to SetProcess().
#include <TParticle.h>
#include <TParticlePDG.h>
#include <TDatabasePDG.h>
+#include <TClonesArray.h>
+
#include "AliPythia.h"
#include "AliRun.h"
#include <AliGenTPHIC.h>
//------------------------------------------------------------
-AliGenTPHIC::AliGenTPHIC()
+AliGenTPHIC::AliGenTPHIC() :
+ AliGenMC(),
+ fTPHICgen(0x0),
+ fPythia(0x0),
+ fParticles(0x0),
+ fEvent(-1),
+ fDebug(0),
+ fDebugEventFirst(-1),
+ fDebugEventLast(-1)
{
// Constructor: create generator instance,
// create particle array
SetKfOnium ();
}
-//____________________________________________________________
-AliGenTPHIC::AliGenTPHIC(const AliGenTPHIC & gen)
-{
- // copy constructor
- gen.Copy(*this);
-}
-
//____________________________________________________________
AliGenTPHIC::~AliGenTPHIC()
{
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)