Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VPreCompoundFragment.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// J. M. Quesada (August 2008).
28// Based on previous work by V. Lara
29//
30// Modif (03 September 2008) by J. M. Quesada for external choice of inverse
31// cross section option
32// JMQ (06 September 2008) Also external choice has been added for:
33// - superimposed Coulomb barrier (if useSICB=true)
34// 20.08.2010 V.Ivanchenko added int Z and A and cleanup; added
35// G4ParticleDefinition to constructor,
36// inline method to build G4ReactionProduct;
37// remove string name
38//
39
40#ifndef G4VPreCompoundFragment_h
41#define G4VPreCompoundFragment_h 1
42
43#include "G4ios.hh"
44#include <iomanip>
46#include "G4IonTable.hh"
47#include "G4Fragment.hh"
48#include "G4ReactionProduct.hh"
49#include "G4Pow.hh"
50#include "G4VSIntegration.hh"
51
55class G4InterfaceToXS;
56
58{
59public:
60
63
64 ~G4VPreCompoundFragment() override;
65
66 // Run time initialization method
67 G4bool Initialize(const G4Fragment& aFragment);
68
69 // Calculates the total (integrated over kinetic energy) emission
70 // probability of a fragment
72
73 // sample kinetic energy of emitted fragment
75
77
79
80 G4int GetA() const { return theA; }
81
82 G4int GetZ() const { return theZ; }
83
84 G4int GetRestA() const { return theResA; }
85
86 G4int GetRestZ() const { return theResZ; }
87
89
94
96
97 G4double GetNuclearMass() const { return theMass; }
98
100
101 const G4LorentzVector& GetMomentum() const { return theMomentum; }
102
103 void SetMomentum(const G4LorentzVector& lv) { theMomentum = lv; }
104
105 //for inverse cross section choice
107 //for superimposed Coulomb Barrier for inverse cross sections
108 void UseSICB(G4bool use) { useSICB = use; }
109
110 friend std::ostream&
111 operator<<(std::ostream&, const G4VPreCompoundFragment*);
112 friend std::ostream&
113 operator<<(std::ostream&, const G4VPreCompoundFragment&);
114
117 operator= (const G4VPreCompoundFragment &right) = delete;
118 G4bool operator==(const G4VPreCompoundFragment &right) const = delete;
119 G4bool operator!=(const G4VPreCompoundFragment &right) const = delete;
120
121protected:
122
123 virtual G4double
126
127 virtual G4double GetAlpha() const = 0;
128
129 virtual G4double GetBeta() const { return -theCoulombBarrier; }
130
135 const G4Fragment* pFragment{nullptr};
136
143 //for inverse cross section choice
146
154
157
158 //for superimposed Coulomb Barrier for inverse cross sections
160
161private:
162
163 const G4ParticleDefinition* particle;
164 G4VCoulombBarrier* theCoulombBarrierPtr;
165 G4LorentzVector theMomentum{0., 0., 0., 0.};
166};
167
169{
170 G4ReactionProduct* theReactionProduct = new G4ReactionProduct(particle);
171 theReactionProduct->SetMomentum(GetMomentum().vect());
172 theReactionProduct->SetTotalEnergy(GetMomentum().e());
173 return theReactionProduct;
174}
175
176#endif
CLHEP::HepLorentzVector G4LorentzVector
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
Definition G4Pow.hh:49
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetTotalEnergy(const G4double en)
G4VPreCompoundFragment(const G4VPreCompoundFragment &right)=delete
G4double GetEmissionProbability() const
virtual G4double SampleKineticEnergy(const G4Fragment &)
void SetMomentum(const G4LorentzVector &lv)
G4bool Initialize(const G4Fragment &aFragment)
G4DeexPrecoParameters * theParameters
G4VPreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *)
G4bool operator!=(const G4VPreCompoundFragment &right) const =delete
friend std::ostream & operator<<(std::ostream &, const G4VPreCompoundFragment *)
virtual G4double ProbabilityDistributionFunction(G4double, const G4Fragment &)
G4bool operator==(const G4VPreCompoundFragment &right) const =delete
const G4VPreCompoundFragment & operator=(const G4VPreCompoundFragment &right)=delete
G4ReactionProduct * GetReactionProduct() const
const G4LorentzVector & GetMomentum() const
G4double ProbabilityDensityFunction(G4double energy) override
virtual G4double GetAlpha() const =0
virtual G4double CalcEmissionProbability(const G4Fragment &)
virtual G4double GetBeta() const
G4VSIntegration()=default