55 theMomentumDirection = right.theMomentumDirection;
56 thePosition = right.thePosition;
73 theMomentumDirection = right.theMomentumDirection;
74 thePosition = right.thePosition;
120 G4cout <<
" Position - x (mm) : " << std::setw(20)
121 << thePosition.
x() / mm <<
G4endl;
122 G4cout <<
" Position - y (mm) : " << std::setw(20)
123 << thePosition.
y() / mm <<
G4endl;
124 G4cout <<
" Position - z (mm) : " << std::setw(20)
125 << thePosition.
z() / mm <<
G4endl;
126 G4cout <<
" Momentum Direct - x : " << std::setw(20)
127 << theMomentumDirection.
x() <<
G4endl;
128 G4cout <<
" Momentum Direct - y : " << std::setw(20)
129 << theMomentumDirection.
y() <<
G4endl;
130 G4cout <<
" Momentum Direct - z : " << std::setw(20)
131 << theMomentumDirection.
z() <<
G4endl;
139 G4bool exitWithError =
false;
146 accuracy = std::fabs(theMomentumDirection.
mag2() - 1.0);
152 G4cout <<
" G4ParticleChangeForMSC::CheckIt : ";
153 G4cout <<
"the Momentum Change is not unit vector !!"
154 <<
" Difference: " << accuracy <<
G4endl;
172 "momentum direction was illegal");
178 theMomentumDirection = (1. / vmag) * theMomentumDirection;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
virtual G4Step * UpdateStepForPostStep(G4Step *Step)
virtual G4Step * UpdateStepForAlongStep(G4Step *Step)
virtual ~G4ParticleChangeForMSC()
G4ParticleChangeForMSC & operator=(const G4ParticleChangeForMSC &right)
virtual void DumpInfo() const
virtual G4bool CheckIt(const G4Track &)
const G4String & GetParticleName() const
void SetPosition(const G4ThreeVector &aValue)
void SetMomentumDirection(const G4ThreeVector &aValue)
G4Track * GetTrack() const
void SetStepLength(G4double value)
G4StepPoint * GetPostStepPoint() const
G4TrackStatus GetTrackStatus() const
const G4ThreeVector & GetPosition() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4int theNumberOfSecondaries
virtual G4bool CheckIt(const G4Track &)
static const G4double accuracyForException
G4double theTrueStepLength
G4double theLocalEnergyDeposit
G4TrackStatus theStatusChange
G4TrackFastVector * theListOfSecondaries
G4SteppingControl theSteppingControlFlag
static const G4double accuracyForWarning
G4int theSizeOftheListOfSecondaries
virtual void DumpInfo() const