105 if (localCoordinates)
107 TransformPoint(position);
131 if (localCoordinates)
133 TransformAxis(momentum);
157 if (localCoordinates)
159 TransformAxis(direction);
184 if (localCoordinates)
186 TransformAxis(globalPolarization);
243 if (localCoordinates)
247 GetInverseAffineTransformation()->
248 TransformAxis(globalDynamics->
249 GetMomentumDirection()));
255 globalPolarization.
x(),
256 globalPolarization.
y(),
257 globalPolarization.
z()
262 TransformPoint(globalPosition);
290 tellWhatIsWrong <<
"G4FastStep can be initialised only through G4FastTrack."
292 G4Exception(
"G4FastStep::Initialize(const G4Track&)",
300 theEnergyChange ( 0.0 ),
301 theTimeChange ( 0.0 ),
302 theProperTimeChange( 0.0 ),
303 fFastTrack ( nullptr ),
304 theWeightChange ( 0.0 )
487 G4bool exitWithError =
false;
495 ed <<
"The energy becomes larger than the initial value, difference = " << accuracy <<
" MeV" <<
G4endl;
496 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
503 G4bool itsOKforMomentum =
true;
510 ed <<
"The Momentum Change is not a unit vector, difference = " << accuracy <<
G4endl;
511 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
514 itsOK = itsOKforMomentum =
false;
523 ed <<
"The global time is getting backward, difference = " << accuracy <<
" ns" <<
G4endl;
524 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
534 ed <<
"The proper time is getting backward, difference = " << accuracy <<
" ns" <<
G4endl;
535 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
552 ed <<
"An inaccuracy in G4FastStep is beyond tolerance." <<
G4endl;
553 G4Exception(
"G4FastStep::CheckIt(const G4Track& aTrack)",
559 if (!itsOKforMomentum) {
void SetPrimaryTrackFinalPolarization(const G4ThreeVector &, G4bool localCoordinates=true)
G4double GetKineticEnergy() const
void AddLocalTime(const G4double aValue)
void AddSecondary(G4Track *aSecondary)
G4double GetAccuracyForWarning() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
std::ostringstream G4ExceptionDescription
G4VParticleChange & operator=(const G4VParticleChange &right)
void SetWeight(G4double aValue)
G4TrackFastVector * theListOfSecondaries
static constexpr double MeV
virtual G4bool CheckIt(const G4Track &)
G4ThreeVector thePositionChange
const G4ThreeVector & GetMomentumDirection() const
const G4Track * GetPrimaryTrack() const
void ProposePrimaryTrackFinalKineticEnergyAndDirection(G4double, const G4ThreeVector &, G4bool localCoordinates=true)
void SetMomentumDirection(const G4ThreeVector &aValue)
G4double theTrueStepLength
G4int theSizeOftheListOfSecondaries
G4SteppingControl theSteppingControlFlag
void SetPolarization(const G4ThreeVector &aValue)
void SetGlobalTime(const G4double aValue)
G4double GetProperTime() const
void SetMomentumDirection(const G4ThreeVector &aDirection)
G4double GetWeight() const
virtual void Initialize(const G4Track &)
void Initialize(const G4FastTrack &)
void SetProperTime(const G4double aValue)
G4double theLocalEnergyDeposit
const G4FastTrack * fFastTrack
G4Step * UpdateStepForAtRest(G4Step *Step)
G4Step * UpdateStepInfo(G4Step *Step)
G4double GetProperTime() const
G4TrackStatus theStatusChange
void SetKineticEnergy(const G4double aValue)
void ProposePrimaryTrackFinalPolarization(const G4ThreeVector &, G4bool localCoordinates=true)
G4bool operator!=(const G4FastStep &right) const
virtual void DumpInfo() const
G4bool CheckIt(const G4Track &)
G4double GetGlobalTime() const
G4double theProperTimeChange
G4Track * CreateSecondaryTrack(const G4DynamicParticle &, G4ThreeVector, G4ThreeVector, G4double, G4bool localCoordinates=true)
G4Track * GetTrack() const
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
void SetPrimaryTrackFinalPosition(const G4ThreeVector &, G4bool localCoordinates=true)
void SetMomentumChange(G4double Px, G4double Py, G4double Pz)
G4GLOB_DLL std::ostream G4cerr
G4ThreeVector thePolarizationChange
void ProposePrimaryTrackFinalMomentumDirection(const G4ThreeVector &, G4bool localCoordinates=true)
G4Step * UpdateStepForPostStep(G4Step *Step)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4bool operator==(const G4FastStep &right) const
void SetPrimaryTrackFinalKineticEnergy(G4double)
G4double GetAccuracyForException() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const G4ThreeVector & GetPolarization() const
const G4AffineTransform * GetInverseAffineTransformation() const
G4ParticleMomentum theMomentumChange
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
void SetPrimaryTrackFinalMomentum(const G4ThreeVector &, G4bool localCoordinates=true)
void SetPosition(const G4ThreeVector &aValue)
void SetPrimaryTrackFinalKineticEnergyAndDirection(G4double, const G4ThreeVector &, G4bool localCoordinates=true)
void ProposePrimaryTrackFinalPosition(const G4ThreeVector &, G4bool localCoordinates=true)
G4FastStep & operator=(const G4FastStep &right)
void ProposeTrackStatus(G4TrackStatus status)
G4int theNumberOfSecondaries
const G4DynamicParticle * GetDynamicParticle() const