72 finalBaryon(0), initialCharge(0), finalCharge(0), initialStrange(0),
79 absoluteLimit(absolute), initialBaryon(0), finalBaryon(0),
80 initialCharge(0), finalCharge(0), initialStrange(0),
90 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide"
111 ((pbullet ? pbullet->baryon() : nbullet ? nbullet->
getA() : 0) +
112 (ptarget ? ptarget->
baryon() : ntarget ? ntarget->
getA() : 0) );
131 <<
" final px " <<
final.px() <<
" py " <<
final.py()
132 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
142 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<FRAG>)"
163 <<
" final px " <<
final.px() <<
" py " <<
final.py()
164 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
175 const std::vector<G4InuclElementaryParticle>& particles) {
177 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
186 const std::vector<G4InuclElementaryParticle>& particles) {
189 <<
")::collide(<FRAG>,<vector>)" <<
G4endl;
200 const std::vector<G4InuclNuclei>& fragments) {
202 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
215 const std::vector<G4CascadParticle>& particles) {
218 <<
")::collide(<cparticles>)" <<
G4endl;
231 const std::vector<G4CascadParticle>& cparticles) {
234 <<
")::collide(<EP>,<CP>)" <<
G4endl;
251 << (relokay ?
" conserved" :
" VIOLATED")
252 <<
" absolute " <<
deltaE()
253 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
256 <<
" conserved absolute " <<
deltaE() <<
" conserved" <<
G4endl;
259 return (relokay && absokay);
268 <<
relativeKE() << (relokay ?
" conserved" :
" VIOLATED")
270 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
274 <<
" conserved" <<
G4endl;
277 return (relokay && absokay);
286 << (relokay ?
" conserved" :
" VIOLATED")
287 <<
" absolute " <<
deltaP()
288 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
291 <<
" conserved absolute " <<
deltaP() <<
" conserved" <<
G4endl;
294 return (relokay && absokay);
G4int getStrangeness() const
void addOutgoingNuclei(const std::vector< G4InuclNuclei > &nuclea)
G4LorentzVector getMomentum() const
G4bool baryonOkay() const
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4bool strangeOkay() const
static const G4double tolerance
static const G4double tolerance
G4LorentzVector getTotalOutputMomentum() const
void add(const G4CollisionOutput &right)
G4GLOB_DLL std::ostream G4cout
G4int getTotalStrangeness() const
G4CascadeCheckBalance(const G4String &owner="G4CascadeCheckBalance")
const G4LorentzVector & GetMomentum() const
G4bool energyOkay() const
G4double relativeE() const
G4double relativeKE() const
G4CollisionOutput tempOutput
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
G4int getTotalBaryonNumber() const
G4bool chargeOkay() const
G4int getTotalCharge() const
G4double getCharge() const
G4bool momentumOkay() const
G4double relativeP() const
G4GLOB_DLL std::ostream G4cerr