Geant4-11
Public Member Functions | Protected Attributes
G4DNAIndependentReactionTimeModel Class Reference

#include <G4DNAIndependentReactionTimeModel.hh>

Inheritance diagram for G4DNAIndependentReactionTimeModel:
G4VITStepModel

Public Member Functions

 G4DNAIndependentReactionTimeModel (const G4DNAIndependentReactionTimeModel &)=delete
 
 G4DNAIndependentReactionTimeModel (const G4String &name, std::unique_ptr< G4VITTimeStepComputer > pTimeStepper, std::unique_ptr< G4VITReactionProcess > pReactionProcess)
 
 G4DNAIndependentReactionTimeModel (const G4String &name="DNAIndependentReactionTimeModel")
 
void GetApplicable (G4ITType &type1, G4ITType &type2)
 
const G4StringGetName ()
 
G4VDNAReactionModelGetReactionModel ()
 
G4VITReactionProcessGetReactionProcess ()
 
const G4ITReactionTableGetReactionTable ()
 
G4VITTimeStepComputerGetTimeStepper ()
 
void Initialize () override
 
void PrepareNewTimeStep ()
 
void PrintInfo () override
 
void SetReactionModel (G4VDNAReactionModel *)
 
void SetReactionTable (G4ITReactionTable *)
 
void SetReactionTypeManager (G4VReactionTypeManager *pReactionProcessManager)
 
 ~G4DNAIndependentReactionTimeModel () override
 

Protected Attributes

const G4DNAMolecularReactionTable *& fMolecularReactionTable
 
G4String fName
 
std::unique_ptr< G4VDNAReactionModelfpReactionModel
 
std::unique_ptr< G4VITReactionProcessfpReactionProcess
 
const G4ITReactionTablefpReactionTable
 
std::unique_ptr< G4VITTimeStepComputerfpTimeStepper
 
std::unique_ptr< G4VReactionTypeManagerfReactionTypeManager
 
G4ITType fType1
 
G4ITType fType2
 

Detailed Description

Definition at line 37 of file G4DNAIndependentReactionTimeModel.hh.

Constructor & Destructor Documentation

◆ G4DNAIndependentReactionTimeModel() [1/3]

G4DNAIndependentReactionTimeModel::G4DNAIndependentReactionTimeModel ( const G4String name = "DNAIndependentReactionTimeModel")
explicit

Definition at line 39 of file G4DNAIndependentReactionTimeModel.cc.

41 std::unique_ptr<G4DNAIndependentReactionTimeStepper>
43 std::unique_ptr<G4DNAMakeReaction>
44 (new G4DNAMakeReaction()))
45{}
G4DNAIndependentReactionTimeModel(const G4String &name="DNAIndependentReactionTimeModel")
const char * name(G4int ptype)

◆ G4DNAIndependentReactionTimeModel() [2/3]

G4DNAIndependentReactionTimeModel::G4DNAIndependentReactionTimeModel ( const G4String name,
std::unique_ptr< G4VITTimeStepComputer pTimeStepper,
std::unique_ptr< G4VITReactionProcess pReactionProcess 
)

Definition at line 47 of file G4DNAIndependentReactionTimeModel.cc.

50 : G4VITStepModel(std::move(pTimeStepper),
51 std::move(pReactionProcess),
52 name)
53 , fMolecularReactionTable(reference_cast<const G4DNAMolecularReactionTable*>(fpReactionTable))
54{
55 fType1 = G4Molecule::ITType();
56 fType2 = G4Molecule::ITType();
57}
const G4DNAMolecularReactionTable *& fMolecularReactionTable
const G4ITReactionTable * fpReactionTable
G4VITStepModel(const G4String &aName="NoName")

References G4VITStepModel::fType1, and G4VITStepModel::fType2.

◆ G4DNAIndependentReactionTimeModel() [3/3]

G4DNAIndependentReactionTimeModel::G4DNAIndependentReactionTimeModel ( const G4DNAIndependentReactionTimeModel )
delete

◆ ~G4DNAIndependentReactionTimeModel()

G4DNAIndependentReactionTimeModel::~G4DNAIndependentReactionTimeModel ( )
overridedefault

Member Function Documentation

◆ GetApplicable()

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

Definition at line 54 of file G4VITStepModel.cc.

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

References G4VITStepModel::fType1, G4VITStepModel::fType2, and G4VITStepModel::PrintInfo().

Referenced by G4ITModelHandler::RegisterModel().

◆ GetName()

const G4String & G4VITStepModel::GetName ( )
inherited

Definition at line 94 of file G4VITStepModel.cc.

95{
96 return fName;
97}

References G4VITStepModel::fName.

◆ GetReactionModel()

G4VDNAReactionModel * G4DNAIndependentReactionTimeModel::GetReactionModel ( )

Definition at line 126 of file G4DNAIndependentReactionTimeModel.cc.

127{
128 return fpReactionModel.get();
129}
std::unique_ptr< G4VDNAReactionModel > fpReactionModel

References fpReactionModel.

◆ GetReactionProcess()

G4VITReactionProcess * G4VITStepModel::GetReactionProcess ( )
inherited

Definition at line 89 of file G4VITStepModel.cc.

90{
91 return fpReactionProcess.get();
92}
std::unique_ptr< G4VITReactionProcess > fpReactionProcess

References G4VITStepModel::fpReactionProcess.

Referenced by G4ITModelProcessor::CalculateMinTimeStep(), G4ITModelProcessor::ComputeTrackReaction(), and G4ITModelHandler::RegisterModel().

◆ GetReactionTable()

const G4ITReactionTable * G4VITStepModel::GetReactionTable ( )
inherited

Definition at line 79 of file G4VITStepModel.cc.

80{
81 return fpReactionTable ;
82}

References G4VITStepModel::fpReactionTable.

◆ GetTimeStepper()

G4VITTimeStepComputer * G4VITStepModel::GetTimeStepper ( )
inherited

Definition at line 84 of file G4VITStepModel.cc.

85{
86 return fpTimeStepper.get();
87}
std::unique_ptr< G4VITTimeStepComputer > fpTimeStepper

References G4VITStepModel::fpTimeStepper.

Referenced by G4ITModelHandler::RegisterModel().

◆ Initialize()

void G4DNAIndependentReactionTimeModel::Initialize ( )
overridevirtual

Reimplemented from G4VITStepModel.

Definition at line 61 of file G4DNAIndependentReactionTimeModel.cc.

62{
63 if(fpReactionTable == nullptr)
64 {
66 }
67
69 {
71 }
72
74
76
78
79 ((G4DNAMakeReaction*) fpReactionProcess.get())->SetTimeStepComputer(fpTimeStepper.get());
80
82
84
85 ((G4DNAIndependentReactionTimeStepper*) fpTimeStepper.get())->SetReactionProcess((fpReactionProcess).get());
86
89}
void SetReactionTypeManager(G4VReactionTypeManager *pReactionProcessManager)
std::unique_ptr< G4VReactionTypeManager > fReactionTypeManager
static G4DNAMolecularReactionTable * GetReactionTable()
static G4OctreeFinder * Instance()
void Clear() override
void SetReactionTable(G4ITReactionTable *)
virtual void Initialize()

References G4OctreeFinder< T, CONTAINER >::Clear(), fpReactionModel, G4VITStepModel::fpReactionProcess, G4VITStepModel::fpReactionTable, G4VITStepModel::fpTimeStepper, fReactionTypeManager, G4DNAMolecularReactionTable::GetReactionTable(), G4VITStepModel::Initialize(), G4OctreeFinder< T, CONTAINER >::Instance(), SetReactionModel(), G4VITStepModel::SetReactionTable(), and SetReactionTypeManager().

◆ PrepareNewTimeStep()

void G4VITStepModel::PrepareNewTimeStep ( )
inherited

Definition at line 69 of file G4VITStepModel.cc.

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

References G4VITStepModel::fpTimeStepper.

◆ PrintInfo()

void G4DNAIndependentReactionTimeModel::PrintInfo ( )
overridevirtual

Reimplemented from G4VITStepModel.

Definition at line 90 of file G4DNAIndependentReactionTimeModel.cc.

91{
92#ifdef G4VERBOSE
94 {
96 {
99 G4cout << fName << " will be used ==========================" << G4endl;
100 G4cout<<G4endl;
101 G4cout << "==============================="
102 "========================================"<<G4endl;
103 G4cout<<G4endl;
104
105 }
106 }
107 else
108 {
110 G4cout<<G4endl;
111 G4cout << fName << " will be used ==========================" << G4endl;
112 G4cout<<G4endl;
113 G4cout << "==============================="
114 "========================================"<<G4endl;
115 G4cout<<G4endl;
116
117 }
118#endif
119}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4bool IsMultithreadedApplication()
Definition: G4Threading.cc:130
G4int G4GetThreadId()
Definition: G4Threading.cc:122

References G4VITStepModel::fName, G4cout, G4endl, G4Threading::G4GetThreadId(), G4Threading::IsMultithreadedApplication(), and G4VITStepModel::PrintInfo().

◆ SetReactionModel()

void G4DNAIndependentReactionTimeModel::SetReactionModel ( G4VDNAReactionModel pReactionModel)

Definition at line 121 of file G4DNAIndependentReactionTimeModel.cc.

122{
123 fpReactionModel.reset(pReactionModel);
124}

References fpReactionModel.

Referenced by Initialize().

◆ SetReactionTable()

void G4VITStepModel::SetReactionTable ( G4ITReactionTable pReactionTable)
inherited

◆ SetReactionTypeManager()

void G4DNAIndependentReactionTimeModel::SetReactionTypeManager ( G4VReactionTypeManager pReactionProcessManager)

Definition at line 131 of file G4DNAIndependentReactionTimeModel.cc.

132{
133 fReactionTypeManager.reset(pReactionProcessManager);
134}

References fReactionTypeManager.

Referenced by Initialize().

Field Documentation

◆ fMolecularReactionTable

const G4DNAMolecularReactionTable*& G4DNAIndependentReactionTimeModel::fMolecularReactionTable
protected

Definition at line 59 of file G4DNAIndependentReactionTimeModel.hh.

◆ fName

G4String G4VITStepModel::fName
protectedinherited

◆ fpReactionModel

std::unique_ptr<G4VDNAReactionModel> G4DNAIndependentReactionTimeModel::fpReactionModel
protected

◆ fpReactionProcess

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

◆ fpReactionTable

const G4ITReactionTable* G4VITStepModel::fpReactionTable
protectedinherited

◆ fpTimeStepper

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

◆ fReactionTypeManager

std::unique_ptr<G4VReactionTypeManager> G4DNAIndependentReactionTimeModel::fReactionTypeManager
protected

Definition at line 61 of file G4DNAIndependentReactionTimeModel.hh.

Referenced by Initialize(), and SetReactionTypeManager().

◆ fType1

G4ITType G4VITStepModel::fType1
protectedinherited

◆ fType2

G4ITType G4VITStepModel::fType2
protectedinherited

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