File indexing completed on 2025-01-18 09:58:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #pragma once
0036
0037 #include "G4VITTimeStepComputer.hh"
0038 #include "G4KDTreeResult.hh"
0039 #include "G4ITReaction.hh"
0040 #include "G4ITTrackHolder.hh"
0041
0042 class G4VDNAReactionModel;
0043 class G4DNAMolecularReactionTable;
0044 class G4MolecularConfiguration;
0045
0046 class G4Molecule;
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 class G4DNAIRTMoleculeEncounterStepper : public G4VITTimeStepComputer
0060 {
0061 public:
0062 G4DNAIRTMoleculeEncounterStepper();
0063 ~G4DNAIRTMoleculeEncounterStepper() override;
0064 G4DNAIRTMoleculeEncounterStepper(const G4DNAIRTMoleculeEncounterStepper&) = delete;
0065 G4DNAIRTMoleculeEncounterStepper& operator=(const G4DNAIRTMoleculeEncounterStepper&) = delete;
0066
0067 void Prepare() override;
0068 G4double CalculateStep(const G4Track&, const G4double&) override;
0069 G4double CalculateMinTimeStep(G4double, G4double) override;
0070
0071 void SetReactionModel(G4VDNAReactionModel*);
0072 G4VDNAReactionModel* GetReactionModel();
0073
0074 void SetVerbose(int);
0075
0076
0077
0078 private:
0079 void InitializeForNewTrack();
0080
0081 class Utils;
0082 void CheckAndRecordResults(const Utils&,
0083 #ifdef G4VERBOSE
0084 const G4double reactionRange,
0085 #endif
0086 G4KDTreeResultHandle&);
0087
0088 G4bool fHasAlreadyReachedNullTime{false};
0089
0090 const G4DNAMolecularReactionTable*& fMolecularReactionTable;
0091 G4VDNAReactionModel* fReactionModel{nullptr};
0092 G4ITReactionSet* fReactionSet;
0093 G4ITTrackHolder* fpTrackContainer;
0094 G4int fVerbose{0};
0095
0096 class Utils
0097 {
0098 public:
0099 Utils(const G4Track& tA, const G4MolecularConfiguration* mB);
0100 ~Utils() = default;
0101
0102 G4double GetConstant() const
0103 {
0104 return fConstant;
0105 }
0106
0107 const G4Track& fpTrackA;
0108 const G4MolecularConfiguration* fpMoleculeB;
0109 const G4Molecule* fpMoleculeA;
0110 G4double fDA;
0111 G4double fDB;
0112 G4double fConstant;
0113 };
0114 };