SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Static Public Member Functions | List of all members
TrackUtil Class Reference

Miscellaneous helper methods for G4Track and related classes. More...

#include <TrackUtil.hh>

Static Public Member Functions

static UserRegionInformation * getRegionInformation (const G4Track *track)
 
static UserTrackInformation * getUserTrackInformation (const G4Track *track)
 
static UserTrackInformation * setupUserTrackInformation (const G4Track *track, G4bool save)
 

Detailed Description

Miscellaneous helper methods for G4Track and related classes.

Definition at line 20 of file TrackUtil.hh.

Member Function Documentation

◆ getRegionInformation()

static UserRegionInformation* getRegionInformation ( const G4Track *  track)
inlinestatic

Get the UserRegionInformation of this G4Track based on its start position.

Parameters
trackThe G4Track.
Returns
The UserRegionInformation for this G4Track.

Definition at line 29 of file TrackUtil.hh.

Referenced by TrackingAction::PreUserTrackingAction(), and TrackSummary::update().

◆ getUserTrackInformation()

static UserTrackInformation* getUserTrackInformation ( const G4Track *  track)
inlinestatic

Get the UserTrackInformation for the track.

Returns
The UserTrackInformation for the track, which may be NULL.

Definition at line 66 of file TrackUtil.hh.

Referenced by TrackingAction::PostUserTrackingAction(), and TrackingAction::PreUserTrackingAction().

◆ setupUserTrackInformation()

static UserTrackInformation* setupUserTrackInformation ( const G4Track *  track,
G4bool  save 
)
inlinestatic

Setup the UserTrackInformation for the G4Track, which also requires first creating a TrackSummary containing all the track information. This will register the TrackSummary in the global list for the event.

Returns
The UserTrackInformation that was created for the track.

Definition at line 42 of file TrackUtil.hh.

References Singleton< TrackManager >::instance().

Referenced by TrackingAction::PostUserTrackingAction(), TrackingAction::PreUserTrackingAction(), and SteppingAction::UserSteppingAction().


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