]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PYTHIA6/AliGenPythiaJets.cxx
Including of Lambda(1520) to the generation. Small fraction of Lambda0 (0.2), Sigma0...
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythiaJets.cxx
index 1c883ba5ae7dfad9e6bd7ca3c60fbd58d8dd8d81..f805ab4eaf5b56446df5bbd48f6f2325d6e4a37b 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1  2003/03/15 15:00:48  morsch
-Classed imported from EVGEN.
-
-Revision 1.3  2003/02/26 13:08:22  morsch
-TParticle included.
-
-Revision 1.2  2003/02/26 10:26:32  morsch
-AliGenPythiaJets: jets centered on EMCAL
-
-Revision 1.1  2003/01/17 04:10:31  morsch
-First commit.
-*/
+/* $Id$ */
 
 //
 // Generator using the TPythia interface (via AliPythia)
@@ -59,7 +46,8 @@ AliGenPythiaJets::AliGenPythiaJets(Int_t npart)
     fTitle= "Jet Generator using PYTHIA";
 }
 
-AliGenPythiaJets::AliGenPythiaJets(const AliGenPythiaJets & Pythia)
+AliGenPythiaJets::AliGenPythiaJets(const AliGenPythiaJets & Pythia):
+    AliGenPythia(Pythia)
 {
 // copy constructor
     Pythia.Copy(*this);
@@ -177,7 +165,7 @@ void AliGenPythiaJets::Generate()
                origin[1] = fOrigin[1]+iparticle->Vy()/10.;
                origin[2] = fOrigin[2]+iparticle->Vz()/10.;
                Float_t tof=kconv*iparticle->T();
-               SetTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
+               PushTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
                         tof, kPPrimary, nt, 1., ks);
                KeepTrack(nt);
                pParent[i] = nt;
@@ -231,6 +219,7 @@ Bool_t AliGenPythiaJets::CheckTrigger()
 AliGenPythiaJets& AliGenPythiaJets::operator=(const  AliGenPythiaJets& rhs)
 {
 // Assignment operator
+    rhs.Copy(*this);
     return *this;
 }