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");
const G4ThreeVector & GetPolarization() const
Definition of the F05SteppingAction class.
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
G4double GetGlobalTime() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4ThreeVector & GetMomentumDirection() const
G4StepPoint * GetPostStepPoint() const
virtual void UserSteppingAction(const G4Step *)
G4Track * GetTrack() const
virtual ~F05SteppingAction()