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

#include <G4VITReactionProcess.hh>

+ Inheritance diagram for G4VITReactionProcess:

Public Member Functions

 G4VITReactionProcess ()
 
virtual ~G4VITReactionProcess ()
 
 G4VITReactionProcess (const G4VITReactionProcess &other)
 
G4VITReactionProcessoperator= (const G4VITReactionProcess &other)
 
virtual void Initialize ()
 
virtual G4bool IsApplicable (G4ITType, G4ITType) const
 
virtual G4bool TestReactibility (const G4Track &, const G4Track &, const double, const double, bool)=0
 
virtual G4ITReactionChangeMakeReaction (const G4Track &, const G4Track &)=0
 
void SetReactionTable (const G4ITReactionTable *)
 
void ResetChanges ()
 

Protected Attributes

const G4ITReactionTablefpReactionTable
 
G4ITReactionChangefpChanges
 
G4String fName
 

Detailed Description

G4VITReactionProcess defines the reaction between two G4IT. It should be stored in a G4VITModel.

Definition at line 53 of file G4VITReactionProcess.hh.

Constructor & Destructor Documentation

◆ G4VITReactionProcess() [1/2]

G4VITReactionProcess::G4VITReactionProcess ( )

Default constructor

Definition at line 38 of file G4VITReactionProcess.cc.

39{
40 //ctor
41}
const G4ITReactionTable * fpReactionTable
G4ITReactionChange * fpChanges

◆ ~G4VITReactionProcess()

G4VITReactionProcess::~G4VITReactionProcess ( )
virtual

Default destructor

Definition at line 43 of file G4VITReactionProcess.cc.

44{
45 //dtor
46}

◆ G4VITReactionProcess() [2/2]

G4VITReactionProcess::G4VITReactionProcess ( const G4VITReactionProcess other)

Copy constructor

Parameters
otherObject to copy from

Definition at line 48 of file G4VITReactionProcess.cc.

49{
50 //copy ctor
51 fpChanges = 0;
53}

Member Function Documentation

◆ Initialize()

virtual void G4VITReactionProcess::Initialize ( )
inlinevirtual

First initialization (done once for all at the begin of the run) eg. check if the reaction table is given ...

Definition at line 83 of file G4VITReactionProcess.hh.

83{;}

Referenced by G4VITModel::Initialize().

◆ IsApplicable()

virtual G4bool G4VITReactionProcess::IsApplicable ( G4ITType  ,
G4ITType   
) const
inlinevirtual

Definition at line 85 of file G4VITReactionProcess.hh.

85{return true;}

◆ MakeReaction()

virtual G4ITReactionChange * G4VITReactionProcess::MakeReaction ( const G4Track ,
const G4Track  
)
pure virtual

◆ operator=()

G4VITReactionProcess & G4VITReactionProcess::operator= ( const G4VITReactionProcess other)

Will Clone the reaction process i.e. new reaction process will be created with same features as the parent one. Use preprocessor macro : AddCloneReactionProcess the copy constructor of the derived class must be implemented. This macro is defined in AddClone_def Assignment operator

Parameters
otherObject to assign from
Returns
A reference to this

Definition at line 55 of file G4VITReactionProcess.cc.

56{
57 //assignment operator
58 if (this == &rhs) return *this; // handle self assignment
59// fApplicableType1 = rhs.fApplicableType1;
60// fApplicableType2 = rhs.fApplicableType2;
61
62 fName = rhs.fName;
63 return *this;
64}

◆ ResetChanges()

void G4VITReactionProcess::ResetChanges ( )
inline

Definition at line 114 of file G4VITReactionProcess.hh.

115{
116 fpChanges = 0;
117}

Referenced by G4ITModelProcessor::FindReaction().

◆ SetReactionTable()

void G4VITReactionProcess::SetReactionTable ( const G4ITReactionTable table)
inline

Definition at line 109 of file G4VITReactionProcess.hh.

110{
111 fpReactionTable = table;
112}

Referenced by G4VITModel::Initialize().

◆ TestReactibility()

virtual G4bool G4VITReactionProcess::TestReactibility ( const G4Track ,
const G4Track ,
const double  ,
const double  ,
bool   
)
pure virtual

Implemented in G4DNAMolecularReaction.

Member Data Documentation

◆ fName

G4String G4VITReactionProcess::fName
protected

Definition at line 106 of file G4VITReactionProcess.hh.

Referenced by operator=().

◆ fpChanges

◆ fpReactionTable

const G4ITReactionTable* G4VITReactionProcess::fpReactionTable
protected

Definition at line 104 of file G4VITReactionProcess.hh.

Referenced by G4VITReactionProcess(), and SetReactionTable().


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