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 (proposedKinEnergy - preKinEnergy);
222 if (kinEnergy < lowEnergyLimit) {
227 pPostStepPoint->
SetCharge( currentCharge );
249 pPostStepPoint->
SetCharge( currentCharge );
253 if(proposedKinEnergy > 0.0) {