Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4UserTimeStepAction Class Reference

#include <G4UserTimeStepAction.hh>

Public Member Functions

 G4UserTimeStepAction ()
 
 G4UserTimeStepAction (const G4UserTimeStepAction &)
 
virtual ~G4UserTimeStepAction ()
 
virtual void StartProcessing ()
 
virtual void NewStage ()
 
virtual void UserPreTimeStepAction ()
 
virtual void UserPostTimeStepAction ()
 
virtual void UserReactionAction (const G4Track &, const G4Track &, const std::vector< G4Track * > *)
 
virtual void EndProcessing ()
 

Protected Member Functions

void SetMinimumTimeSteps (std::map< double, double > *)
 
void AddTimeStep (double, double)
 

Detailed Description

G4UserTimeStepAction is used by G4Scheduler.

  • StartProcessing called before processing
  • TimeStepAction called at every global step
  • UserReactionAction called when a reaction occurs
  • EndProcessing called after processing

Definition at line 68 of file G4UserTimeStepAction.hh.

Constructor & Destructor Documentation

◆ G4UserTimeStepAction() [1/2]

G4UserTimeStepAction::G4UserTimeStepAction ( )
default

◆ G4UserTimeStepAction() [2/2]

G4UserTimeStepAction::G4UserTimeStepAction ( const G4UserTimeStepAction & )
default

◆ ~G4UserTimeStepAction()

G4UserTimeStepAction::~G4UserTimeStepAction ( )
virtualdefault

Member Function Documentation

◆ AddTimeStep()

void G4UserTimeStepAction::AddTimeStep ( double startingTime,
double timeStep )
protected

Definition at line 54 of file G4UserTimeStepAction.cc.

55{
56 G4VScheduler::Instance()-> AddTimeStep(startingTime,timeStep);
57}
void AddTimeStep(double, double)
static G4VScheduler * Instance()

Referenced by AddTimeStep().

◆ EndProcessing()

virtual void G4UserTimeStepAction::EndProcessing ( )
inlinevirtual

Definition at line 92 of file G4UserTimeStepAction.hh.

92{;}

Referenced by G4Scheduler::Process().

◆ NewStage()

virtual void G4UserTimeStepAction::NewStage ( )
inlinevirtual

Definition at line 76 of file G4UserTimeStepAction.hh.

76{;}

Referenced by G4Scheduler::DoProcess().

◆ SetMinimumTimeSteps()

void G4UserTimeStepAction::SetMinimumTimeSteps ( std::map< double, double > * timeSteps)
protected

Definition at line 49 of file G4UserTimeStepAction.cc.

50{
51 G4VScheduler::Instance()-> SetTimeSteps(timeSteps);
52}

◆ StartProcessing()

virtual void G4UserTimeStepAction::StartProcessing ( )
inlinevirtual

Definition at line 75 of file G4UserTimeStepAction.hh.

75{;}

Referenced by G4Scheduler::Process().

◆ UserPostTimeStepAction()

virtual void G4UserTimeStepAction::UserPostTimeStepAction ( )
inlinevirtual

Definition at line 84 of file G4UserTimeStepAction.hh.

84{;}

Referenced by G4Scheduler::Stepping().

◆ UserPreTimeStepAction()

virtual void G4UserTimeStepAction::UserPreTimeStepAction ( )
inlinevirtual

In this method, the user can use : G4Scheduler::Instance()->GetGlobalTime(), to know the current simulation time G4Scheduler::Instance()->GetTimeStep(), to know the selected minimum time WARNING : The call of this method happens before the call of DoIT methods

Definition at line 83 of file G4UserTimeStepAction.hh.

83{;}

Referenced by G4Scheduler::Stepping().

◆ UserReactionAction()

virtual void G4UserTimeStepAction::UserReactionAction ( const G4Track & ,
const G4Track & ,
const std::vector< G4Track * > *  )
inlinevirtual

Inform about a reaction

Definition at line 89 of file G4UserTimeStepAction.hh.

91 {;}

Referenced by G4ITModelProcessor::ComputeTrackReaction().


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