16 TPythia6Decayer* decayer = TPythia6Decayer::Instance();
20 decayer->SetForceDecay(TPythia6Decayer::kAll);
46 gMC->SetExternalDecayer(decayer);
48 TPythia6& pythia6 = *(TPythia6::Instance());
54 const Int_t npartnf = 9;
56 Int_t pdgnf[npartnf] = {13, -13, 211, -211, 321, -321, 130, 3312, 443};
57 for (Int_t ipartnf = 0; ipartnf < npartnf; ipartnf++) {
58 Int_t ipdg = pdgnf[ipartnf];
60 if (TString(gMC->GetName()) ==
"TGeant3")
61 gMC->SetUserDecay(ipdg);
63 pythia6.SetMDCY(pythia6.Pycomp(ipdg), 1, 1);
73 const Int_t nparthq = 3;
76 Int_t pdghq[nparthq] = {421, 3122, -3122};
77 for (Int_t iparthq = 0; iparthq < nparthq; iparthq++) {
78 Int_t ipdg = pdghq[iparthq];
79 if (TString(gMC->GetName()) ==
"TGeant3")
80 gMC->SetUserDecay(ipdg);
81 pythia6.SetMDCY(pythia6.Pycomp(ipdg), 1, 1);