ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Public Member Functions | |
ParticleSampler (const G4int A, const G4int Z) | |
Constructor. | |
~ParticleSampler () | |
Destructor. | |
NuclearDensity const * | getDensity () const |
Getter for theDensity. | |
NuclearPotential::INuclearPotential const * | getPotential () const |
Getter for thePotential. | |
G4double | getRPCorrelationCoefficient (const ParticleType t) const |
Getter for rpCorrelationCoefficient. | |
void | setDensity (NuclearDensity const *const d) |
Setter for theDensity. | |
void | setPotential (NuclearPotential::INuclearPotential const *const p) |
Setter for thePotential. | |
void | setRPCorrelationCoefficient (const ParticleType t, const G4double corrCoeff) |
Setter for rpCorrelationCoefficient. | |
ParticleList | sampleParticles (ThreeVector const &position) |
void | sampleParticlesIntoList (ThreeVector const &position, ParticleList &theList) |
Private Types | |
typedef Particle *(ParticleSampler::* | ParticleSamplerMethod )(const ParticleType t) const |
Private Member Functions | |
void | updateSampleOneParticleMethods () |
Particle * | sampleOneParticleWithRPCorrelation (const ParticleType t) const |
Sample one particle taking into account the rp-correlation. | |
Particle * | sampleOneParticleWithoutRPCorrelation (const ParticleType t) const |
Sample one particle not taking into account the rp-correlation. | |
Particle * | sampleOneParticleWithFuzzyRPCorrelation (const ParticleType t) const |
Sample one particle with a fuzzy rp-correlation. | |
Private Attributes | |
ParticleSamplerMethod | sampleOneProton |
Sample a list of particles. | |
ParticleSamplerMethod | sampleOneNeutron |
Sample a list of particles. | |
const G4int | theA |
Mass number. | |
const G4int | theZ |
Charge number. | |
InterpolationTable const * | theRCDFTable [UnknownParticle] |
Array of pointers to the r-space CDF table. | |
InterpolationTable const * | thePCDFTable [UnknownParticle] |
Array of pointers to the p-space CDF table. | |
NuclearDensity const * | theDensity |
Pointer to the Cluster's NuclearDensity. | |
NuclearPotential::INuclearPotential const * | thePotential |
Pointer to the Cluster's NuclearPotential. | |
G4double | rpCorrelationCoefficient [UnknownParticle] |
Correlation coefficients for the r-p correlation. | |
Definition at line 54 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 54 of file G4INCLParticleSampler.hh
|
private |
Definition at line 98 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 98 of file G4INCLParticleSampler.hh
Constructor.
A | the mass number |
Z | the charge number |
Definition at line 51 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 51 of file G4INCLParticleSampler.cc
References G4INCL::ParticleTable::getRPCorrelationCoefficient(), G4INCL::Neutron, G4INCL::Proton, rpCorrelationCoefficient, thePCDFTable, theRCDFTable, and G4INCL::UnknownParticle.
G4INCL::ParticleSampler::~ParticleSampler | ( | ) |
Destructor.
Definition at line 66 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 66 of file G4INCLParticleSampler.cc
|
inline |
Getter for theDensity.
Definition at line 68 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 68 of file G4INCLParticleSampler.hh
References theDensity.
|
inline |
Getter for thePotential.
Definition at line 71 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 71 of file G4INCLParticleSampler.hh
References thePotential.
|
inline |
Getter for rpCorrelationCoefficient.
Definition at line 74 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 74 of file G4INCLParticleSampler.hh
References rpCorrelationCoefficient, and t.
|
private |
Sample one particle with a fuzzy rp-correlation.
Definition at line 160 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 160 of file G4INCLParticleSampler.cc
References G4INCL::Random::correlatedUniform(), G4INCL::NuclearPotential::INuclearPotential::getFermiMomentum(), G4INCL::NuclearDensity::getMaxRFromP(), G4INCL::Random::normVector(), G4INCL::Math::pow13(), rpCorrelationCoefficient, G4INCL::Particle::setUncorrelatedMomentum(), G4INCL::Random::sphereVector(), theDensity, thePotential, x, and y.
Referenced by updateSampleOneParticleMethods().
|
private |
Sample one particle not taking into account the rp-correlation.
Definition at line 152 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 152 of file G4INCLParticleSampler.cc
References momentum, G4INCL::Random::normVector(), G4INCL::Random::shoot(), t, thePCDFTable, and theRCDFTable.
Referenced by sampleParticlesIntoList(), and updateSampleOneParticleMethods().
|
private |
Sample one particle taking into account the rp-correlation.
Definition at line 139 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 139 of file G4INCLParticleSampler.cc
References G4INCL::NuclearPotential::INuclearPotential::getFermiMomentum(), G4INCL::NuclearDensity::getMaxRFromP(), G4INCL::ThreeVector::mag(), Dataset::momentumAbs, G4INCL::Particle::setUncorrelatedMomentum(), G4INCL::Random::sphereVector(), theDensity, and thePotential.
Referenced by updateSampleOneParticleMethods().
ParticleList G4INCL::ParticleSampler::sampleParticles | ( | ThreeVector const & | position | ) |
Definition at line 97 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 97 of file G4INCLParticleSampler.cc
References sampleParticlesIntoList().
void G4INCL::ParticleSampler::sampleParticlesIntoList | ( | ThreeVector const & | position, |
ParticleList & | theList | ||
) |
Definition at line 103 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 103 of file G4INCLParticleSampler.cc
References G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), G4INCL::Particle::getMomentum(), G4INCL::Particle::getPosition(), G4INCL::Neutron, G4INCL::Proton, sampleOneNeutron, sampleOneParticleWithoutRPCorrelation(), sampleOneProton, G4INCL::Particle::setPosition(), theA, thePCDFTable, theRCDFTable, and theZ.
Referenced by G4INCL::Cluster::initializeParticles(), and sampleParticles().
void G4INCL::ParticleSampler::setDensity | ( | NuclearDensity const *const | d | ) |
Setter for theDensity.
Definition at line 69 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 69 of file G4INCLParticleSampler.cc
References d, theDensity, and updateSampleOneParticleMethods().
Referenced by G4INCL::Nucleus::Nucleus(), and G4INCL::Nucleus::setDensity().
void G4INCL::ParticleSampler::setPotential | ( | NuclearPotential::INuclearPotential const *const | p | ) |
Setter for thePotential.
Definition at line 74 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 74 of file G4INCLParticleSampler.cc
References thePotential, and updateSampleOneParticleMethods().
Referenced by G4INCL::Nucleus::Nucleus().
|
inline |
Setter for rpCorrelationCoefficient.
Definition at line 86 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 86 of file G4INCLParticleSampler.hh
References rpCorrelationCoefficient, and t.
|
private |
Definition at line 79 of file G4INCLParticleSampler.cc.
View newest version in sPHENIX GitHub at line 79 of file G4INCLParticleSampler.cc
References G4INCL::Neutron, G4INCL::Proton, rpCorrelationCoefficient, sampleOneNeutron, sampleOneParticleWithFuzzyRPCorrelation(), sampleOneParticleWithoutRPCorrelation(), sampleOneParticleWithRPCorrelation(), sampleOneProton, theDensity, and thePotential.
Referenced by setDensity(), and setPotential().
|
private |
Correlation coefficients for the r-p correlation.
Definition at line 140 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 140 of file G4INCLParticleSampler.hh
Referenced by getRPCorrelationCoefficient(), ParticleSampler(), sampleOneParticleWithFuzzyRPCorrelation(), setRPCorrelationCoefficient(), and updateSampleOneParticleMethods().
|
private |
Sample a list of particles.
This method is a pointer to the method that does the real work for neutrons.
Definition at line 110 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 110 of file G4INCLParticleSampler.hh
Referenced by sampleParticlesIntoList(), and updateSampleOneParticleMethods().
|
private |
Sample a list of particles.
This method is a pointer to the method that does the real work for protons.
Definition at line 104 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 104 of file G4INCLParticleSampler.hh
Referenced by sampleParticlesIntoList(), and updateSampleOneParticleMethods().
|
private |
Mass number.
Definition at line 122 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 122 of file G4INCLParticleSampler.hh
Referenced by sampleParticlesIntoList().
|
private |
Pointer to the Cluster's NuclearDensity.
Definition at line 134 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 134 of file G4INCLParticleSampler.hh
Referenced by getDensity(), sampleOneParticleWithFuzzyRPCorrelation(), sampleOneParticleWithRPCorrelation(), setDensity(), and updateSampleOneParticleMethods().
|
private |
Array of pointers to the p-space CDF table.
Definition at line 131 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 131 of file G4INCLParticleSampler.hh
Referenced by ParticleSampler(), sampleOneParticleWithoutRPCorrelation(), and sampleParticlesIntoList().
|
private |
Pointer to the Cluster's NuclearPotential.
Definition at line 137 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 137 of file G4INCLParticleSampler.hh
Referenced by getPotential(), sampleOneParticleWithFuzzyRPCorrelation(), sampleOneParticleWithRPCorrelation(), setPotential(), and updateSampleOneParticleMethods().
|
private |
Array of pointers to the r-space CDF table.
Definition at line 128 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 128 of file G4INCLParticleSampler.hh
Referenced by ParticleSampler(), sampleOneParticleWithoutRPCorrelation(), and sampleParticlesIntoList().
|
private |
Charge number.
Definition at line 125 of file G4INCLParticleSampler.hh.
View newest version in sPHENIX GitHub at line 125 of file G4INCLParticleSampler.hh
Referenced by sampleParticlesIntoList().