Geant4  10.00.p02
G4INCLParticleSampler.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 #define INCLXX_IN_GEANT4_MODE 1
34 
35 #include "globals.hh"
36 
44 #ifndef G4INCLPARTICLESAMPLER_HH_
45 #define G4INCLPARTICLESAMPLER_HH_
46 
47 #include "G4INCLNuclearDensity.hh"
49 
50 namespace G4INCL {
51 
53 
54  public:
60  ParticleSampler(const G4int A, const G4int Z);
61 
64 
66  NuclearDensity const *getDensity() const { return theDensity; }
67 
70 
73 // assert(t==Proton || t==Neutron);
74  return rpCorrelationCoefficient[t];
75  }
76 
78  void setDensity(NuclearDensity const * const d);
79 
82 
84  void setRPCorrelationCoefficient(const ParticleType t, const G4double corrCoeff) {
85 // assert(t==Proton || t==Neutron);
86  rpCorrelationCoefficient[t] = corrCoeff;
87  }
88 
90 
91  private:
92 
94 
96 
102 
108 
111 
114 
117 
119  const G4int theA;
120 
122  const G4int theZ;
123 
126 
129 
132 
135 
138  };
139 
140 }
141 
142 #endif // G4INCLPARTICLESAMPLER_HH_
ParticleList sampleParticles(ThreeVector const &position)
NuclearDensity const * getDensity() const
Getter for theDensity.
Particle * sampleOneParticleWithFuzzyRPCorrelation(const ParticleType t) const
Sample one particle with a fuzzy rp-correlation.
Particle * sampleOneParticleWithoutRPCorrelation(const ParticleType t) const
Sample one particle not taking into account the rp-correlation.
G4double rpCorrelationCoefficient[UnknownParticle]
Correlation coefficients for the r-p correlation.
Abstract interface to the nuclear potential.
NuclearPotential::INuclearPotential const * getPotential() const
Getter for thePotential.
int G4int
Definition: G4Types.hh:78
G4double getRPCorrelationCoefficient(const ParticleType t) const
Getter for rpCorrelationCoefficient.
Particle * sampleOneParticleWithRPCorrelation(const ParticleType t) const
Sample one particle taking into account the rp-correlation.
void setDensity(NuclearDensity const *const d)
Setter for theDensity.
const G4int theZ
Charge number.
void setRPCorrelationCoefficient(const ParticleType t, const G4double corrCoeff)
Setter for rpCorrelationCoefficient.
ParticleSamplerMethod sampleOneProton
Sample a list of particles.
InverseInterpolationTable const * thePCDFTable[UnknownParticle]
Array of pointers to the p-space CDF table.
ParticleSampler(const G4int A, const G4int Z)
Constructor.
const G4int theA
Mass number.
static const G4double A[nN]
Class for interpolating the inverse of a 1-dimensional function.
NuclearPotential::INuclearPotential const * thePotential
Pointer to the Cluster's NuclearPotential.
Particle *(ParticleSampler::* ParticleSamplerMethod)(const ParticleType t) const
ParticleSamplerMethod sampleOneNeutron
Sample a list of particles.
int position
Definition: filter.cc:7
void setPotential(NuclearPotential::INuclearPotential const *const p)
Setter for thePotential.
InverseInterpolationTable const * theRCDFTable[UnknownParticle]
Array of pointers to the r-space CDF table.
double G4double
Definition: G4Types.hh:76
NuclearDensity const * theDensity
Pointer to the Cluster's NuclearDensity.