52 G4cout <<
"G4ParticleChangeForMSC::G4ParticleChangeForMSC() " <<
G4endl;
61 G4cout <<
"G4ParticleChangeForMSC::~G4ParticleChangeForMSC() " <<
G4endl;
71 G4cout <<
"G4ParticleChangeForMSC:: copy constructor is called " <<
G4endl;
73 theMomentumDirection = right.theMomentumDirection;
74 thePosition = right.thePosition;
82 G4cout <<
"G4ParticleChangeForMSC:: assignment operator is called " <<
G4endl;
94 theMomentumDirection = right.theMomentumDirection;
95 thePosition = right.thePosition;
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()
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;
G4DLLIMPORT 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
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)