Geant4 11.2.2
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
54
56{
57public:
58
61
63
64 friend std::ostream&
65 operator<<(std::ostream&, const G4VPreCompoundFragment*);
66 friend std::ostream&
67 operator<<(std::ostream&, const G4VPreCompoundFragment&);
68
69 // =====================
70 // Pure Virtual methods
71 // =====================
72
73 // Initialization method
74 void Initialize(const G4Fragment& aFragment);
75
76 // Methods for calculating the emission probability
77 // ------------------------------------------------
78
79 // Calculates the total (integrated over kinetic energy) emission
80 // probability of a fragment
82
83 // sample kinetic energy of emitted fragment
85
86 inline G4bool IsItPossible(const G4Fragment& aFragment) const;
87
89
90 G4int GetA() const { return theA; }
91
92 G4int GetZ() const { return theZ; }
93
94 G4int GetRestA() const { return theResA; }
95
96 G4int GetRestZ() const { return theResZ; }
97
99
104
106
107 G4double GetNuclearMass() const { return theMass; }
108
110
111 const G4LorentzVector& GetMomentum() const { return theMomentum; }
112
113 void SetMomentum(const G4LorentzVector& lv) { theMomentum = lv; }
114
115 //for inverse cross section choice
116 void SetOPTxs(G4int opt) { OPTxs = opt; }
117 //for superimposed Coulomb Barrier for inverse cross sections
118 void UseSICB(G4bool use) { useSICB = use; }
119
122 operator= (const G4VPreCompoundFragment &right) = delete;
123 G4bool operator==(const G4VPreCompoundFragment &right) const = delete;
124 G4bool operator!=(const G4VPreCompoundFragment &right) const = delete;
125
126protected:
127
128 virtual G4double GetAlpha() const = 0;
129
130 virtual G4double GetBeta() const { return -theCoulombBarrier; }
131
135
142
150
153
154 //for inverse cross section choice
156 //for superimposed Coulomb Barrier for inverse cross sections
158
159private:
160
161 const G4ParticleDefinition* particle;
162 G4VCoulombBarrier* theCoulombBarrierPtr;
163 G4LorentzVector theMomentum{0., 0., 0., 0.};
164};
165
166inline G4bool
168{
169 G4int pplus = aFragment.GetNumberOfCharged();
170 G4int pneut = aFragment.GetNumberOfParticles()-pplus;
171 return (pneut >= theA - theZ && pplus >= theZ && theMaxKinEnergy > 0.0);
172}
173
175{
176 G4ReactionProduct* theReactionProduct = new G4ReactionProduct(particle);
177 theReactionProduct->SetMomentum(GetMomentum().vect());
178 theReactionProduct->SetTotalEnergy(GetMomentum().e());
179 return theReactionProduct;
180}
181
182#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4int GetNumberOfParticles() const
G4int GetNumberOfCharged() const
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
void SetMomentum(const G4LorentzVector &lv)
G4DeexPrecoParameters * theParameters
G4bool IsItPossible(const G4Fragment &aFragment) const
G4VPreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *)
G4bool operator!=(const G4VPreCompoundFragment &right) const =delete
virtual G4double SampleKineticEnergy(const G4Fragment &)=0
friend std::ostream & operator<<(std::ostream &, const G4VPreCompoundFragment *)
G4bool operator==(const G4VPreCompoundFragment &right) const =delete
const G4VPreCompoundFragment & operator=(const G4VPreCompoundFragment &right)=delete
G4ReactionProduct * GetReactionProduct() const
virtual G4double CalcEmissionProbability(const G4Fragment &)=0
void Initialize(const G4Fragment &aFragment)
const G4LorentzVector & GetMomentum() const
virtual G4double GetAlpha() const =0
virtual G4double GetBeta() const