117 if (
Color.size()!=0)
return;
146 RightMom.
setPx(HadronMom.
px() - pt.
x());
147 RightMom.
setPy(HadronMom.
py() - pt.
y());
153 G4double RightMinus = 0.5*(Local1 + Local2);
156 if (LeftMinus <= 0.) {
157 RightMinus = 0.5*(Local1 - Local2);
158 LeftMinus = HadronMom.
minus() - RightMinus;
164 LeftMom.
setPz(0.5*(LeftPlus - LeftMinus));
165 LeftMom.
setE (0.5*(LeftPlus + LeftMinus));
166 RightMom.
setPz(0.5*(RightPlus - RightMinus));
167 RightMom.
setE (0.5*(RightPlus + RightMinus));
172 Color.push_back(Left);
185 for (aSeaPair = 0; aSeaPair < nSeaPair; aSeaPair++)
198 Color.push_back(aParton);
202 aParton->
SetSpinZ(-firstPartonSpinZ);
215 Color.push_back(pColorParton);
266 const G4int maxNumberOfLoops = 1000;
267 G4int loopCounter = -1;
269 ++loopCounter < maxNumberOfLoops ) {;}
270 if ( loopCounter >= maxNumberOfLoops ) {
271 R = 0.99*maxPtSquare;
282 if (isAntiQuark) aPDGCode*=-1;
298 for(
G4int ii=1; ii<100; ii++)
305 if (y>ymax) ymax =
y;
308 G4double xMax=1-(totalSea+1)*anXmin;
312 "G4QGSMSplitableHadron - Fatal: Cannot sample parton densities under these constraints.");
314 const G4int maxNumberOfLoops = 1000;
315 G4int loopCounter = 0;
325 }
while( (x2>y) && ++loopCounter < maxNumberOfLoops );
326 if ( loopCounter >= maxNumberOfLoops ) {
327 x1 = 0.5*( anXmin + xMax );