#include <G4HadFinalState.hh>
Definition at line 45 of file G4HadFinalState.hh.
G4HadFinalState::G4HadFinalState |
( |
| ) |
|
Definition at line 35 of file G4HadFinalState.cc.
36 : theDirection(0,0,1), theEnergy(-1), theStat(
isAlive),
37 theW(1.), theEDep(0.) {}
Definition at line 62 of file G4HadFinalState.cc.
64 theSecs.insert(theSecs.end(),addSecs.begin(),addSecs.end());
Definition at line 92 of file G4HadFinalState.hh.
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
Definition at line 96 of file G4HadFinalState.hh.
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
void G4HadFinalState::Clear |
( |
| ) |
|
Definition at line 67 of file G4HadFinalState.cc.
69 theDirection.
set(0,0,1);
void set(double x, double y, double z)
void G4HadFinalState::ClearSecondaries |
( |
| ) |
|
|
inline |
G4double G4HadFinalState::GetEnergyChange |
( |
| ) |
const |
|
inline |
G4double G4HadFinalState::GetLocalEnergyDeposit |
( |
| ) |
const |
|
inline |
const G4ThreeVector& G4HadFinalState::GetMomentumChange |
( |
| ) |
const |
|
inline |
G4int G4HadFinalState::GetNumberOfSecondaries |
( |
| ) |
const |
|
inline |
Definition at line 79 of file G4HadFinalState.cc.
81 if(i>theSecs.size()) {
83 "Trying direct access to secondary beyond end of list");
const G4HadSecondary * G4HadFinalState::GetSecondary |
( |
size_t |
i | ) |
const |
Definition at line 88 of file G4HadFinalState.cc.
90 if(i>theSecs.size()) {
92 "Trying direct access to secondary beyond end of list");
G4double G4HadFinalState::GetWeightChange |
( |
| ) |
const |
|
inline |
Definition at line 39 of file G4HadFinalState.cc.
44 std::cout <<
"Final state energy was: E = "<<theEnergy<<
G4endl;
46 "G4HadFinalState: fatal - negative energy");
Definition at line 50 of file G4HadFinalState.cc.
52 theDirection.
set(x,y,z);
53 if(std::fabs(x*x + y*y + z*z - 1.0)>0.001) {
54 G4cout <<
"We have negative theDirection.mag() = "<<theDirection.
mag()
57 "G4HadFinalState: fatal - negative direction.mag().");
void set(double x, double y, double z)
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: