47 if(
this == &right)
return *
this;
76 G4double __output = (*fReactionData)[__i] -> GetReducedReactionRadius();
84 const G4bool __alongStepReaction)
87 bool __do_break = false ;
95 if(__postStepSeparation > __R2)
102 if(__do_break ==
false)
106 __r = std::sqrt(__postStepSeparation);
109 else if(__alongStepReaction ==
true)
121 __r = (__postStepSeparation = std::sqrt(__postStepSeparation) );
134 exceptionDescription <<
"The molecule : " << __moleculeA->
GetName();
135 exceptionDescription <<
" with track ID :" << __trackA.
GetTrackID();
136 exceptionDescription <<
" did not move since the previous step." <<
G4endl;
137 exceptionDescription <<
"Current position : " <<
G4BestUnit(__trackA.
GetPosition(),
"Length") << G4endl;
138 exceptionDescription <<
"Previous position : " <<
G4BestUnit(__preStepPositionA,
"Length") <<
G4endl;
139 G4Exception(
"G4DNASmoluchowskiReactionModel::FindReaction",
"G4DNASmoluchowskiReactionModel",
143 G4double __preStepSeparation = (__preStepPositionA - __preStepPositionB).mag();
145 G4double __probabiltyOfEncounter = std::exp(-(__preStepSeparation - __R)*(__postStepSeparation - __R)
149 if(__selectedPOE<=__probabiltyOfEncounter)
return true;
virtual G4bool FindReaction(const G4Track &, const G4Track &, const G4double, G4double &, const G4bool)
std::ostringstream G4ExceptionDescription
const G4ThreeVector & GetPosition() const
G4double GetDiffusionCoefficient() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
const G4Step * GetStep() const
virtual void Initialise(const G4Molecule *, const G4Track &)
const G4DNAMolecularReactionTable * fReactionTable
G4StepPoint * GetPreStepPoint() const
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
virtual void InitialiseToPrint(const G4Molecule *)
G4double GetDeltaTime() const
G4Molecule * GetMolecule(const G4Track &track)
G4DNASmoluchowskiReactionModel()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual ~G4DNASmoluchowskiReactionModel()
const G4DNAMolecularReactionData * GetReactionData(const G4Molecule *, const G4Molecule *) const
virtual G4double GetReactionRadius(const G4Molecule *, const G4Molecule *)