#include <G4CascadeCheckBalance.hh>
|
| G4CascadeCheckBalance (const G4String &owner="G4CascadeCheckBalance") |
|
| G4CascadeCheckBalance (G4double relative, G4double absolute, const G4String &owner="G4CascadeCheckBalance") |
|
virtual | ~G4CascadeCheckBalance () |
|
void | setOwner (const G4String &owner) |
|
void | setLimits (G4double relative, G4double absolute) |
|
void | setRelativeLimit (G4double limit) |
|
void | setAbsoluteLimit (G4double limit) |
|
void | collide (G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output) |
|
void | collide (const G4Fragment &fragment, G4CollisionOutput &output) |
|
void | collide (G4InuclParticle *bullet, G4InuclParticle *target, const std::vector< G4InuclElementaryParticle > &particles) |
|
void | collide (G4InuclParticle *bullet, G4InuclParticle *target, const std::vector< G4CascadParticle > &particles) |
|
void | collide (G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output, const std::vector< G4CascadParticle > &cparticles) |
|
void | collide (const G4Fragment &target, const std::vector< G4InuclElementaryParticle > &particles) |
|
void | collide (const G4Fragment &target, const std::vector< G4InuclNuclei > &fragments) |
|
G4bool | energyOkay () const |
|
G4bool | ekinOkay () const |
|
G4bool | momentumOkay () const |
|
G4bool | baryonOkay () const |
|
G4bool | chargeOkay () const |
|
G4bool | strangeOkay () const |
|
G4bool | okay () const |
|
G4double | deltaE () const |
|
G4double | relativeE () const |
|
G4double | deltaKE () const |
|
G4double | relativeKE () const |
|
G4double | deltaP () const |
|
G4double | relativeP () const |
|
G4LorentzVector | deltaLV () const |
|
G4int | deltaB () const |
|
G4int | deltaQ () const |
|
G4int | deltaS () const |
|
| G4VCascadeCollider (const G4String &name, G4int verbose=0) |
|
virtual | ~G4VCascadeCollider () |
|
virtual void | setVerboseLevel (G4int verbose=0) |
|
Definition at line 65 of file G4CascadeCheckBalance.hh.
G4CascadeCheckBalance::G4CascadeCheckBalance |
( |
const G4String & |
owner = "G4CascadeCheckBalance" | ) |
|
|
explicit |
Definition at line 70 of file G4CascadeCheckBalance.cc.
73 finalBaryon(0), initialCharge(0), finalCharge(0), initialStrange(0),
G4VCascadeCollider(const G4String &name, G4int verbose=0)
static const G4double tolerance
G4CascadeCheckBalance::G4CascadeCheckBalance |
( |
G4double |
relative, |
|
|
G4double |
absolute, |
|
|
const G4String & |
owner = "G4CascadeCheckBalance" |
|
) |
| |
Definition at line 76 of file G4CascadeCheckBalance.cc.
80 absoluteLimit(absolute), initialBaryon(0), finalBaryon(0),
81 initialCharge(0), finalCharge(0), initialStrange(0),
G4VCascadeCollider(const G4String &name, G4int verbose=0)
virtual G4CascadeCheckBalance::~G4CascadeCheckBalance |
( |
| ) |
|
|
inlinevirtual |
G4bool G4CascadeCheckBalance::baryonOkay |
( |
| ) |
const |
G4bool G4CascadeCheckBalance::chargeOkay |
( |
| ) |
const |
Implements G4VCascadeCollider.
Definition at line 87 of file G4CascadeCheckBalance.cc.
91 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide"
112 ((pbullet ? pbullet->baryon() : nbullet ? nbullet->
getA() : 0) +
113 (ptarget ? ptarget->
baryon() : ntarget ? ntarget->
getA() : 0) );
117 if (pbullet) initialStrange += pbullet->getStrangeness();
128 G4cout <<
" initial px " << initial.
px() <<
" py " << initial.
py()
129 <<
" pz " << initial.
pz() <<
" E " << initial.
e()
130 <<
" baryon " << initialBaryon <<
" charge " << initialCharge
131 <<
" strange " << initialStrange << G4endl
132 <<
" final px " <<
final.px() <<
" py " <<
final.py()
133 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
134 <<
" baryon " << finalBaryon <<
" charge " << finalCharge
135 <<
" strange " << finalStrange <<
G4endl;
G4int getStrangeness() const
G4LorentzVector getMomentum() const
G4LorentzVector getTotalOutputMomentum() const
G4GLOB_DLL std::ostream G4cout
G4int getTotalStrangeness() const
G4int getTotalBaryonNumber() const
G4int getTotalCharge() const
G4double getCharge() const
Definition at line 140 of file G4CascadeCheckBalance.cc.
143 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<FRAG>)"
160 G4cout <<
" initial px " << initial.
px() <<
" py " << initial.
py()
161 <<
" pz " << initial.
pz() <<
" E " << initial.
e()
162 <<
" baryon " << initialBaryon <<
" charge " << initialCharge
163 <<
" strange " << initialStrange << G4endl
164 <<
" final px " <<
final.px() <<
" py " <<
final.py()
165 <<
" pz " <<
final.pz() <<
" E " <<
final.e()
166 <<
" baryon " << finalBaryon <<
" charge " << finalCharge
167 <<
" strange " << finalStrange <<
G4endl;
G4LorentzVector getTotalOutputMomentum() const
G4GLOB_DLL std::ostream G4cout
G4int getTotalStrangeness() const
const G4LorentzVector & GetMomentum() const
G4int getTotalBaryonNumber() const
G4int getTotalCharge() const
Definition at line 174 of file G4CascadeCheckBalance.cc.
178 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
183 collide(bullet, target, tempOutput);
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4GLOB_DLL std::ostream G4cout
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
Definition at line 214 of file G4CascadeCheckBalance.cc.
219 <<
")::collide(<cparticles>)" <<
G4endl;
223 collide(bullet, target, tempOutput);
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4GLOB_DLL std::ostream G4cout
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
Definition at line 229 of file G4CascadeCheckBalance.cc.
235 <<
")::collide(<EP>,<CP>)" <<
G4endl;
238 tempOutput.
add(output);
240 collide(bullet, target, tempOutput);
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
void add(const G4CollisionOutput &right)
G4GLOB_DLL std::ostream G4cout
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
Definition at line 186 of file G4CascadeCheckBalance.cc.
190 <<
")::collide(<FRAG>,<vector>)" <<
G4endl;
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4GLOB_DLL std::ostream G4cout
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
Definition at line 200 of file G4CascadeCheckBalance.cc.
203 G4cout <<
" >>> G4CascadeCheckBalance(" <<
theName <<
")::collide(<vector>)"
void addOutgoingNuclei(const std::vector< G4InuclNuclei > &nuclea)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4GLOB_DLL std::ostream G4cout
G4int G4CascadeCheckBalance::deltaB |
( |
| ) |
const |
|
inline |
G4double G4CascadeCheckBalance::deltaE |
( |
| ) |
const |
|
inline |
G4double G4CascadeCheckBalance::deltaKE |
( |
| ) |
const |
|
inline |
G4double G4CascadeCheckBalance::deltaP |
( |
| ) |
const |
|
inline |
G4int G4CascadeCheckBalance::deltaQ |
( |
| ) |
const |
|
inline |
G4int G4CascadeCheckBalance::deltaS |
( |
| ) |
const |
|
inline |
G4bool G4CascadeCheckBalance::ekinOkay |
( |
| ) |
const |
Definition at line 263 of file G4CascadeCheckBalance.cc.
269 <<
relativeKE() << (relokay ?
" conserved" :
" VIOLATED")
271 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
275 <<
" conserved" <<
G4endl;
278 return (relokay && absokay);
G4GLOB_DLL std::ostream G4cout
G4double relativeKE() const
G4GLOB_DLL std::ostream G4cerr
G4bool G4CascadeCheckBalance::energyOkay |
( |
| ) |
const |
Definition at line 246 of file G4CascadeCheckBalance.cc.
252 << (relokay ?
" conserved" :
" VIOLATED")
253 <<
" absolute " <<
deltaE()
254 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
257 <<
" conserved absolute " <<
deltaE() <<
" conserved" <<
G4endl;
260 return (relokay && absokay);
G4GLOB_DLL std::ostream G4cout
G4double relativeE() const
G4GLOB_DLL std::ostream G4cerr
G4bool G4CascadeCheckBalance::momentumOkay |
( |
| ) |
const |
Definition at line 281 of file G4CascadeCheckBalance.cc.
287 << (relokay ?
" conserved" :
" VIOLATED")
288 <<
" absolute " <<
deltaP()
289 << (absokay ?
" conserved" :
" VIOLATED") <<
G4endl;
292 <<
" conserved absolute " <<
deltaP() <<
" conserved" <<
G4endl;
295 return (relokay && absokay);
G4GLOB_DLL std::ostream G4cout
G4double relativeP() const
G4GLOB_DLL std::ostream G4cerr
G4bool G4CascadeCheckBalance::okay |
( |
| ) |
const |
|
inline |
Definition at line 122 of file G4CascadeCheckBalance.hh.
G4bool baryonOkay() const
G4bool energyOkay() const
G4bool chargeOkay() const
G4bool momentumOkay() const
G4double G4CascadeCheckBalance::relativeE |
( |
| ) |
const |
|
inline |
G4double G4CascadeCheckBalance::relativeKE |
( |
| ) |
const |
|
inline |
G4double G4CascadeCheckBalance::relativeP |
( |
| ) |
const |
|
inline |
void G4CascadeCheckBalance::setAbsoluteLimit |
( |
G4double |
limit | ) |
|
|
inline |
Definition at line 77 of file G4CascadeCheckBalance.hh.
void setAbsoluteLimit(G4double limit)
void setRelativeLimit(G4double limit)
void G4CascadeCheckBalance::setOwner |
( |
const G4String & |
owner | ) |
|
|
inline |
void G4CascadeCheckBalance::setRelativeLimit |
( |
G4double |
limit | ) |
|
|
inline |
G4bool G4CascadeCheckBalance::strangeOkay |
( |
| ) |
const |
const G4double G4CascadeCheckBalance::tolerance = 1e-6 |
|
static |
The documentation for this class was generated from the following files: