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
"
50
#include "
G4INCLINuclearPotential.hh
"
51
#include "
G4INCLInverseInterpolationTable.hh
"
52
53
namespace
G4INCL
{
54
55
class
NuclearDensity
{
56
public
:
57
NuclearDensity
(
G4int
A,
G4int
Z,
InverseInterpolationTable
*rpCorrelationTable);
58
~NuclearDensity
();
59
60
/// \brief Copy constructor
61
NuclearDensity
(
const
NuclearDensity
&rhs);
62
63
/// \brief Assignment operator
64
NuclearDensity
&
operator=
(
const
NuclearDensity
&rhs);
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
*/
74
G4double
getMaxRFromP
(
G4double
p)
const
;
75
76
G4double
getMaxTFromR
(
G4double
r)
const
;
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] +
89
ParticleTable::getNuclearRadius
(p->
getA
(), p->
getZ
());
90
}
else
91
return
transmissionRadius[t];
92
};
93
94
/** \brief The radius used for calculating the transmission coefficient.
95
*
96
* \return the radius
97
*/
98
G4double
getTransmissionRadius
(
ParticleType
type) {
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
124
InverseInterpolationTable
*rFromP;
125
InverseInterpolationTable
*tFromR;
126
};
127
128
}
129
130
#endif
G4INCLGlobals.hh
G4INCLIFunction1D.hh
Functor for 1-dimensional mathematical functions.
G4INCLINuclearPotential.hh
Abstract interface to the nuclear potential.
G4INCLInverseInterpolationTable.hh
Simple interpolation table for the inverse of a IFunction1D functor.
G4INCLParticle.hh
G4INCLRandom.hh
G4INCLThreeVector.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4int
int G4int
Definition:
G4Types.hh:66
G4INCL::InverseInterpolationTable
Class for interpolating the inverse of a 1-dimensional function.
Definition:
G4INCLInverseInterpolationTable.hh:115
G4INCL::NuclearDensity
Definition:
G4INCLNuclearDensity.hh:55
G4INCL::NuclearDensity::getTransmissionRadius
G4double getTransmissionRadius(Particle const *const p) const
The radius used for calculating the transmission coefficient.
Definition:
G4INCLNuclearDensity.hh:84
G4INCL::NuclearDensity::getMaxRFromP
G4double getMaxRFromP(G4double p) const
Get the maximum allowed radius for a given momentum.
Definition:
G4INCLNuclearDensity.cc:112
G4INCL::NuclearDensity::getZ
G4int getZ() const
Get the charge number.
Definition:
G4INCLNuclearDensity.hh:107
G4INCL::NuclearDensity::swap
void swap(NuclearDensity &rhs)
Helper method for the assignment operator.
Definition:
G4INCLNuclearDensity.cc:88
G4INCL::NuclearDensity::operator=
NuclearDensity & operator=(const NuclearDensity &rhs)
Assignment operator.
Definition:
G4INCLNuclearDensity.cc:82
G4INCL::NuclearDensity::getMaximumRadius
G4double getMaximumRadius() const
Definition:
G4INCLNuclearDensity.hh:78
G4INCL::NuclearDensity::~NuclearDensity
~NuclearDensity()
Definition:
G4INCLNuclearDensity.cc:63
G4INCL::NuclearDensity::getA
G4int getA() const
Get the mass number.
Definition:
G4INCLNuclearDensity.hh:104
G4INCL::NuclearDensity::getNuclearRadius
G4double getNuclearRadius()
Definition:
G4INCLNuclearDensity.hh:109
G4INCL::NuclearDensity::getTransmissionRadius
G4double getTransmissionRadius(ParticleType type)
The radius used for calculating the transmission coefficient.
Definition:
G4INCLNuclearDensity.hh:98
G4INCL::NuclearDensity::getMaxTFromR
G4double getMaxTFromR(G4double r) const
Definition:
G4INCLNuclearDensity.cc:116
G4INCL::ParticleTable::getNuclearRadius
static G4double getNuclearRadius(const G4int A, const G4int Z)
Definition:
G4INCLParticleTable.cc:535
G4INCL::Particle
Definition:
G4INCLParticle.hh:66
G4INCL::Particle::getZ
G4int getZ() const
Returns the charge number.
Definition:
G4INCLParticle.hh:272
G4INCL::Particle::getType
G4INCL::ParticleType getType() const
Definition:
G4INCLParticle.hh:155
G4INCL::Particle::getA
G4int getA() const
Returns the baryon number.
Definition:
G4INCLParticle.hh:269
globals.hh
G4INCL
Definition:
G4INCLAvatarAction.hh:46
G4INCL::ParticleType
ParticleType
Definition:
G4INCLParticleType.hh:51
G4INCL::Composite
@ Composite
Definition:
G4INCLParticleType.hh:61
G4INCL::UnknownParticle
@ UnknownParticle
Definition:
G4INCLParticleType.hh:62
geant4-v9.6.0
source
processes
hadronic
models
inclxx
incl_physics
include
G4INCLNuclearDensity.hh
Generated by
1.9.6