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

#include <G4VITStepModel.hh>

+ Inheritance diagram for G4VITStepModel:

Public Member Functions

 G4VITStepModel (const G4String &aName="NoName")
 
 G4VITStepModel (std::unique_ptr< G4VITTimeStepComputer > pTimeStepper, std::unique_ptr< G4VITReactionProcess > pReactionProcess, const G4String &aName="NoName")
 
 G4VITStepModel (const G4VITStepModel &other)=delete
 
G4VITStepModeloperator= (const G4VITStepModel &other)=delete
 
virtual ~G4VITStepModel ()=default
 
virtual void Initialize ()
 
void PrepareNewTimeStep ()
 
void GetApplicable (G4ITType &type1, G4ITType &type2)
 
virtual void PrintInfo ()
 
G4VITTimeStepComputerGetTimeStepper ()
 
const G4StringGetName ()
 
G4VITReactionProcessGetReactionProcess ()
 
void SetReactionTable (G4ITReactionTable *)
 
const G4ITReactionTableGetReactionTable ()
 

Protected Attributes

G4String fName
 
std::unique_ptr< G4VITTimeStepComputerfpTimeStepper
 
std::unique_ptr< G4VITReactionProcessfpReactionProcess
 
const G4ITReactionTablefpReactionTable
 
G4ITType fType1
 
G4ITType fType2
 

Detailed Description

Define actions before and after stepping. The concrete implementation of G4VITModel defines the interaction between two G4IT types. The types can be equal like : Molecule + Molecule, or different : Molecule + Atom.

Definition at line 61 of file G4VITStepModel.hh.

Constructor & Destructor Documentation

◆ G4VITStepModel() [1/3]

G4VITStepModel::G4VITStepModel ( const G4String aName = "NoName")

Definition at line 37 of file G4VITStepModel.cc.

38 : G4VITStepModel(nullptr, nullptr, aName)
39{
40}

◆ G4VITStepModel() [2/3]

G4VITStepModel::G4VITStepModel ( std::unique_ptr< G4VITTimeStepComputer pTimeStepper,
std::unique_ptr< G4VITReactionProcess pReactionProcess,
const G4String aName = "NoName" 
)

Definition at line 42 of file G4VITStepModel.cc.

45 : fName(aName)
46 , fpTimeStepper(std::move(pTimeStepper))
47 , fpReactionProcess(std::move(pReactionProcess))
48 , fpReactionTable(nullptr)
49 , fType1(-1)
50 , fType2(-1)
51{
52}
const G4ITReactionTable * fpReactionTable
std::unique_ptr< G4VITTimeStepComputer > fpTimeStepper
std::unique_ptr< G4VITReactionProcess > fpReactionProcess

◆ G4VITStepModel() [3/3]

G4VITStepModel::G4VITStepModel ( const G4VITStepModel other)
delete

◆ ~G4VITStepModel()

virtual G4VITStepModel::~G4VITStepModel ( )
virtualdefault

Member Function Documentation

◆ GetApplicable()

void G4VITStepModel::GetApplicable ( G4ITType type1,
G4ITType type2 
)

Definition at line 54 of file G4VITStepModel.cc.

55{
56 type1 = fType1;
57 type2 = fType2;
58 PrintInfo();
59}
virtual void PrintInfo()

Referenced by G4ITModelHandler::RegisterModel().

◆ GetName()

const G4String & G4VITStepModel::GetName ( )

Definition at line 94 of file G4VITStepModel.cc.

95{
96 return fName;
97}

◆ GetReactionProcess()

G4VITReactionProcess * G4VITStepModel::GetReactionProcess ( )

◆ GetReactionTable()

const G4ITReactionTable * G4VITStepModel::GetReactionTable ( )

Definition at line 79 of file G4VITStepModel.cc.

80{
81 return fpReactionTable ;
82}

◆ GetTimeStepper()

G4VITTimeStepComputer * G4VITStepModel::GetTimeStepper ( )

Definition at line 84 of file G4VITStepModel.cc.

85{
86 return fpTimeStepper.get();
87}

Referenced by G4ITModelHandler::RegisterModel().

◆ Initialize()

void G4VITStepModel::Initialize ( )
virtual

Reimplemented in G4DNAMolecularIRTModel, and G4DNAMolecularStepByStepModel.

Definition at line 61 of file G4VITStepModel.cc.

62{
63 fpReactionProcess->SetReactionTable(fpReactionTable);
64 fpTimeStepper->SetReactionTable(fpReactionTable);
65 fpTimeStepper->Initialize();
66 fpReactionProcess->Initialize();
67}

Referenced by G4DNAMolecularIRTModel::Initialize(), and G4DNAMolecularStepByStepModel::Initialize().

◆ operator=()

G4VITStepModel & G4VITStepModel::operator= ( const G4VITStepModel other)
delete

◆ PrepareNewTimeStep()

void G4VITStepModel::PrepareNewTimeStep ( )

Definition at line 69 of file G4VITStepModel.cc.

70{
71 fpTimeStepper->Prepare();
72}

◆ PrintInfo()

virtual void G4VITStepModel::PrintInfo ( )
inlinevirtual

Reimplemented in G4DNAMolecularIRTModel, and G4DNAMolecularStepByStepModel.

Definition at line 78 of file G4VITStepModel.hh.

78{;}

Referenced by GetApplicable().

◆ SetReactionTable()

void G4VITStepModel::SetReactionTable ( G4ITReactionTable pReactionTable)

Definition at line 74 of file G4VITStepModel.cc.

75{
76 fpReactionTable = pReactionTable;
77}

Referenced by G4DNAMolecularIRTModel::Initialize(), and G4DNAMolecularStepByStepModel::Initialize().

Member Data Documentation

◆ fName

G4String G4VITStepModel::fName
protected

◆ fpReactionProcess

std::unique_ptr<G4VITReactionProcess> G4VITStepModel::fpReactionProcess
protected

◆ fpReactionTable

const G4ITReactionTable* G4VITStepModel::fpReactionTable
protected

◆ fpTimeStepper

std::unique_ptr<G4VITTimeStepComputer> G4VITStepModel::fpTimeStepper
protected

◆ fType1

◆ fType2


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