Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TransportationWithMsc.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// G4TransportationWithMsc
27//
28// Class Description:
29//
30// It is a generic process of transportation with multiple scattering included
31// in the step limitation and propagation.
32//
33// Original author: Jonas Hahnfeld, 2022
34
35#ifndef G4TrasportationWithMsc_h
36#define G4TrasportationWithMsc_h 1
37
38#include "G4Transportation.hh"
39
40#include <vector>
41
45class G4Region;
46class G4VMscModel;
47
48//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
49
51{
52 public:
53 enum class ScatteringType
54 {
56 };
57
58 explicit G4TransportationWithMsc(ScatteringType type, G4int verbosity = 0);
59
60 ~G4TransportationWithMsc() override;
61
62 inline void SetMultipleSteps(G4bool val);
63 inline G4bool MultipleSteps() const;
64
65 void AddMscModel(G4VMscModel* mscModel, G4int order = 0,
66 const G4Region* region = nullptr);
67
68 public:
69 void PreparePhysicsTable(const G4ParticleDefinition& part) override;
70 void BuildPhysicsTable(const G4ParticleDefinition& part) override;
71
72 void StartTracking(G4Track* track) override;
73
75 const G4Track& track, G4double previousStepSize,
76 G4double currentMinimumStep, G4double& proposedSafety,
77 G4GPILSelection* selection) override;
78
79 private:
80 const ScatteringType fType;
81 G4bool fMultipleSteps = false;
82
83 G4LossTableManager* fEmManager;
84 G4EmModelManager* fModelManager;
85 const G4ParticleDefinition* fFirstParticle = nullptr;
86
87 G4DynamicParticle* fSubStepDynamicParticle;
88 G4Track* fSubStepTrack;
89 G4Step* fSubStep;
90};
91
92//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
93
95{
96 fMultipleSteps = val;
97}
98
99//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
100
102{
103 return fMultipleSteps;
104}
105
106//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
107
108#endif
G4GPILSelection
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
Definition: G4Step.hh:62
void AddMscModel(G4VMscModel *mscModel, G4int order=0, const G4Region *region=nullptr)
void BuildPhysicsTable(const G4ParticleDefinition &part) override
void StartTracking(G4Track *track) override
G4double AlongStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection) override
void PreparePhysicsTable(const G4ParticleDefinition &part) override