#include <G4ParticleChangeForMSC.hh>
Definition at line 54 of file G4ParticleChangeForMSC.hh.
G4ParticleChangeForMSC::G4ParticleChangeForMSC |
( |
| ) |
|
G4ParticleChangeForMSC::~G4ParticleChangeForMSC |
( |
| ) |
|
|
virtual |
Definition at line 67 of file G4ParticleChangeForMSC.cc.
71 G4cout <<
"G4ParticleChangeForMSC:: copy constructor is called " <<
G4endl;
73 theMomentumDirection = right.theMomentumDirection;
74 thePosition = right.thePosition;
G4GLOB_DLL std::ostream G4cout
Reimplemented from G4VParticleChange.
Definition at line 169 of file G4ParticleChangeForMSC.cc.
172 G4bool exitWithError =
false;
179 accuracy = std::fabs(theMomentumDirection.
mag2()-1.0);
184 G4cout <<
" G4ParticleChangeForMSC::CheckIt : ";
185 G4cout <<
"the Momentum Change is not unit vector !!"
186 <<
" Difference: " << accuracy <<
G4endl;
206 "momentum direction was illegal");
211 theMomentumDirection = (1./vmag)*theMomentumDirection;
G4ParticleDefinition * GetDefinition() 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)
virtual void DumpInfo() const
static constexpr double MeV
static const G4double accuracyForWarning
void G4ParticleChangeForMSC::DumpInfo |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 141 of file G4ParticleChangeForMSC.cc.
147 G4cout <<
" Position - x (mm) : "
148 << std::setw(20) << thePosition.
x()/
mm
150 G4cout <<
" Position - y (mm) : "
151 << std::setw(20) << thePosition.
y()/
mm
153 G4cout <<
" Position - z (mm) : "
154 << std::setw(20) << thePosition.
z()/
mm
156 G4cout <<
" Momentum Direct - x : "
157 << std::setw(20) << theMomentumDirection.
x()
159 G4cout <<
" Momentum Direct - y : "
160 << std::setw(20) << theMomentumDirection.
y()
162 G4cout <<
" Momentum Direct - z : "
163 << std::setw(20) << theMomentumDirection.
z()
static constexpr double mm
virtual void DumpInfo() const
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector* G4ParticleChangeForMSC::GetMomentumDirection |
( |
| ) |
const |
const G4ThreeVector* G4ParticleChangeForMSC::GetPosition |
( |
| ) |
const |
const G4ThreeVector* G4ParticleChangeForMSC::GetProposedMomentumDirection |
( |
| ) |
const |
const G4ThreeVector* G4ParticleChangeForMSC::GetProposedPosition |
( |
| ) |
const |
virtual void G4ParticleChangeForMSC::Initialize |
( |
const G4Track & |
| ) |
|
|
virtual |
Definition at line 78 of file G4ParticleChangeForMSC.cc.
82 G4cout <<
"G4ParticleChangeForMSC:: assignment operator is called " <<
G4endl;
94 theMomentumDirection = right.theMomentumDirection;
95 thePosition = right.thePosition;
G4int theSizeOftheListOfSecondaries
G4TrackFastVector * theListOfSecondaries
G4GLOB_DLL std::ostream G4cout
G4double theTrueStepLength
G4SteppingControl theSteppingControlFlag
G4double theLocalEnergyDeposit
G4int theNumberOfSecondaries
G4TrackStatus theStatusChange
void G4ParticleChangeForMSC::ProposeMomentumDirection |
( |
const G4ThreeVector & |
Pfinal | ) |
|
void G4ParticleChangeForMSC::SetProposedMomentumDirection |
( |
const G4ThreeVector & |
Pfinal | ) |
|
void G4ParticleChangeForMSC::SetProposedPosition |
( |
const G4ThreeVector & |
finalPosition | ) |
|
G4Step * G4ParticleChangeForMSC::UpdateStepForAlongStep |
( |
G4Step * |
Step | ) |
|
|
virtual |
Reimplemented from G4VParticleChange.
Definition at line 104 of file G4ParticleChangeForMSC.cc.
111 G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
void SetPosition(const G4ThreeVector &aValue)
void SetMomentumDirection(const G4ThreeVector &aValue)
G4double theTrueStepLength
G4TrackStatus theStatusChange
G4Step * G4ParticleChangeForMSC::UpdateStepForPostStep |
( |
G4Step * |
Step | ) |
|
|
virtual |
The documentation for this class was generated from the following files: