Geant4.10
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
G4VITReactionProcess Class Referenceabstract

#include <G4VITReactionProcess.hh>

Inheritance diagram for G4VITReactionProcess:
G4DNAMolecularReaction

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::G4VITReactionProcess ( )

Default constructor

Definition at line 38 of file G4VITReactionProcess.cc.

38  : fpReactionTable(0), fpChanges(0)
39 {
40  //ctor
41 }
const G4ITReactionTable * fpReactionTable
G4ITReactionChange * fpChanges
G4VITReactionProcess::~G4VITReactionProcess ( )
virtual

Default destructor

Definition at line 43 of file G4VITReactionProcess.cc.

44 {
45  //dtor
46 }
G4VITReactionProcess::G4VITReactionProcess ( const G4VITReactionProcess other)

Copy constructor

Parameters
otherObject to copy from

Definition at line 48 of file G4VITReactionProcess.cc.

References fpChanges, and fpReactionTable.

49 {
50  //copy ctor
51  fpChanges = 0;
52  fpReactionTable = 0;
53 }
const G4ITReactionTable * fpReactionTable
G4ITReactionChange * fpChanges

Member Function Documentation

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.

Referenced by G4VITModel::Initialize().

83 {;}
virtual G4bool G4VITReactionProcess::IsApplicable ( G4ITType  ,
G4ITType   
) const
inlinevirtual

Definition at line 85 of file G4VITReactionProcess.hh.

85 {return true;}
virtual G4ITReactionChange* G4VITReactionProcess::MakeReaction ( const G4Track ,
const G4Track  
)
pure virtual
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_defAssignment operator

Parameters
otherObject to assign from
Returns
A reference to this

Definition at line 55 of file G4VITReactionProcess.cc.

References fName.

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 }
void G4VITReactionProcess::ResetChanges ( )
inline

Definition at line 114 of file G4VITReactionProcess.hh.

References fpChanges.

Referenced by G4ITModelProcessor::FindReaction().

115 {
116  fpChanges = 0;
117 }
G4ITReactionChange * fpChanges
void G4VITReactionProcess::SetReactionTable ( const G4ITReactionTable table)
inline

Definition at line 109 of file G4VITReactionProcess.hh.

References fpReactionTable.

Referenced by G4VITModel::Initialize().

110 {
111  fpReactionTable = table;
112 }
const G4ITReactionTable * fpReactionTable
virtual G4bool G4VITReactionProcess::TestReactibility ( const G4Track ,
const G4Track ,
const double  ,
const double  ,
bool   
)
pure virtual

Implemented in G4DNAMolecularReaction.

Field Documentation

G4String G4VITReactionProcess::fName
protected

Definition at line 106 of file G4VITReactionProcess.hh.

Referenced by operator=().

G4ITReactionChange* G4VITReactionProcess::fpChanges
protected
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: