51 widthOfPtSquare(-2*
sqr(sigmaPt)) , minExtraMass(minextraMass),
85 Psum=Pprojectile+Ptarget;
91 if ( Ptmp.pz() <= 0. )
117 if (whilecount++ >= 500 && (whilecount%100)==0)
121 if (whilecount > 1000 )
131 G4double Xmin = minmass / ( Pprojectile.e() + Ptarget.e() );
137 G4double Qplus =-1 * pt2 / Xminus/Ptarget.minus();
138 G4double Qminus= pt2 / Xplus /Pprojectile.plus();
140 if ( KeepProjectile )
143 / (Pprojectile.plus() + Qplus )
144 - Pprojectile.minus();
147 Qplus = Ptarget.plus()
149 / (Ptarget.minus() - Qminus );
152 Qmomentum.
setPz( (Qplus-Qminus)/2 );
153 Qmomentum.
setE( (Qplus+Qminus)/2 );
161 }
while ( (Ptarget-Qmomentum).mag2() <= Mtarget2
162 || (Pprojectile+Qmomentum).mag2() <= Mprojectile2
163 || (Ptarget-Qmomentum).
e() < 0.
164 || (Pprojectile+Qmomentum).
e() < 0. );
169 Pprojectile += Qmomentum;
171 Ptarget -= Qmomentum;
212 if ( Xmin <= 0. || range <=0. )
214 G4cout <<
" Xmin, range : " << Xmin <<
" , " << range <<
G4endl;
215 throw G4HadronicException(__FILE__, __LINE__,
"G4SingleDiffractiveExcitation::ChooseX : Invalid arguments ");
234 }
while ( pt2 > maxPtSquare);
240 return G4ThreeVector (pt2*std::cos(phi), pt2*std::sin(phi), 0.);