#include <G4CascadParticle.hh>
|
| G4CascadParticle () |
|
| G4CascadParticle (const G4InuclElementaryParticle &particle, const G4ThreeVector &pos, G4int izone, G4double cpath, G4int gen) |
|
| ~G4CascadParticle () |
|
| G4CascadParticle (const G4CascadParticle &cpart) |
|
G4CascadParticle & | operator= (const G4CascadParticle &cpart) |
|
void | fill (const G4InuclElementaryParticle &particle, const G4ThreeVector &pos, G4int izone, G4double cpath, G4int gen) |
|
const G4InuclElementaryParticle & | getParticle () const |
|
G4InuclElementaryParticle & | getParticle () |
|
G4int | getGeneration () const |
|
void | setGeneration (G4int gen) |
|
G4int | getHistoryId () const |
|
void | setHistoryId (G4int id) |
|
G4LorentzVector | getMomentum () const |
|
void | updateParticleMomentum (const G4LorentzVector &mom) |
|
const G4ThreeVector & | getPosition () const |
|
void | updatePosition (const G4ThreeVector &pos) |
|
void | incrementReflectionCounter () |
|
G4int | getNumberOfReflections () const |
|
void | resetReflection () |
|
G4bool | reflectedNow () const |
|
void | initializePath (G4double npath) |
|
void | incrementCurrentPath (G4double npath) |
|
G4double | getCurrentPath () const |
|
void | updateZone (G4int izone) |
|
G4int | getCurrentZone () const |
|
void | setMovingInsideNuclei (G4bool isMovingIn=true) |
|
G4bool | movingInsideNuclei () const |
|
G4double | getPathToTheNextZone (G4double rz_in, G4double rz_out) |
|
void | propagateAlongThePath (G4double path) |
|
G4bool | young (G4double young_path_cut, G4double cpath) const |
|
void | print (std::ostream &os) const |
|
Definition at line 50 of file G4CascadParticle.hh.
G4CascadParticle::G4CascadParticle |
( |
| ) |
|
Definition at line 47 of file G4CascadParticle.cc.
49 current_zone(-1), current_path(-1.), movingIn(
false),
50 reflectionCounter(0), reflected(
false), generation(-1), historyId(-1) {
51 if (verboseLevel > 3) {
52 G4cout <<
" >>> G4CascadParticle::G4CascadParticle" <<
G4endl;
G4GLOB_DLL std::ostream G4cout
Definition at line 57 of file G4CascadParticle.cc.
61 theParticle(particle),
position(pos),
62 current_zone(izone), current_path(cpath), movingIn(
true),
63 reflectionCounter(0), reflected(
false), generation(gen), historyId(-1) {
64 if (verboseLevel > 3) {
65 G4cout <<
" >>> G4CascadParticle::G4CascadParticle "
const G4ParticleDefinition * getDefinition() const
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4CascadParticle::~G4CascadParticle |
( |
| ) |
|
|
inline |
Definition at line 92 of file G4CascadParticle.cc.
95 if (verboseLevel > 3)
G4cout <<
" >>> G4CascadParticle::fill" <<
G4endl;
97 theParticle = particle;
100 current_path = cpath;
102 reflectionCounter = 0;
G4GLOB_DLL std::ostream G4cout
static const G4double pos
G4double G4CascadParticle::getCurrentPath |
( |
| ) |
const |
|
inline |
G4int G4CascadParticle::getCurrentZone |
( |
| ) |
const |
|
inline |
G4int G4CascadParticle::getGeneration |
( |
| ) |
const |
|
inline |
G4int G4CascadParticle::getHistoryId |
( |
| ) |
const |
|
inline |
G4int G4CascadParticle::getNumberOfReflections |
( |
| ) |
const |
|
inline |
Definition at line 109 of file G4CascadParticle.cc.
111 if (verboseLevel > 3) {
112 G4cout <<
" >>> G4CascadParticle::getPathToTheNextZone rz_in " << rz_in
113 <<
" rz_out " << rz_out <<
G4endl;
123 if (std::abs(pp) < 1e-9) {
124 if (verboseLevel > 3)
G4cout <<
" at rest; path length is zero" <<
G4endl;
126 if (current_zone == 0) movingIn =
false;
135 if (verboseLevel > 3) {
136 G4cout <<
" current_zone " << current_zone <<
" rr " << rr
137 <<
" rp " << rp <<
" pp " << pp <<
" ra " << ra <<
G4endl;
140 if (current_zone == 0 || rp > 0.0) {
141 d2 = rz_out * rz_out - ra;
146 d2 = rz_in * rz_in - ra;
151 d2 = rz_in * rz_in - ra;
156 d2 = rz_out * rz_out - ra;
162 if (verboseLevel > 3)
G4cout <<
" ds " << ds <<
" d2 " << d2 <<
G4endl;
164 if (d2 < 0.0 && d2 > -1e-6) d2 = 0.;
166 if (d2 > 0.0) path = ds * std::sqrt(d2) - rp /
pp;
G4LorentzVector getMomentum() const
double dot(const Hep3Vector &) const
G4GLOB_DLL std::ostream G4cout
void G4CascadParticle::incrementCurrentPath |
( |
G4double |
npath | ) |
|
|
inline |
void G4CascadParticle::incrementReflectionCounter |
( |
| ) |
|
|
inline |
G4bool G4CascadParticle::movingInsideNuclei |
( |
| ) |
const |
|
inline |
Definition at line 73 of file G4CascadParticle.cc.
75 verboseLevel = cpart.verboseLevel;
76 theParticle = cpart.theParticle;
78 current_zone = cpart.current_zone;
79 current_path = cpart.current_path;
80 movingIn = cpart.movingIn;
81 reflectionCounter = cpart.reflectionCounter;
82 reflected = cpart.reflected;
83 generation = cpart.generation;
84 historyId = cpart.historyId;
void G4CascadParticle::print |
( |
std::ostream & |
os | ) |
const |
Definition at line 187 of file G4CascadParticle.cc.
188 os <<
" pos " <<
position <<
" zone " << current_zone
189 <<
" current_path " << current_path
190 <<
" reflectionCounter " << reflectionCounter <<
G4endl
void G4CascadParticle::propagateAlongThePath |
( |
G4double |
path | ) |
|
Definition at line 171 of file G4CascadParticle.cc.
172 if (verboseLevel > 3) {
173 G4cout <<
" >>> G4CascadParticle::propagateAlongThePath" <<
G4endl;
G4LorentzVector getMomentum() const
G4GLOB_DLL std::ostream G4cout
G4bool G4CascadParticle::reflectedNow |
( |
| ) |
const |
|
inline |
void G4CascadParticle::resetReflection |
( |
| ) |
|
|
inline |
void G4CascadParticle::setGeneration |
( |
G4int |
gen | ) |
|
|
inline |
void G4CascadParticle::setHistoryId |
( |
G4int |
id | ) |
|
|
inline |
void G4CascadParticle::setMovingInsideNuclei |
( |
G4bool |
isMovingIn = true | ) |
|
|
inline |
void G4CascadParticle::updateZone |
( |
G4int |
izone | ) |
|
|
inline |
Definition at line 116 of file G4CascadParticle.hh.
117 return ((current_path < 1000.) && (cpath < young_path_cut));
The documentation for this class was generated from the following files: