Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimeStepAction Class Reference

#include <TimeStepAction.hh>

Inheritance diagram for TimeStepAction:
Collaboration diagram for TimeStepAction:

Public Member Functions

 TimeStepAction ()
 
virtual ~TimeStepAction ()
 
 TimeStepAction (const TimeStepAction &other)
 
TimeStepActionoperator= (const TimeStepAction &other)
 
virtual void StartProcessing ()
 
virtual void UserPreTimeStepAction ()
 
virtual void UserPostTimeStepAction ()
 
virtual void UserReactionAction (const G4Track &, const G4Track &, const std::vector< G4Track * > *)
 
virtual void EndProcessing ()
 
 TimeStepAction ()
 
virtual ~TimeStepAction ()
 
 TimeStepAction (const TimeStepAction &other)
 
TimeStepActionoperator= (const TimeStepAction &other)
 
virtual void StartProcessing ()
 
virtual void UserPreTimeStepAction ()
 
virtual void UserPostTimeStepAction ()
 
virtual void UserReactionAction (const G4Track &, const G4Track &, const std::vector< G4Track * > *)
 
virtual void EndProcessing ()
 
- Public Member Functions inherited from G4UserTimeStepAction
 G4UserTimeStepAction ()
 
 G4UserTimeStepAction (const G4UserTimeStepAction &)
 
virtual ~G4UserTimeStepAction ()
 
virtual void NewStage ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4UserTimeStepAction
void SetMinimumTimeSteps (std::map< double, double > *)
 
void AddTimeStep (double, double)
 

Detailed Description

Definition at line 43 of file TimeStepAction.hh.

Constructor & Destructor Documentation

TimeStepAction::TimeStepAction ( )

Inform G4ITTimeStepper of the selected minimum time steps eg : from 1 picosecond to 10 picosecond, the minimum time step that the TimeStepper can returned is 0.1 picosecond.

Case 1) If the rection model calculates a minimum reaction time bigger than the user defined time step, the reaction model wins

Case 2) If an interaction process with the continuous medium calculates a time step less than the selected minimum time step, the interaction process wins

Definition at line 46 of file TimeStepAction.cc.

46  :
48 {
62  AddTimeStep(1 * picosecond, 0.1 * picosecond);
64  AddTimeStep(100 * picosecond, 3 * picosecond);
65  AddTimeStep(1000 * picosecond, 10 * picosecond);
66  AddTimeStep(10000 * picosecond, 100 * picosecond);
67 }
static constexpr double picosecond
Definition: G4SIunits.hh:161
void AddTimeStep(double, double)

Here is the call graph for this function:

TimeStepAction::~TimeStepAction ( )
virtual

Definition at line 71 of file TimeStepAction.cc.

72 {
73 }
TimeStepAction::TimeStepAction ( const TimeStepAction other)

Definition at line 77 of file TimeStepAction.cc.

77  :
79 {
80 }
TimeStepAction::TimeStepAction ( )
virtual TimeStepAction::~TimeStepAction ( )
virtual
TimeStepAction::TimeStepAction ( const TimeStepAction other)

Member Function Documentation

void TimeStepAction::EndProcessing ( )
virtual

Reimplemented from G4UserTimeStepAction.

Definition at line 132 of file TimeStepAction.cc.

133 {
134 }
virtual void TimeStepAction::EndProcessing ( )
inlinevirtual

Reimplemented from G4UserTimeStepAction.

Definition at line 71 of file TimeStepAction.hh.

71 {;}
TimeStepAction & TimeStepAction::operator= ( const TimeStepAction other)

Definition at line 84 of file TimeStepAction.cc.

85 {
86  if (this == &rhs) return *this; // handle self assignment
87  //assignment operator
88  return *this;
89 }
TimeStepAction& TimeStepAction::operator= ( const TimeStepAction other)
void TimeStepAction::StartProcessing ( )
virtual

Reimplemented from G4UserTimeStepAction.

Definition at line 93 of file TimeStepAction.cc.

94 {
95 // You want to know why the simulation stopped ?
96 // G4ITScheduler::Instance()->WhyDoYouStop();
97 // At the end of the simulation, information will be printed
98 // It is better to place this command before the simulation starts
99 }
virtual void TimeStepAction::StartProcessing ( )
inlinevirtual

Reimplemented from G4UserTimeStepAction.

Definition at line 51 of file TimeStepAction.hh.

51 {;}
void TimeStepAction::UserPostTimeStepAction ( )
virtual

Reimplemented from G4UserTimeStepAction.

Definition at line 109 of file TimeStepAction.cc.

110 {
111 }
virtual void TimeStepAction::UserPostTimeStepAction ( )
virtual

Reimplemented from G4UserTimeStepAction.

void TimeStepAction::UserPreTimeStepAction ( )
virtual

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

Reimplemented from G4UserTimeStepAction.

Definition at line 103 of file TimeStepAction.cc.

104 {
105 }
virtual void TimeStepAction::UserPreTimeStepAction ( )
inlinevirtual

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

Reimplemented from G4UserTimeStepAction.

Definition at line 61 of file TimeStepAction.hh.

61 {;}
void TimeStepAction::UserReactionAction ( const G4Track ,
const G4Track ,
const std::vector< G4Track * > *   
)
virtual

Inform about a reaction

Reimplemented from G4UserTimeStepAction.

Definition at line 118 of file TimeStepAction.cc.

121 {
122  /*
123  for (int i = 0 ; i < nbProducts ; i ++)
124  {
125  G4cout << "Product[" << i << "] : "
126  << GetMolecule(products[i])->GetName()
127  << G4endl ;
128  }
129  */
130 }
virtual void TimeStepAction::UserReactionAction ( const G4Track ,
const G4Track ,
const std::vector< G4Track * > *   
)
virtual

Inform about a reaction

Reimplemented from G4UserTimeStepAction.


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