Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ChemReboundTransportation.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
27#ifndef TRANSPORTATION_H
28#define TRANSPORTATION_H
29
30#include "G4DNABoundingBox.hh"
31#include "G4ITReaction.hh"
32#include "G4ITTransportation.hh"
34
35class G4Molecule;
37
39{
40 using MolConf = const G4MolecularConfiguration*;
41
42public:
43 explicit G4ChemReboundTransportation(const G4String& aName = "ChemReboundTransportation",
44 const G4DNABoundingBox* = nullptr, G4int verbosityLevel = 0);
45 ~G4ChemReboundTransportation() override = default;
48 void BuildPhysicsTable(const G4ParticleDefinition&) override;
49 void StartTracking(G4Track* aTrack) override;
50 void ComputeStep(const G4Track&, const G4Step&, G4double, G4double&) override;
52 G4double /*previousStepSize*/,
53 G4double /*currentMinimumStep*/,
54 G4double& /*currentSafety*/,
55 G4GPILSelection* /*selection*/) override;
56
57 G4VParticleChange* PostStepDoIt(const G4Track& track, const G4Step&) override;
58 G4VParticleChange* AlongStepDoIt(const G4Track& track, const G4Step&) override;
59
60 inline void SetBoundary(const G4DNABoundingBox*);
63
64protected:
65 //________________________________________________________________
66 // Process information
68 {
69 public:
71 ~G4ITBrownianState() override = default;
72 G4String GetType() override { return "Rebound"; }
73
76 };
78
83 G4ThreeVector BouncingAction(const G4ThreeVector& nextPosition);
84 G4double calculateDistanceFromTimeStep(MolConf mol, G4double timeStep);
85};
86
88{
89 fpBoundingBox = pBounding;
90}
91
92#endif
G4GPILSelection
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
void SetBoundary(const G4DNABoundingBox *)
void StartTracking(G4Track *aTrack) override
G4ThreeVector BouncingAction(const G4ThreeVector &nextPosition)
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &) override
G4VParticleChange * AlongStepDoIt(const G4Track &track, const G4Step &) override
G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *) override
static G4double calculateNextCoordinate(G4double nextPos, G4double high, G4double low)
void ComputeStep(const G4Track &, const G4Step &, G4double, G4double &) override
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4double calculateDistanceFromTimeStep(MolConf mol, G4double timeStep)
G4ChemReboundTransportation & operator=(const G4ChemReboundTransportation &)=delete
G4ChemReboundTransportation(const G4ChemReboundTransportation &)=delete
~G4ChemReboundTransportation() override=default
G4double GetTimeToBoundary(const G4Track &track)
G4ChemReboundTransportation(const G4String &aName="ChemReboundTransportation", const G4DNABoundingBox *=nullptr, G4int verbosityLevel=0)
static G4ITReactionSet * Instance()
G4ITTransportation(const G4String &aName="ITTransportation", G4int verbosityLevel=0)