]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PYTHIA6/AliGenPythiaJets.cxx
New quenching algorithm.
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythiaJets.cxx
index 275b4bafe9aa1cc2a65c50347cd1b777639d2ad3..f805ab4eaf5b56446df5bbd48f6f2325d6e4a37b 100644 (file)
@@ -46,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);
@@ -164,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;
@@ -218,6 +219,7 @@ Bool_t AliGenPythiaJets::CheckTrigger()
 AliGenPythiaJets& AliGenPythiaJets::operator=(const  AliGenPythiaJets& rhs)
 {
 // Assignment operator
+    rhs.Copy(*this);
     return *this;
 }