GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions
GGSUserAction Class Reference

Mother class for user actions in GGS. More...

#include <GGSUserAction.h>

Inheritance diagram for GGSUserAction:
Inheritance graph
[legend]
Collaboration diagram for GGSUserAction:
Collaboration graph
[legend]

Public Member Functions

 GGSUserAction ()
 Constructor. More...
 
virtual ~GGSUserAction ()
 Destructor.
 
G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 Override of the ClassifyNewTrack method. More...
 

Detailed Description

Mother class for user actions in GGS.

This class inherits from the various non-mandatory user actions in GEANT4. With its concrete implementations it is possible to create a single user action that can act at every simulation level (step, track, event, run), eliminating the need to interface user actions at different simulation levels. Currently, G4UserStackingAction is not supported.

Definition at line 27 of file GGSUserAction.h.

Constructor & Destructor Documentation

GGSUserAction::GGSUserAction ( )
inline

Constructor.

This simply calls the constructors of the base classes.

Definition at line 38 of file GGSUserAction.h.

39  : G4UserSteppingAction(), G4UserTrackingAction(), G4UserEventAction(), G4UserRunAction(), G4UserStackingAction() {
40  }

Member Function Documentation

G4ClassificationOfNewTrack GGSUserAction::ClassifyNewTrack ( const G4Track *  )
inline

Override of the ClassifyNewTrack method.

This method always return -100, i.e. a non-valid classification. The GGSUserActionsManager will take care of handling this value correctly and return a valid classification to the Geant4 kernel. The user should override this method and return a meaningful value to effectively classify the track (see the G4ClassificationOfNewTrack enum in Geant4 documentation).

Returns
-100

Definition at line 54 of file GGSUserAction.h.

54 { return (G4ClassificationOfNewTrack)-100; }

The documentation for this class was generated from the following file: