Geant4-11
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
G4VITTimeStepComputer Class Referenceabstract

#include <G4VITTimeStepComputer.hh>

Inheritance diagram for G4VITTimeStepComputer:
G4DNAIRTMoleculeEncounterStepper G4DNAIndependentReactionTimeStepper G4DNAMoleculeEncounterStepper

Public Member Functions

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

Static Public Member Functions

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

Protected Attributes

const G4ITReactionTablefpReactionTable
 
G4TrackVectorHandle fReactants
 
G4double fSampledMinTimeStep
 

Static Protected Attributes

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

Private Attributes

G4int fVerbose
 

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

References fpReactionTable, fReactants, fSampledMinTimeStep, and fVerbose.

◆ ~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}

References fpReactionTable, fReactants, fSampledMinTimeStep, and fVerbose.

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

◆ GetReactionTable()

const G4ITReactionTable * G4VITTimeStepComputer::GetReactionTable ( )
inline

Definition at line 123 of file G4VITTimeStepComputer.hh.

124{
125 return fpReactionTable ;
126}

References fpReactionTable.

◆ GetSampledMinTimeStep()

G4double G4VITTimeStepComputer::GetSampledMinTimeStep ( )
inline

Definition at line 134 of file G4VITTimeStepComputer.hh.

135{
136 return fSampledMinTimeStep ;
137}

References fSampledMinTimeStep.

◆ 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

◆ ResetReactants()

virtual void G4VITTimeStepComputer::ResetReactants ( )
inlinevirtual

◆ SetReactionTable()

void G4VITTimeStepComputer::SetReactionTable ( const G4ITReactionTable table)
inline

Definition at line 118 of file G4VITTimeStepComputer.hh.

119{
120 fpReactionTable = table;
121}

References fpReactionTable.

◆ 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

References fCurrentGlobalTime, and fUserMinTimeStep.

Referenced by G4ITModelProcessor::InitializeStepper().

Field 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

G4TrackVectorHandle G4VITTimeStepComputer::fReactants
protected

◆ fSampledMinTimeStep

G4double G4VITTimeStepComputer::fSampledMinTimeStep
protected

◆ fUserMinTimeStep

G4ThreadLocal G4double G4VITTimeStepComputer::fUserMinTimeStep = -1
staticprotected

◆ fVerbose

G4int G4VITTimeStepComputer::fVerbose
private

Definition at line 115 of file G4VITTimeStepComputer.hh.

Referenced by G4VITTimeStepComputer().


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