Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNAPolyNucleotideReactionProcess.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26/// file: G4DNAPolyNucleotideReactionProcess.hh
27/// brief: This file handls reaction process with DNA geometry.
28#ifndef G4DNAPolyNucleotideReactionProcess_hh
29#define G4DNAPolyNucleotideReactionProcess_hh
32#include <variant>
34class G4DNAComponentNode;
35class G4VDNAHitModel;
36
38{
39 public:
41 const G4String& aName = "DNAStaticMoleculeReactionProcess",
42 G4int verbosityLevel = 0);
44
48
49 inline void SetDNADamageReactionModel(G4VDNAHitModel* pModel);
50
51 G4bool IsApplicable(const G4ParticleDefinition&) override { return true; }
52
54 const G4double& userTimeStep = 0);
55
56 void StartTracking(G4Track* aTrack) override;
57
59 const G4Track&, // track
60 G4double, // previousStepSize
61 G4ForceCondition* pForceCond) override;
62 G4VParticleChange* PostStepDoIt(const G4Track& track, const G4Step&) override;
63
65 {
66 return DBL_MAX;
67 }
68
69 inline void SetVerbose(G4int verbose);
70
71 protected:
73
74 private:
75 struct G4PolyNucleotideReactionState
76 : public G4ProcessStateBase<G4PolyNucleotideReactionState>
77 {
78 G4PolyNucleotideReactionState();
79 ~G4PolyNucleotideReactionState() override = default;
80 G4String GetType() override { return "PolyNucleotideReactionState"; }
81
82 using DNANode =
83 std::variant<const G4DNAComponentNode*, /*for dnadamage chain*/
84 const G4VPhysicalVolume* /*for molecularDNA chain*/>;
85 DNANode fNodeReactant;
86 G4double fSampledMinTimeStep;
87 G4double fPreviousTimeAtPreStepPoint;
88 };
89 G4bool fHasAlreadyReachedNullTime{false};
90 G4int fVerbose;
91 G4double fRCutOff;
92 G4VDNAHitModel* fpDamageModel{nullptr};
93};
95{
96 fVerbose = verbose;
97}
98
100 G4VDNAHitModel* pModel)
101{
102 fpDamageModel = pModel;
103}
104#endif
G4ForceCondition
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4DNAPolyNucleotideReactionProcess & operator=(const G4DNAPolyNucleotideReactionProcess &)=delete
G4double PostStepGetPhysicalInteractionLength(const G4Track &, G4double, G4ForceCondition *pForceCond) override
G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *) override
G4DNAPolyNucleotideReactionProcess(const G4String &aName="DNAStaticMoleculeReactionProcess", G4int verbosityLevel=0)
G4double CalculateTimeStep(const G4Track &trackA, const G4double &userTimeStep=0)
G4DNAPolyNucleotideReactionProcess(const G4DNAPolyNucleotideReactionProcess &)=delete
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &) override
G4bool IsApplicable(const G4ParticleDefinition &) override
#define DBL_MAX
Definition templates.hh:62