66 bool inResonance)
override {
69 if (!inResonance)
return false;
72 int iTop = partonSystemsPtr->getInRes(iSys);
73 if (iTop == 0 || event[iTop].idAbs() != 6)
return false;
76 int sizeOut = partonSystemsPtr->sizeOut(iSys);
77 if (sizeOut == 2)
return false;
81 int iEmt = sizeOld + 1;
82 int iRec = sizeOld + 2;
87 iRad =
event[iRad].mother1();
88 iRec =
event[iRec].mother1();
92 if (event[iEmt].
id() != 21)
return false;
93 if (event[iTop].
id() == 6) {
94 if (event[iEmt].col() != event[iTop].col())
return false;
96 if (event[iEmt].acol() != event[iTop].acol())
return false;
100 if (event[iRec].idAbs() != 24) {
101 cout <<
" ERROR: recoiler is " <<
event[iRec].id() << endl;
106 double pRadRec =
event[iRad].p() *
event[iRec].p();
107 double pRadEmt =
event[iRad].p() *
event[iEmt].p();
108 double pRecEmt =
event[iRec].p() *
event[iEmt].p();
109 double wtW = 2. * pRadRec / (pRadEmt * pRecEmt)
110 -
pow2(event[iRad].m() / pRadEmt);
115 double pRadTop =
event[iRad].p() *
event[iTop].p();
116 double pTopEmt =
event[iTop].p() *
event[iEmt].p();
117 double wtT = 2. * pRadTop / (pRadEmt * pTopEmt)
118 -
pow2(event[iRad].m() / pRadEmt) -
pow2(event[iTop].m() / pTopEmt);
125 std::ios oldState(
nullptr);
126 std::cout <<
"\n now event with sizeOld = " << sizeOld <<
", iSys = "
127 << iSys <<
", sizeOut = " << sizeOut << scientific
129 <<
", weight with W = " << wtW <<
" and with t = " << wtT << std::endl;
130 partonSystemsPtr->list();
132 std::cout.copyfmt(oldState);
136 return (wtT < wtW * rndmPtr->flat());