TMath::Cos(2*random[0]*TMath::Pi())*
TMath::Sqrt(-2*TMath::Log(random[1]));
}
- PushTrack(fTrackIt,-1,fIpart,p,origin,polar,time,kPPrimary,nt);
+ PushTrack(fTrackIt,-1,fIpart,p,origin,polar,time,kPPrimary,nt, 1., 1);
}
AliGenEventHeader* header = new AliGenEventHeader("BOX");
ForceDecay();
}
+void AliDecayerPythia::SwitchOffParticle(Int_t kf)
+{
+//switch off decay for particle "kf"
+fPythia->SetMDCY(fPythia->Pycomp(kf),1,0);
+}
+
void AliDecayerPythia::Decay(Int_t idpart, TLorentzVector* p)
{
// Decay a particle