#include <G4ParticleChangeForLoss.hh>
Definition at line 60 of file G4ParticleChangeForLoss.hh.
G4ParticleChangeForLoss::G4ParticleChangeForLoss |
( |
| ) |
|
Definition at line 52 of file G4ParticleChangeForLoss.cc.
54 lowEnergyLimit(1.0*
eV), currentCharge(0.)
60 G4cout <<
"G4ParticleChangeForLoss::G4ParticleChangeForLoss() " <<
G4endl;
G4GLOB_DLL std::ostream G4cout
G4SteppingControl theSteppingControlFlag
static constexpr double eV
G4ParticleChangeForLoss::~G4ParticleChangeForLoss |
( |
| ) |
|
|
virtual |
Definition at line 75 of file G4ParticleChangeForLoss.cc.
79 G4cout <<
"G4ParticleChangeForLoss:: copy constructor is called " <<
G4endl;
81 currentTrack = right.currentTrack;
82 proposedKinEnergy = right.proposedKinEnergy;
83 lowEnergyLimit = right.lowEnergyLimit;
84 currentCharge = right.currentCharge;
85 proposedMomentumDirection = right.proposedMomentumDirection;
G4GLOB_DLL std::ostream G4cout
G4bool G4ParticleChangeForLoss::CheckIt |
( |
const G4Track & |
aTrack | ) |
|
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 160 of file G4ParticleChangeForLoss.cc.
163 G4bool exitWithError =
false;
173 G4cout <<
"G4ParticleChangeForLoss::CheckIt: ";
174 G4cout <<
"KinEnergy become larger than the initial value!"
175 <<
" Difference: " << accuracy <<
"[MeV] " <<
G4endl;
194 "energy was illegal");
G4ParticleDefinition * GetDefinition() const
virtual void DumpInfo() const
const G4ThreeVector & GetPosition() const
const G4String & GetParticleName() const
static const G4double accuracyForException
virtual G4bool CheckIt(const G4Track &)
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
static constexpr double m
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static constexpr double MeV
static const G4double accuracyForWarning
void G4ParticleChangeForLoss::DumpInfo |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 136 of file G4ParticleChangeForLoss.cc.
142 G4cout <<
" Charge (eplus) : "
143 << std::setw(20) << currentCharge/
eplus
145 G4cout <<
" Kinetic Energy (MeV): "
146 << std::setw(20) << proposedKinEnergy/
MeV
148 G4cout <<
" Momentum Direct - x : "
149 << std::setw(20) << proposedMomentumDirection.
x()
151 G4cout <<
" Momentum Direct - y : "
152 << std::setw(20) << proposedMomentumDirection.
y()
154 G4cout <<
" Momentum Direct - z : "
155 << std::setw(20) << proposedMomentumDirection.
z()
virtual void DumpInfo() const
G4GLOB_DLL std::ostream G4cout
static constexpr double eplus
static constexpr double MeV
G4double G4ParticleChangeForLoss::GetCharge |
( |
| ) |
const |
|
inline |
const G4Track * G4ParticleChangeForLoss::GetCurrentTrack |
( |
| ) |
const |
|
inline |
const G4ThreeVector & G4ParticleChangeForLoss::GetMomentumDirection |
( |
| ) |
const |
|
inline |
G4double G4ParticleChangeForLoss::GetProposedCharge |
( |
| ) |
const |
|
inline |
G4double G4ParticleChangeForLoss::GetProposedKineticEnergy |
( |
| ) |
const |
|
inline |
const G4ThreeVector & G4ParticleChangeForLoss::GetProposedMomentumDirection |
( |
| ) |
const |
|
inline |
const G4ThreeVector & G4ParticleChangeForLoss::GetProposedPolarization |
( |
| ) |
const |
|
inline |
void G4ParticleChangeForLoss::InitializeForAlongStep |
( |
const G4Track & |
track | ) |
|
|
inline |
Definition at line 232 of file G4ParticleChangeForLoss.hh.
const G4DynamicParticle * GetDynamicParticle() const
G4TrackStatus GetTrackStatus() const
G4double GetKineticEnergy() const
G4double theLocalEnergyDeposit
G4double GetCharge() const
void InitializeSecondaries(const G4Track &)
G4double GetWeight() const
G4TrackStatus theStatusChange
G4double theNonIonizingEnergyDeposit
void G4ParticleChangeForLoss::InitializeForPostStep |
( |
const G4Track & |
track | ) |
|
|
inline |
Definition at line 244 of file G4ParticleChangeForLoss.hh.
256 currentTrack = &track;
const G4ThreeVector & GetPolarization() const
const G4DynamicParticle * GetDynamicParticle() const
G4TrackStatus GetTrackStatus() const
G4double GetKineticEnergy() const
G4double theLocalEnergyDeposit
G4double GetCharge() const
void InitializeSecondaries(const G4Track &)
const G4ThreeVector & GetMomentumDirection() const
G4double GetWeight() const
G4TrackStatus theStatusChange
G4double theNonIonizingEnergyDeposit
Definition at line 89 of file G4ParticleChangeForLoss.cc.
94 G4cout <<
"G4ParticleChangeForLoss:: assignment operator is called " <<
G4endl;
102 G4cout <<
"G4ParticleChangeForLoss: assignment operator Warning ";
103 G4cout <<
"theListOfSecondaries is not empty ";
124 currentTrack = right.currentTrack;
125 proposedKinEnergy = right.proposedKinEnergy;
126 currentCharge = right.currentCharge;
127 proposedMomentumDirection = right.proposedMomentumDirection;
void SetElement(G4int anIndex, Type *anElement)
G4TrackFastVector * theListOfSecondaries
G4GLOB_DLL std::ostream G4cout
G4SteppingControl theSteppingControlFlag
G4bool isParentWeightProposed
G4double theLocalEnergyDeposit
G4int theNumberOfSecondaries
G4bool fSetSecondaryWeightByProcess
G4FastVector< G4Track, G4TrackFastVectorSize > G4TrackFastVector
G4TrackStatus theStatusChange
void G4ParticleChangeForLoss::ProposeCharge |
( |
G4double |
finalCharge | ) |
|
|
inline |
void G4ParticleChangeForLoss::ProposeMomentumDirection |
( |
const G4ThreeVector & |
Pfinal | ) |
|
|
inline |
void G4ParticleChangeForLoss::SetLowEnergyLimit |
( |
G4double |
elimit | ) |
|
|
inline |
void G4ParticleChangeForLoss::SetProposedCharge |
( |
G4double |
theCharge | ) |
|
|
inline |
void G4ParticleChangeForLoss::SetProposedKineticEnergy |
( |
G4double |
proposedKinEnergy | ) |
|
|
inline |
void G4ParticleChangeForLoss::SetProposedMomentumDirection |
( |
const G4ThreeVector & |
dir | ) |
|
|
inline |
G4Step * G4ParticleChangeForLoss::UpdateStepForAlongStep |
( |
G4Step * |
Step | ) |
|
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 210 of file G4ParticleChangeForLoss.cc.
212 G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
213 G4StepPoint* pPreStepPoint = pStep->GetPreStepPoint();
214 G4Track* pTrack = pStep->GetTrack();
219 (proposedKinEnergy - preKinEnergy);
222 if (kinEnergy < lowEnergyLimit) {
227 pPostStepPoint->
SetCharge( currentCharge );
void SetWeight(G4double aValue)
G4bool isParentWeightProposed
G4double theLocalEnergyDeposit
G4double CalculateVelocity() const
void SetVelocity(G4double v)
void SetCharge(G4double value)
void SetKineticEnergy(const G4double aValue)
G4double GetKineticEnergy() const
void SetKineticEnergy(const G4double aValue)
G4double theNonIonizingEnergyDeposit
G4Step * G4ParticleChangeForLoss::UpdateStepForPostStep |
( |
G4Step * |
Step | ) |
|
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 244 of file G4ParticleChangeForLoss.cc.
246 G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
247 G4Track* pTrack = pStep->GetTrack();
249 pPostStepPoint->
SetCharge( currentCharge );
253 if(proposedKinEnergy > 0.0) {
void SetWeight(G4double aValue)
void SetMomentumDirection(const G4ThreeVector &aValue)
void SetPolarization(const G4ThreeVector &aValue)
G4bool isParentWeightProposed
G4double theLocalEnergyDeposit
G4double CalculateVelocity() const
void SetVelocity(G4double v)
void SetCharge(G4double value)
void SetKineticEnergy(const G4double aValue)
void SetKineticEnergy(const G4double aValue)
G4double theNonIonizingEnergyDeposit
The documentation for this class was generated from the following files: