58 GetProcessDefinedStep()->GetProcessName();
60 if(processName !=
"DecayWithSpin" ){
65 GetDefinition()->GetParticleName();
70 if (particleName ==
"mu+") {
71 if (momDir * polDir < (1.-1.
E-7)) {
73 G4double cos_theta = momDir * polDir;
80 G4cout <<
"Angle between spin and momentum:" << cos_theta <<
G4endl;
81 G4Exception(
"SteppingAction::UserSteppingAction",
"Error",
83 "Angle between spin and momentum too large");
virtual ~F05SteppingAction()
const G4ThreeVector & GetPolarization() const
G4double GetGlobalTime() const
G4Track * GetTrack() const
G4StepPoint * GetPostStepPoint() const
virtual void UserSteppingAction(const G4Step *)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetMomentumDirection() const
Definition of the F05SteppingAction class.