Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VITTimeStepComputer Class Referenceabstract

#include <G4VITTimeStepComputer.hh>

+ Inheritance diagram for G4VITTimeStepComputer:

Public Member Functions

 G4VITTimeStepComputer ()
 
virtual ~G4VITTimeStepComputer ()
 
 G4VITTimeStepComputer (const G4VITTimeStepComputer &)
 
G4VITTimeStepComputeroperator= (const G4VITTimeStepComputer &other)
 
virtual void Initialize ()
 
virtual void Prepare ()
 
virtual G4double CalculateStep (const G4Track &, const G4double &)=0
 
virtual G4double CalculateMinTimeStep (G4double, G4double)=0
 
G4TrackVectorHandle GetReactants ()
 
virtual void ResetReactants ()
 
G4double GetSampledMinTimeStep ()
 
void SetReactionTable (const G4ITReactionTable *)
 
const G4ITReactionTableGetReactionTable ()
 

Static Public Member Functions

static void SetTimes (const G4double &, const G4double &)
 

Protected Attributes

G4double fSampledMinTimeStep
 
G4TrackVectorHandle fReactants
 
const G4ITReactionTablefpReactionTable
 

Static Protected Attributes

static G4ThreadLocal G4double fCurrentGlobalTime = -1
 
static G4ThreadLocal G4double fUserMinTimeStep = -1
 

Detailed Description

Before stepping all tracks G4Scheduler calls all the G4VITModel which may contain a G4VITTimeStepper (optionnal). G4VITTimeStepper returns what should be the next global time step. Time step that will be used to step all tracks.

Definition at line 69 of file G4VITTimeStepComputer.hh.

Constructor & Destructor Documentation

◆ G4VITTimeStepComputer() [1/2]

G4VITTimeStepComputer::G4VITTimeStepComputer ( )

Definition at line 40 of file G4VITTimeStepComputer.cc.

41{
42 fVerbose = 0;
43// fReactants = 0;
44 fReactants.reset();
47}
G4TrackVectorHandle fReactants
const G4ITReactionTable * fpReactionTable

◆ ~G4VITTimeStepComputer()

G4VITTimeStepComputer::~G4VITTimeStepComputer ( )
virtual

Definition at line 49 of file G4VITTimeStepComputer.cc.

50{;}

◆ G4VITTimeStepComputer() [2/2]

G4VITTimeStepComputer::G4VITTimeStepComputer ( const G4VITTimeStepComputer right)

Definition at line 59 of file G4VITTimeStepComputer.cc.

60{
61 fVerbose = right.fVerbose ;
63// fReactants = 0;
64 fReactants .reset();
66}

Member Function Documentation

◆ CalculateMinTimeStep()

virtual G4double G4VITTimeStepComputer::CalculateMinTimeStep ( G4double  ,
G4double   
)
pure virtual

◆ CalculateStep()

virtual G4double G4VITTimeStepComputer::CalculateStep ( const G4Track ,
const G4double  
)
pure virtual

◆ GetReactants()

G4TrackVectorHandle G4VITTimeStepComputer::GetReactants ( )
inline

Definition at line 139 of file G4VITTimeStepComputer.hh.

140{
141 return fReactants ;
142}

Referenced by G4DNAMoleculeEncounterStepper::CalculateMinTimeStep().

◆ GetReactionTable()

const G4ITReactionTable * G4VITTimeStepComputer::GetReactionTable ( )
inline

Definition at line 123 of file G4VITTimeStepComputer.hh.

124{
125 return fpReactionTable ;
126}

◆ GetSampledMinTimeStep()

G4double G4VITTimeStepComputer::GetSampledMinTimeStep ( )
inline

Definition at line 134 of file G4VITTimeStepComputer.hh.

135{
136 return fSampledMinTimeStep ;
137}

◆ Initialize()

virtual void G4VITTimeStepComputer::Initialize ( )
inlinevirtual

This macro defined in AddClone_def

Definition at line 83 of file G4VITTimeStepComputer.hh.

83{;}

◆ operator=()

G4VITTimeStepComputer & G4VITTimeStepComputer::operator= ( const G4VITTimeStepComputer other)

Definition at line 52 of file G4VITTimeStepComputer.cc.

53{
54 if (this == &rhs) return *this; // handle self assignment
55 //assignment operator
56 return *this;
57}

◆ Prepare()

void G4VITTimeStepComputer::Prepare ( )
inlinevirtual

Reimplemented in G4DNAIRTMoleculeEncounterStepper, and G4DNAMoleculeEncounterStepper.

Definition at line 128 of file G4VITTimeStepComputer.hh.

129{
130// fReactants = 0 ;
131 fReactants.reset() ;
132}

Referenced by G4DNAIRTMoleculeEncounterStepper::Prepare(), and G4DNAMoleculeEncounterStepper::Prepare().

◆ ResetReactants()

virtual void G4VITTimeStepComputer::ResetReactants ( )
inlinevirtual

Definition at line 94 of file G4VITTimeStepComputer.hh.

96 {fReactants.reset();}

Referenced by G4DNAMoleculeEncounterStepper::CalculateMinTimeStep().

◆ SetReactionTable()

void G4VITTimeStepComputer::SetReactionTable ( const G4ITReactionTable table)
inline

Definition at line 118 of file G4VITTimeStepComputer.hh.

119{
120 fpReactionTable = table;
121}

◆ SetTimes()

void G4VITTimeStepComputer::SetTimes ( const G4double currentGlobalTime,
const G4double userMinStepTime 
)
static

Definition at line 68 of file G4VITTimeStepComputer.cc.

70{
71 fCurrentGlobalTime = currentGlobalTime ;
72 fUserMinTimeStep = userMinStepTime ;
73}
static G4ThreadLocal G4double fCurrentGlobalTime
static G4ThreadLocal G4double fUserMinTimeStep

Referenced by G4ITModelProcessor::InitializeStepper().

Member Data Documentation

◆ fCurrentGlobalTime

G4ThreadLocal G4double G4VITTimeStepComputer::fCurrentGlobalTime = -1
staticprotected

Definition at line 106 of file G4VITTimeStepComputer.hh.

Referenced by SetTimes().

◆ fpReactionTable

const G4ITReactionTable* G4VITTimeStepComputer::fpReactionTable
protected

◆ fReactants

◆ fSampledMinTimeStep

◆ fUserMinTimeStep


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