Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCLNuclearDensity.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// INCL++ intra-nuclear cascade model
27// Pekka Kaitaniemi, CEA and Helsinki Institute of Physics
28// Davide Mancusi, CEA
29// Alain Boudard, CEA
30// Sylvie Leray, CEA
31// Joseph Cugnon, University of Liege
32//
33// INCL++ revision: v5.1.8
34//
35#define INCLXX_IN_GEANT4_MODE 1
36
37#include "globals.hh"
38
39#ifndef G4INCLNuclearDensity_hh
40#define G4INCLNuclearDensity_hh 1
41
42#include <vector>
43#include <map>
44// #include <cassert>
45#include "G4INCLThreeVector.hh"
46#include "G4INCLIFunction1D.hh"
47#include "G4INCLParticle.hh"
48#include "G4INCLGlobals.hh"
49#include "G4INCLRandom.hh"
52
53namespace G4INCL {
54
56 public:
57 NuclearDensity(G4int A, G4int Z, InverseInterpolationTable *rpCorrelationTable);
59
60 /// \brief Copy constructor
62
63 /// \brief Assignment operator
65
66 /// \brief Helper method for the assignment operator
67 void swap(NuclearDensity &rhs);
68
69 /** \brief Get the maximum allowed radius for a given momentum.
70 * \param p Absolute value of the particle momentum, divided by the
71 * relevant Fermi momentum.
72 * \return Maximum allowed radius.
73 */
75
77
78 G4double getMaximumRadius() const { return theMaximumRadius; };
79
80 /** \brief The radius used for calculating the transmission coefficient.
81 *
82 * \return the radius
83 */
84 G4double getTransmissionRadius(Particle const * const p) const {
85 const ParticleType t = p->getType();
86// assert(t!=Neutron && t!=PiZero && t!=DeltaZero); // no neutral particles here
87 if(t==Composite) {
88 return transmissionRadius[t] +
90 } else
91 return transmissionRadius[t];
92 };
93
94 /** \brief The radius used for calculating the transmission coefficient.
95 *
96 * \return the radius
97 */
99// assert(type!=Composite);
100 return transmissionRadius[type];
101 };
102
103 /// \brief Get the mass number.
104 G4int getA() const { return theA; }
105
106 /// \brief Get the charge number.
107 G4int getZ() const { return theZ; }
108
109 G4double getNuclearRadius() { return theNuclearRadius; }
110
111 private:
112
113 /** \brief Initialize the transmission radius. */
114 void initializeTransmissionRadii();
115
116 G4int theA, theZ;
117 G4double theMaximumRadius;
118 /// \brief Represents INCL4.5's R0 variable
119 G4double theNuclearRadius;
120
121 /* \brief map of transmission radii per particle type */
122 G4double transmissionRadius[UnknownParticle];
123
126 };
127
128}
129
130#endif
Functor for 1-dimensional mathematical functions.
Abstract interface to the nuclear potential.
Simple interpolation table for the inverse of a IFunction1D functor.
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
Class for interpolating the inverse of a 1-dimensional function.
G4double getTransmissionRadius(Particle const *const p) const
The radius used for calculating the transmission coefficient.
G4double getMaxRFromP(G4double p) const
Get the maximum allowed radius for a given momentum.
G4int getZ() const
Get the charge number.
void swap(NuclearDensity &rhs)
Helper method for the assignment operator.
NuclearDensity & operator=(const NuclearDensity &rhs)
Assignment operator.
G4double getMaximumRadius() const
G4int getA() const
Get the mass number.
G4double getTransmissionRadius(ParticleType type)
The radius used for calculating the transmission coefficient.
G4double getMaxTFromR(G4double r) const
static G4double getNuclearRadius(const G4int A, const G4int Z)
G4int getZ() const
Returns the charge number.
G4INCL::ParticleType getType() const
G4int getA() const
Returns the baryon number.