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

#include <G4VITModel.hh>

+ Inheritance diagram for G4VITModel:

Public Member Functions

 G4VITModel (const G4String &aName="NoName")
 
virtual ~G4VITModel ()
 
void IsApplicable (G4ITType &type1, G4ITType &type2)
 
virtual void PrintInfo ()
 
virtual void Initialize ()
 
void SetTimeStepper (G4VITTimeStepper *timeStepper)
 
void SetReactionProcess (G4VITReactionProcess *reactionProcess)
 
G4VITTimeStepperGetTimeStepper ()
 
const G4StringGetName ()
 
G4VITReactionProcessGetReactionProcess ()
 
void SetReactionTable (G4ITReactionTable *)
 
const G4ITReactionTableGetReactionTable ()
 

Protected Member Functions

 G4VITModel (const G4VITModel &other)
 
G4VITModeloperator= (const G4VITModel &other)
 

Protected Attributes

G4String fName
 
G4VITTimeStepperfpTimeStepper
 
G4VITReactionProcessfpReactionProcess
 
const G4ITReactionTablefpReactionTable
 
G4ITType fType1
 
G4ITType fType2
 

Detailed Description

Define what to do before stepping and after stepping. The concrete implementation of G4VITModel defines the interaction between two G4IT types. The type might be just equal like : Molecule + Molecule, or different : Molecule + Atom.

Definition at line 53 of file G4VITModel.hh.

Constructor & Destructor Documentation

◆ G4VITModel() [1/2]

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

Default constructor

Definition at line 38 of file G4VITModel.cc.

39{
40 //ctor
41 fpTimeStepper = 0;
44
45 fType1 = -1;
46 fType2 = -1;
47 fName = aName;
48}
G4String fName
Definition: G4VITModel.hh:81
G4ITType fType2
Definition: G4VITModel.hh:89
G4ITType fType1
Definition: G4VITModel.hh:88
G4VITTimeStepper * fpTimeStepper
Definition: G4VITModel.hh:83
const G4ITReactionTable * fpReactionTable
Definition: G4VITModel.hh:86
G4VITReactionProcess * fpReactionProcess
Definition: G4VITModel.hh:84

◆ ~G4VITModel()

G4VITModel::~G4VITModel ( )
virtual

Default destructor

Definition at line 50 of file G4VITModel.cc.

51{
52 //dtor
55 //if(fReactionTable) delete fReactionTable;
56 // Let the concrete class delete the reactionTable
57}

◆ G4VITModel() [2/2]

G4VITModel::G4VITModel ( const G4VITModel other)
protected

Copy constructor

Parameters
otherObject to copy from

Definition at line 59 of file G4VITModel.cc.

60{
61 //copy ctor
62 fName = right.fName;
63 fType1 = right.fType1;
64 fType2 = right.fType2;
66 fpTimeStepper = right.fpTimeStepper->Clone();
67 fpReactionProcess = right.fpReactionProcess->Clone();
68}

Member Function Documentation

◆ GetName()

const G4String & G4VITModel::GetName ( )
inline

Definition at line 133 of file G4VITModel.hh.

134{
135 return fName;
136}

◆ GetReactionProcess()

G4VITReactionProcess * G4VITModel::GetReactionProcess ( )
inline

Definition at line 128 of file G4VITModel.hh.

129{
130 return fpReactionProcess ;
131}

Referenced by G4ITModelHandler::RegisterModel().

◆ GetReactionTable()

const G4ITReactionTable * G4VITModel::GetReactionTable ( )
inline

Definition at line 108 of file G4VITModel.hh.

109{
110 return fpReactionTable ;
111}

◆ GetTimeStepper()

G4VITTimeStepper * G4VITModel::GetTimeStepper ( )
inline

Definition at line 123 of file G4VITModel.hh.

124{
125 return fpTimeStepper;
126}

Referenced by G4ITModelProcessor::InitializeStepper(), and G4ITModelHandler::RegisterModel().

◆ Initialize()

void G4VITModel::Initialize ( )
virtual

◆ IsApplicable()

void G4VITModel::IsApplicable ( G4ITType type1,
G4ITType type2 
)

Definition at line 88 of file G4VITModel.cc.

89{
90 type1 = fType1;
91 type2 = fType2;
92 PrintInfo();
93}
virtual void PrintInfo()
Definition: G4VITModel.hh:65

Referenced by G4ITModelHandler::RegisterModel().

◆ operator=()

G4VITModel & G4VITModel::operator= ( const G4VITModel other)
protected

Assignment operator

Parameters
otherObject to assign from
Returns
A reference to this

Definition at line 71 of file G4VITModel.cc.

72{
73 if (this == &right) return *this; // handle self assignment
74
75 fName = right.fName;
76 fType1 = right.fType1;
77 fType2 = right.fType2;
80 fpTimeStepper = right.fpTimeStepper->Clone();
82 fpReactionProcess = right.fpReactionProcess->Clone();
83
84 //assignment operator
85 return *this;
86}

◆ PrintInfo()

virtual void G4VITModel::PrintInfo ( )
inlinevirtual

Reimplemented in G4DNAMolecularStepByStepModel.

Definition at line 65 of file G4VITModel.hh.

65{;}

Referenced by IsApplicable().

◆ SetReactionProcess()

void G4VITModel::SetReactionProcess ( G4VITReactionProcess reactionProcess)
inline

Definition at line 118 of file G4VITModel.hh.

119{
120 fpReactionProcess = reactionProcess ;
121}

◆ SetReactionTable()

void G4VITModel::SetReactionTable ( G4ITReactionTable table)
inline

Definition at line 103 of file G4VITModel.hh.

104{
105 fpReactionTable = table;
106}

◆ SetTimeStepper()

void G4VITModel::SetTimeStepper ( G4VITTimeStepper timeStepper)
inline

Definition at line 113 of file G4VITModel.hh.

114{
115 fpTimeStepper = timeStepper ;
116}

Member Data Documentation

◆ fName

G4String G4VITModel::fName
protected

Definition at line 81 of file G4VITModel.hh.

Referenced by G4VITModel(), GetName(), and operator=().

◆ fpReactionProcess

◆ fpReactionTable

◆ fpTimeStepper

◆ fType1

G4ITType G4VITModel::fType1
protected

◆ fType2

G4ITType G4VITModel::fType2
protected

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