17 TPythia6Decayer* decayer = TPythia6Decayer::Instance();
21 decayer->SetForceDecay(TPythia6Decayer::kAll);
47 gMC->SetExternalDecayer(decayer);
49 TPythia6& pythia6 = *(TPythia6::Instance());
55 const Int_t npartnf = 9;
57 Int_t pdgnf[npartnf] = {13, -13, 211, -211, 321, -321, 130, 3312, 443};
58 for (Int_t ipartnf = 0; ipartnf < npartnf; ipartnf++) {
59 Int_t ipdg = pdgnf[ipartnf];
61 if (TString(gMC->GetName()) ==
"TGeant3")
62 gMC->SetUserDecay(ipdg);
64 pythia6.SetMDCY(pythia6.Pycomp(ipdg), 1, 1);
74 const Int_t nparthq = 3;
77 Int_t pdghq[nparthq] = {421, 3122, -3122};
78 for (Int_t iparthq = 0; iparthq < nparthq; iparthq++) {
79 Int_t ipdg = pdghq[iparthq];
80 if (TString(gMC->GetName()) ==
"TGeant3")
81 gMC->SetUserDecay(ipdg);
82 pythia6.SetMDCY(pythia6.Pycomp(ipdg), 1, 1);