54 lowEnergyLimit(1.0*eV), currentCharge(0.)
60 G4cout <<
"G4ParticleChangeForLoss::G4ParticleChangeForLoss() " <<
G4endl;
69 G4cout <<
"G4ParticleChangeForLoss::~G4ParticleChangeForLoss() " <<
G4endl;
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;
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;
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()
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");
219 if (kinEnergy < lowEnergyLimit) {
223 pPostStepPoint->
SetCharge( currentCharge );
243 pPostStepPoint->
SetCharge( currentCharge );
G4FastVector< G4Track, G4TrackFastVectorSize > G4TrackFastVector
G4DLLIMPORT std::ostream G4cout
void SetElement(G4int anIndex, Type *anElement)
G4Step * UpdateStepForPostStep(G4Step *Step)
virtual G4bool CheckIt(const G4Track &)
G4ParticleChangeForLoss()
G4ParticleChangeForLoss & operator=(const G4ParticleChangeForLoss &right)
virtual void DumpInfo() const
virtual ~G4ParticleChangeForLoss()
G4Step * UpdateStepForAlongStep(G4Step *Step)
const G4String & GetParticleName() const
void SetKineticEnergy(const G4double aValue)
void SetWeight(G4double aValue)
void SetCharge(G4double value)
void SetVelocity(G4double v)
G4double GetKineticEnergy() const
void SetMomentumDirection(const G4ThreeVector &aValue)
void SetPolarization(const G4ThreeVector &aValue)
G4Track * GetTrack() const
void AddNonIonizingEnergyDeposit(G4double value)
void AddTotalEnergyDeposit(G4double value)
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
const G4ThreeVector & GetPosition() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double CalculateVelocity() const
void SetKineticEnergy(const G4double aValue)
G4int theNumberOfSecondaries
G4bool fSetSecondaryWeightByProcess
virtual G4bool CheckIt(const G4Track &)
static const G4double accuracyForException
G4double theLocalEnergyDeposit
G4TrackStatus theStatusChange
G4TrackFastVector * theListOfSecondaries
G4SteppingControl theSteppingControlFlag
static const G4double accuracyForWarning
G4double theNonIonizingEnergyDeposit
virtual void DumpInfo() const
G4bool isParentWeightProposed
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)