+void AliDecayerPythia::ForceParticleDecay(Int_t particle, Int_t* products, Int_t* mult, Int_t npart)
+{
+//
+// Force decay of particle into products with multiplicity mult
+
+ Int_t kc=fPythia->Pycomp(particle);
+ fPythia->SetMDCY(kc,1,1);
+ Int_t ifirst=fPythia->GetMDCY(kc,2);
+ Int_t ilast=ifirst+fPythia->GetMDCY(kc,3)-1;
+ fBraPart[kc] = 1;
+//
+// Loop over decay channels
+ for (Int_t channel = ifirst; channel <= ilast; channel++) {
+ Int_t nprod = 0;
+ for (Int_t i = 0; i < npart; i++) {
+ nprod += (CountProducts(channel, products[i]) >= mult[i]);
+ }
+ if (nprod) {
+ fPythia->SetMDME(channel,1,1);
+ } else {
+ fPythia->SetMDME(channel,1,0);
+ fBraPart[kc]-=fPythia->GetBRAT(channel);
+ }
+ }
+}
+