104 if (localCoordinates)
106 TransformPoint(position);
130 if (localCoordinates)
132 TransformAxis(momentum);
156 if (localCoordinates)
158 TransformAxis(direction);
183 if (localCoordinates)
185 TransformAxis(globalPolarization);
242 if (localCoordinates)
246 GetInverseAffineTransformation()->
247 TransformAxis(globalDynamics->
248 GetMomentumDirection()));
254 globalPolarization.x(),
255 globalPolarization.y(),
256 globalPolarization.z()
261 TransformPoint(globalPosition);
289 tellWhatIsWrong <<
"G4FastStep can be initialised only through G4FastTrack."
291 G4Exception(
"G4FastStep::Initialize(const G4Track&)",
441 G4cout <<
" Position - x (mm) : "
444 G4cout <<
" Position - y (mm) : "
447 G4cout <<
" Position - z (mm) : "
453 G4cout <<
" Proper Time (ns) : "
456 G4cout <<
" Momentum Direct - x : "
459 G4cout <<
" Momentum Direct - y : "
462 G4cout <<
" Momentum Direct - z : "
465 G4cout <<
" Kinetic Energy (MeV): "
468 G4cout <<
" Polarization - x : "
471 G4cout <<
" Polarization - y : "
474 G4cout <<
" Polarization - z : "
500 G4bool exitWithError =
false;
508 ed <<
"The energy becomes larger than the initial value, difference = " << accuracy <<
" MeV" <<
G4endl;
509 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
516 G4bool itsOKforMomentum =
true;
523 ed <<
"The Momentum Change is not a unit vector, difference = " << accuracy <<
G4endl;
524 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
527 itsOK = itsOKforMomentum =
false;
536 ed <<
"The global time is getting backward, difference = " << accuracy <<
" ns" <<
G4endl;
537 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
547 ed <<
"The proper time is getting backward, difference = " << accuracy <<
" ns" <<
G4endl;
548 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
565 ed <<
"An inaccuracy in G4FastStep is beyond tolerance." <<
G4endl;
566 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
572 if (!itsOKforMomentum) {
virtual void Initialize(const G4Track &)
const G4Track * GetPrimaryTrack() const
void SetPosition(const G4ThreeVector &aValue)
void ProposePrimaryTrackFinalMomentumDirection(const G4ThreeVector &, G4bool localCoordinates=true)
void SetPrimaryTrackFinalKineticEnergy(G4double)
G4VParticleChange & operator=(const G4VParticleChange &right)
void SetPrimaryTrackFinalPolarization(const G4ThreeVector &, G4bool localCoordinates=true)
G4int theSizeOftheListOfSecondaries
std::ostringstream G4ExceptionDescription
G4double GetProperTime() const
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
const G4DynamicParticle * GetDynamicParticle() const
const G4FastTrack * fFastTrack
G4double GetProperTime() const
const G4AffineTransform * GetInverseAffineTransformation() const
G4Step * UpdateStepForPostStep(G4Step *Step)
const G4ThreeVector & GetPosition() const
G4TrackFastVector * theListOfSecondaries
void SetWeight(G4double aValue)
G4Track * CreateSecondaryTrack(const G4DynamicParticle &, G4ThreeVector, G4ThreeVector, G4double, G4bool localCoordinates=true)
G4ThreeVector thePolarizationChange
void SetMomentumDirection(const G4ThreeVector &aDirection)
virtual void DumpInfo() const
void SetPrimaryTrackFinalMomentum(const G4ThreeVector &, G4bool localCoordinates=true)
G4bool CheckIt(const G4Track &)
void Initialize(const G4FastTrack &)
G4bool operator==(const G4FastStep &right) const
G4bool operator!=(const G4FastStep &right) const
void AddLocalTime(const G4double aValue)
G4FastStep & operator=(const G4FastStep &right)
void SetGlobalTime(const G4double aValue)
void SetMomentumDirection(const G4ThreeVector &aValue)
virtual G4bool CheckIt(const G4Track &)
G4double GetKineticEnergy() const
void SetPolarization(const G4ThreeVector &aValue)
void ProposePrimaryTrackFinalPosition(const G4ThreeVector &, G4bool localCoordinates=true)
G4GLOB_DLL std::ostream G4cout
G4double theTrueStepLength
const G4ThreeVector & GetMomentumDirection() const
G4SteppingControl theSteppingControlFlag
G4double theLocalEnergyDeposit
G4int theNumberOfSecondaries
G4double GetGlobalTime() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
void AddSecondary(G4Track *aSecondary)
void SetProperTime(const G4double aValue)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetPrimaryTrackFinalKineticEnergyAndDirection(G4double, const G4ThreeVector &, G4bool localCoordinates=true)
G4ParticleMomentum theMomentumChange
G4Step * UpdateStepInfo(G4Step *Step)
G4Step * UpdateStepForAtRest(G4Step *Step)
G4double theProperTimeChange
G4StepPoint * GetPostStepPoint() const
const G4ThreeVector & GetPolarization() const
G4double GetWeight() const
G4ThreeVector thePositionChange
G4double GetAccuracyForException() const
void SetPrimaryTrackFinalPosition(const G4ThreeVector &, G4bool localCoordinates=true)
G4TrackStatus theStatusChange
void ProposePrimaryTrackFinalPolarization(const G4ThreeVector &, G4bool localCoordinates=true)
void ProposeTrackStatus(G4TrackStatus status)
void SetKineticEnergy(const G4double aValue)
G4Track * GetTrack() const
G4double GetAccuracyForWarning() const
void SetMomentumChange(G4double Px, G4double Py, G4double Pz)
G4GLOB_DLL std::ostream G4cerr
void ProposePrimaryTrackFinalKineticEnergyAndDirection(G4double, const G4ThreeVector &, G4bool localCoordinates=true)