74 finalBaryon(0), initialCharge(0), finalCharge(0), initialStrange(0),
81 absoluteLimit(absolute), initialBaryon(0), finalBaryon(0),
82 initialCharge(0), finalCharge(0), initialStrange(0),
92 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide"
113 ((pbullet ? pbullet->baryon() : nbullet ? nbullet->
getA() : 0) +
114 (ptarget ? ptarget->
baryon() : ntarget ? ntarget->
getA() : 0) );
123 std::vector<G4InuclElementaryParticle>& outParts =
127 elMass += outParts[i].getDefinition()->GetPDGMass();
148 <<
" final px " <<
final.px() <<
" py " <<
final.py()
149 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
159 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<FRAG>)"
173 std::vector<G4InuclElementaryParticle>& outParts =
178 elMass += outParts[i].getDefinition()->GetPDGMass();
197 <<
" final px " <<
final.px() <<
" py " <<
final.py()
198 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
209 const std::vector<G4InuclElementaryParticle>& particles) {
211 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
220 const std::vector<G4InuclElementaryParticle>& particles) {
223 <<
")::collide(<FRAG>,<vector>)" <<
G4endl;
233 const std::vector<G4InuclNuclei>& fragments) {
235 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
247 const std::vector<G4CascadParticle>& particles) {
250 <<
")::collide(<cparticles>)" <<
G4endl;
262 const std::vector<G4CascadParticle>& cparticles) {
265 <<
")::collide(<EP>,<CP>)" <<
G4endl;
281 << (relokay ?
" conserved" :
" VIOLATED")
282 <<
" absolute " <<
deltaE()
283 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
286 <<
" conserved absolute " <<
deltaE() <<
" conserved" <<
G4endl;
289 return (relokay && absokay);
299 <<
relativeKE() << (relokay ?
" conserved" :
" VIOLATED")
301 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
305 <<
" conserved" <<
G4endl;
308 return (relokay && absokay);
318 << (relokay ?
" conserved" :
" VIOLATED")
319 <<
" absolute " <<
deltaP()
320 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
323 <<
" conserved absolute " <<
deltaP() <<
" conserved" <<
G4endl;
326 return (relokay && absokay);