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

#include <G4DNAIndependentReactionTimeModel.hh>

+ Inheritance diagram for G4DNAIndependentReactionTimeModel:

Public Member Functions

 G4DNAIndependentReactionTimeModel (const G4String &name="DNAIndependentReactionTimeModel")
 
 G4DNAIndependentReactionTimeModel (const G4String &name, std::unique_ptr< G4VITTimeStepComputer > pTimeStepper, std::unique_ptr< G4VITReactionProcess > pReactionProcess)
 
 G4DNAIndependentReactionTimeModel (const G4DNAIndependentReactionTimeModel &)=delete
 
 ~G4DNAIndependentReactionTimeModel () override
 
void PrintInfo () override
 
void Initialize () override
 
void SetReactionModel (G4VDNAReactionModel *)
 
G4VDNAReactionModelGetReactionModel ()
 
- Public Member Functions inherited from G4VITStepModel
 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
 
void PrepareNewTimeStep ()
 
void GetApplicable (G4ITType &type1, G4ITType &type2)
 
G4VITTimeStepComputerGetTimeStepper ()
 
const G4StringGetName ()
 
G4VITReactionProcessGetReactionProcess ()
 
void SetReactionTable (G4ITReactionTable *)
 
const G4ITReactionTableGetReactionTable ()
 

Protected Attributes

const G4DNAMolecularReactionTable *& fMolecularReactionTable
 
std::unique_ptr< G4VDNAReactionModelfpReactionModel
 
- Protected Attributes inherited from G4VITStepModel
G4String fName
 
std::unique_ptr< G4VITTimeStepComputerfpTimeStepper
 
std::unique_ptr< G4VITReactionProcessfpReactionProcess
 
const G4ITReactionTablefpReactionTable
 
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 38 of file G4DNAIndependentReactionTimeModel.cc.

41 name, std::make_unique<G4DNAIndependentReactionTimeStepper>(),
42 std::make_unique<G4DNAMakeReaction>())
43{}
G4DNAIndependentReactionTimeModel(const G4String &name="DNAIndependentReactionTimeModel")

◆ G4DNAIndependentReactionTimeModel() [2/3]

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

Definition at line 45 of file G4DNAIndependentReactionTimeModel.cc.

48 : G4VITStepModel(std::move(pTimeStepper), std::move(pReactionProcess), name)
49{
50 fType1 = G4Molecule::ITType();
51 fType2 = G4Molecule::ITType();
52}
G4VITStepModel(const G4String &aName="NoName")

◆ G4DNAIndependentReactionTimeModel() [3/3]

G4DNAIndependentReactionTimeModel::G4DNAIndependentReactionTimeModel ( const G4DNAIndependentReactionTimeModel & )
delete

◆ ~G4DNAIndependentReactionTimeModel()

G4DNAIndependentReactionTimeModel::~G4DNAIndependentReactionTimeModel ( )
overridedefault

Member Function Documentation

◆ GetReactionModel()

G4VDNAReactionModel * G4DNAIndependentReactionTimeModel::GetReactionModel ( )

Definition at line 125 of file G4DNAIndependentReactionTimeModel.cc.

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

◆ Initialize()

void G4DNAIndependentReactionTimeModel::Initialize ( )
overridevirtual

Reimplemented from G4VITStepModel.

Definition at line 57 of file G4DNAIndependentReactionTimeModel.cc.

58{
59 if(fpReactionTable == nullptr)
60 {
62 }
63
65 {
66 fpReactionModel = std::make_unique<G4DiffusionControlledReactionModel>();
67 }
68
69 fpReactionModel->SetReactionTable(
71
73 ->SetReactionModel(fpReactionModel.get());
74
76 ->SetTimeStepComputer(fpTimeStepper.get());
77
79 ->SetReactionModel(fpReactionModel.get());
80
82 ->SetReactionProcess((fpReactionProcess).get());
83
87}
static G4DNAMolecularReactionTable * GetReactionTable()
void SetOctreeUsed(G4bool used)
static G4OctreeFinder * Instance()
void Clear() override
const G4ITReactionTable * fpReactionTable
void SetReactionTable(G4ITReactionTable *)
std::unique_ptr< G4VITTimeStepComputer > fpTimeStepper
virtual void Initialize()
std::unique_ptr< G4VITReactionProcess > fpReactionProcess

◆ PrintInfo()

void G4DNAIndependentReactionTimeModel::PrintInfo ( )
overridevirtual

Reimplemented from G4VITStepModel.

Definition at line 88 of file G4DNAIndependentReactionTimeModel.cc.

89{
90#ifdef G4VERBOSE
92 {
94 {
96 G4cout << G4endl;
97 G4cout << fName << " will be used ==========================" << G4endl;
98 G4cout << G4endl;
99 G4cout << "==============================="
100 "========================================"
101 << G4endl;
102 G4cout << G4endl;
103 }
104 }
105 else
106 {
108 G4cout << G4endl;
109 G4cout << fName << " will be used ==========================" << G4endl;
110 G4cout << G4endl;
111 G4cout << "==============================="
112 "========================================"
113 << G4endl;
114 G4cout << G4endl;
115 }
116#endif
117}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
virtual void PrintInfo()
G4bool IsMultithreadedApplication()
G4int G4GetThreadId()

◆ SetReactionModel()

void G4DNAIndependentReactionTimeModel::SetReactionModel ( G4VDNAReactionModel * pReactionModel)

Definition at line 119 of file G4DNAIndependentReactionTimeModel.cc.

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

Member Data Documentation

◆ fMolecularReactionTable

const G4DNAMolecularReactionTable*& G4DNAIndependentReactionTimeModel::fMolecularReactionTable
protected
Initial value:

Definition at line 54 of file G4DNAIndependentReactionTimeModel.hh.

◆ fpReactionModel

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

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