Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VITStepModel Class Reference

#include <G4VITStepModel.hh>

Inheritance diagram for G4VITStepModel:
Collaboration diagram for G4VITStepModel:

Public Member Functions

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

Protected Member Functions

 G4VITStepModel (const G4VITStepModel &other)
 
G4VITStepModeloperator= (const G4VITStepModel &other)
 

Protected Attributes

G4String fName
 
G4VITTimeStepComputerfpTimeStepper
 
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 62 of file G4VITStepModel.hh.

Constructor & Destructor Documentation

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

Default constructor

Definition at line 38 of file G4VITStepModel.cc.

39 {
40  //ctor
41  fpTimeStepper = 0;
43  fpReactionTable = 0;
44 
45  fType1 = -1;
46  fType2 = -1;
47  fName = aName;
48 }
G4VITTimeStepComputer * fpTimeStepper
G4VITReactionProcess * fpReactionProcess
const G4ITReactionTable * fpReactionTable
G4VITStepModel::~G4VITStepModel ( )
virtual

Default destructor

Definition at line 50 of file G4VITStepModel.cc.

51 {
52  //dtor
53  if(fpTimeStepper) delete fpTimeStepper;
55  //if(fReactionTable) delete fReactionTable;
56  // Let the concrete class delete the reactionTable
57 }
G4VITTimeStepComputer * fpTimeStepper
G4VITReactionProcess * fpReactionProcess
G4VITStepModel::G4VITStepModel ( const G4VITStepModel other)
protected

Copy constructor

Parameters
otherObject to copy from

Definition at line 59 of file G4VITStepModel.cc.

60 {
61  //copy ctor
62  fName = right.fName;
63  fType1 = right.fType1;
64  fType2 = right.fType2;
65  fpReactionTable = 0;
66  fpTimeStepper = right.fpTimeStepper->Clone();
67  fpReactionProcess = right.fpReactionProcess->Clone();
68 }
G4VITTimeStepComputer * fpTimeStepper
G4VITReactionProcess * fpReactionProcess
const G4ITReactionTable * fpReactionTable

Member Function Documentation

const G4String & G4VITStepModel::GetName ( void  )
inline

Definition at line 142 of file G4VITStepModel.hh.

143 {
144  return fName;
145 }
G4VITReactionProcess * G4VITStepModel::GetReactionProcess ( )
inline

Definition at line 137 of file G4VITStepModel.hh.

138 {
139  return fpReactionProcess ;
140 }
G4VITReactionProcess * fpReactionProcess

Here is the caller graph for this function:

const G4ITReactionTable * G4VITStepModel::GetReactionTable ( )
inline

Definition at line 117 of file G4VITStepModel.hh.

118 {
119  return fpReactionTable ;
120 }
const G4ITReactionTable * fpReactionTable
G4VITTimeStepComputer * G4VITStepModel::GetTimeStepper ( )
inline

Definition at line 132 of file G4VITStepModel.hh.

133 {
134  return fpTimeStepper;
135 }
G4VITTimeStepComputer * fpTimeStepper

Here is the caller graph for this function:

void G4VITStepModel::Initialize ( )
virtual

Reimplemented in G4DNAMolecularStepByStepModel.

Definition at line 95 of file G4VITStepModel.cc.

96 {
101 }
G4VITTimeStepComputer * fpTimeStepper
void SetReactionTable(const G4ITReactionTable *)
void SetReactionTable(const G4ITReactionTable *)
G4VITReactionProcess * fpReactionProcess
const G4ITReactionTable * fpReactionTable

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 88 of file G4VITStepModel.cc.

89 {
90  type1 = fType1;
91  type2 = fType2;
92  PrintInfo();
93 }
virtual void PrintInfo()

Here is the call graph for this function:

Here is the caller graph for this function:

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

Assignment operator

Parameters
otherObject to assign from
Returns
A reference to this

Definition at line 71 of file G4VITStepModel.cc.

72 {
73  if (this == &right) return *this; // handle self assignment
74 
75  fName = right.fName;
76  fType1 = right.fType1;
77  fType2 = right.fType2;
78  fpReactionTable = 0;
79  if(fpTimeStepper) delete fpTimeStepper;
80  fpTimeStepper = right.fpTimeStepper->Clone();
82  fpReactionProcess = right.fpReactionProcess->Clone();
83 
84  //assignment operator
85  return *this;
86 }
G4VITTimeStepComputer * fpTimeStepper
G4VITReactionProcess * fpReactionProcess
const G4ITReactionTable * fpReactionTable
virtual void G4VITStepModel::PrintInfo ( )
inlinevirtual

Reimplemented in G4DNAMolecularStepByStepModel.

Definition at line 74 of file G4VITStepModel.hh.

74 {;}

Here is the caller graph for this function:

void G4VITStepModel::SetReactionProcess ( G4VITReactionProcess reactionProcess)
inline

Definition at line 127 of file G4VITStepModel.hh.

128 {
129  fpReactionProcess = reactionProcess ;
130 }
G4VITReactionProcess * fpReactionProcess
void G4VITStepModel::SetReactionTable ( G4ITReactionTable table)
inline

Definition at line 112 of file G4VITStepModel.hh.

113 {
114  fpReactionTable = table;
115 }
const G4ITReactionTable * fpReactionTable

Here is the caller graph for this function:

void G4VITStepModel::SetTimeStepper ( G4VITTimeStepComputer timeStepper)
inline

Definition at line 122 of file G4VITStepModel.hh.

123 {
124  fpTimeStepper = timeStepper ;
125 }
G4VITTimeStepComputer * fpTimeStepper

Member Data Documentation

G4String G4VITStepModel::fName
protected

Definition at line 90 of file G4VITStepModel.hh.

G4VITReactionProcess* G4VITStepModel::fpReactionProcess
protected

Definition at line 93 of file G4VITStepModel.hh.

const G4ITReactionTable* G4VITStepModel::fpReactionTable
protected

Definition at line 95 of file G4VITStepModel.hh.

G4VITTimeStepComputer* G4VITStepModel::fpTimeStepper
protected

Definition at line 92 of file G4VITStepModel.hh.

G4ITType G4VITStepModel::fType1
protected

Definition at line 97 of file G4VITStepModel.hh.

G4ITType G4VITStepModel::fType2
protected

Definition at line 98 of file G4VITStepModel.hh.


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