Geant4 10.7.0
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 ( )

Definition at line 38 of file G4UserTimeStepAction.cc.

39{;}

◆ G4UserTimeStepAction() [2/2]

G4UserTimeStepAction::G4UserTimeStepAction ( const G4UserTimeStepAction )

Definition at line 44 of file G4UserTimeStepAction.cc.

44{;}

◆ ~G4UserTimeStepAction()

G4UserTimeStepAction::~G4UserTimeStepAction ( )
virtual

Definition at line 41 of file G4UserTimeStepAction.cc.

42{;}

Member Function Documentation

◆ AddTimeStep()

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

Definition at line 57 of file G4UserTimeStepAction.cc.

58{
59 G4VScheduler::Instance()-> AddTimeStep(startingTime,timeStep);
60}
void AddTimeStep(double, double)
static G4VScheduler * Instance()
Definition: G4VScheduler.cc:48

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 52 of file G4UserTimeStepAction.cc.

53{
54 G4VScheduler::Instance()-> SetTimeSteps(timeSteps);
55}

◆ 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: