ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Static Public Member Functions | |
static G4bool | avatarComparisonPredicate (IAvatar *lhs, IAvatar *rhs) |
Comparison predicate for avatars. | |
Private Types | |
typedef std::multimap < Particle *, IAvatar * > ::value_type | PAPair |
typedef std::multimap < Particle *, IAvatar * > ::iterator | PAIter |
typedef std::pair< PAIter, PAIter > | PAIterPair |
typedef std::set< IAvatar * > ::const_iterator | ASIter |
Private Member Functions | |
Store (const Store &rhs) | |
Dummy copy constructor to shut up Coverity warnings. | |
Store & | operator= (Store const &rhs) |
Dummy assignment operator to shut up Coverity warnings. | |
void | connectAvatarToParticle (IAvatar *const a, Particle *const p) |
Connect an avatar to a particle. | |
void | disconnectAvatarFromParticle (IAvatar *const a, Particle *const p) |
Disconnect an avatar from a particle. | |
void | removeAvatar (IAvatar *const a) |
Remove an avatar from the list of avatars. | |
Private Attributes | |
std::multimap< Particle *, IAvatar * > | particleAvatarConnections |
std::set< IAvatar * > | avatarsToBeRemoved |
Set of avatars to be removed. | |
IAvatarList | avatarList |
ParticleList | incoming |
ParticleList | inside |
ParticleList | outgoing |
ParticleList | geomSpectators |
G4double | currentTime |
Book | theBook |
G4int | loadedA |
G4int | loadedZ |
G4double | loadedStoppingTime |
Config const * | theConfig |
The purpose of the Store object is to act as a "particle manager" that keeps track ofall the particles in our simulation. It also tracks the avatars and their connections to particles.
Definition at line 73 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 73 of file G4INCLStore.hh
|
private |
Definition at line 406 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 406 of file G4INCLStore.hh
|
private |
Definition at line 401 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 401 of file G4INCLStore.hh
|
private |
Definition at line 402 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 402 of file G4INCLStore.hh
|
private |
Definition at line 400 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 400 of file G4INCLStore.hh
G4INCL::Store::Store | ( | Config const *const | config | ) |
Store constructor
Definition at line 45 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 45 of file G4INCLStore.cc
G4INCL::Store::~Store | ( | ) |
Store destructor
Definition at line 53 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 53 of file G4INCLStore.cc
References clear(), G4INCL::Book::reset(), and theBook.
|
private |
Dummy copy constructor to shut up Coverity warnings.
Add one particle to the store.
Particle objects don't know anything about avatars so this method will only do two things:
Definition at line 58 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 58 of file G4INCLStore.cc
References inside.
Referenced by G4INCL::Nucleus::applyFinalState(), G4INCL::Nucleus::initializeParticles(), loadParticles(), particleHasEntered(), and G4INCL::StandardPropagationModel::registerAvatar().
void G4INCL::Store::add | ( | ParticleList const & | pL | ) |
Add a list of particles to the Store.
This acts as if add(Particle *) was called on each element of the list.
Definition at line 62 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 62 of file G4INCLStore.cc
References inside.
Add one avatar to the store
Avatars know about the particles they are associated with. Adding an avatar consists of the following steps:
Definition at line 83 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 83 of file G4INCLStore.cc
References avatarList, connectAvatarToParticle(), e, and G4INCL::IAvatar::getParticles().
Add a particle to the incoming list.
p | particle to add |
Definition at line 95 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 95 of file G4INCLStore.cc
References incoming.
Referenced by addParticleEntryAvatar().
Add one ParticleEntry avatar.
Definition at line 66 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 66 of file G4INCLStore.cc
References addIncomingParticle(), avatarList, connectAvatarToParticle(), e, and G4INCL::IAvatar::getParticles().
Referenced by addParticleEntryAvatars(), G4INCL::INCL::makeCompoundNucleus(), and G4INCL::StandardPropagationModel::shootParticle().
void G4INCL::Store::addParticleEntryAvatars | ( | IAvatarList const & | al | ) |
Add one ParticleEntry avatar.
Definition at line 78 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 78 of file G4INCLStore.cc
References a, addParticleEntryAvatar(), and e.
Referenced by G4INCL::StandardPropagationModel::shootComposite().
add the particle to the outgoing particle list.
p | pointer to the particle to be added |
Definition at line 190 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 190 of file G4INCLStore.hh
Referenced by G4INCL::Nucleus::applyFinalState(), G4INCL::Nucleus::computeOneNucleonRecoilKinematics(), G4INCL::Nucleus::decayMe(), G4INCL::Nucleus::decayOutgoingClusters(), G4INCL::Nucleus::decayOutgoingDeltas(), G4INCL::Nucleus::decayOutgoingPionResonances(), G4INCL::Nucleus::decayOutgoingSigmaZero(), G4INCL::Nucleus::emitInsideKaon(), G4INCL::Nucleus::emitInsideLambda(), G4INCL::Nucleus::emitInsidePions(), G4INCL::Nucleus::emitInsideStrangeParticles(), and G4INCL::INCL::makeProjectileRemnant().
|
inline |
Add a list of particles to the outgoing particle list.
pl | list of particles to be added |
Definition at line 196 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 196 of file G4INCLStore.hh
References e.
|
inlinestatic |
Comparison predicate for avatars.
avatarComparisonPredicate is used by the std::sort or std::min_element functions to compare the avatar objects according to their time.
lhs | pointer to the first avatar |
rhs | pointer to the second avatar |
Definition at line 352 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 352 of file G4INCLStore.hh
References G4INCL::IAvatar::getTime().
Referenced by findSmallestTime().
Clear all avatars and particles from the store.
Warning! This actually deletes the objects as well!
Definition at line 203 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 203 of file G4INCLStore.cc
References clearAvatars(), clearInside(), clearOutgoing(), INCL_WARN, and incoming.
Referenced by loadParticles(), and ~Store().
void G4INCL::Store::clearAvatars | ( | ) |
Clear avatars only.
Definition at line 193 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 193 of file G4INCLStore.cc
References avatarList, avatarsToBeRemoved, e, and particleAvatarConnections.
Referenced by clear(), and G4INCL::StandardPropagationModel::propagate().
|
inline |
Clear the incoming list.
Definition at line 145 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 145 of file G4INCLStore.hh
Referenced by G4INCL::INCL::makeCompoundNucleus(), and G4INCL::INCL::postCascade().
void G4INCL::Store::clearInside | ( | ) |
Clear all inside particles from the store.
Warning! This actually deletes the objects as well!
Definition at line 216 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 216 of file G4INCLStore.cc
Referenced by clear().
void G4INCL::Store::clearOutgoing | ( | ) |
Clear all outgoing particles from the store.
Warning! This actually deletes the objects as well!
Definition at line 223 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 223 of file G4INCLStore.cc
References c, G4INCL::Cluster::deleteParticles(), e, and outgoing.
Referenced by clear(), and G4INCL::INCL::makeCompoundNucleus().
Connect an avatar to a particle.
Adds the avatar to the list of avatars where the particle appears. This is typically called when the avatar is created.
p | the particle |
a | the avatar |
Definition at line 99 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 99 of file G4INCLStore.cc
References particleAvatarConnections.
Referenced by add(), and addParticleEntryAvatar().
G4bool G4INCL::Store::containsCollisions | ( | ) | const |
Definition at line 351 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 351 of file G4INCLStore.cc
References avatarList, G4INCL::CollisionAvatarType, and e.
|
inline |
Definition at line 261 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 261 of file G4INCLStore.hh
|
inline |
Clear the incoming list and delete the particles.
Definition at line 150 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 150 of file G4INCLStore.hh
References e.
Referenced by G4INCL::INCL::postCascade().
Disconnect an avatar from a particle.
Removes the avatar from the list of avatars where the particle appears. This is typically called when the avatar has been invalidated or realised.
p | the particle |
a | the avatar |
Definition at line 103 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 103 of file G4INCLStore.cc
References INCL_WARN, and particleAvatarConnections.
Referenced by removeAvatar().
|
inline |
Returns a list of dynamical spectators.
Looks in the outgoing list for particles without collisions and decays, removes them from outgoing and returns them in a list.
Definition at line 232 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 232 of file G4INCLStore.hh
References e, and G4INCL::UnorderedVector< T >::remove().
Referenced by G4INCL::INCL::makeProjectileRemnant().
IAvatar * G4INCL::Store::findSmallestTime | ( | ) |
Find the avatar that has the smallest time.
Definition at line 142 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 142 of file G4INCLStore.cc
References avatarComparisonPredicate(), avatarList, and removeAvatar().
Referenced by G4INCL::StandardPropagationModel::propagate().
|
inline |
Return the list of avatars
Definition at line 126 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 126 of file G4INCLStore.hh
|
inline |
Return the pointer to the Book object which keeps track of various counters.
Definition at line 259 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 259 of file G4INCLStore.hh
Referenced by G4INCL::Nucleus::applyFinalState(), G4INCL::CascadeAction::beforeAvatarDefaultAction(), G4INCL::Nucleus::computeOneNucleonRecoilKinematics(), G4INCL::INCL::continueCascade(), G4INCL::Nucleus::emitInsideKaon(), G4INCL::Nucleus::emitInsideLambda(), G4INCL::Nucleus::emitInsidePions(), G4INCL::Nucleus::emitInsideStrangeParticles(), G4INCL::InteractionAvatar::enforceEnergyConservation(), G4INCL::Nucleus::fillEventInfo(), G4INCL::StandardPropagationModel::generateBinaryCollisionAvatar(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::SurfaceAvatar::getChannel(), G4INCL::INCL::initializeTarget(), G4INCL::Nucleus::insertParticle(), G4INCL::PauliStrictStandard::isBlocked(), G4INCL::Nucleus::isEventTransparent(), G4INCL::DecayAvatar::postInteraction(), G4INCL::BinaryCollisionAvatar::postInteraction(), G4INCL::SurfaceAvatar::postInteraction(), G4INCL::InteractionAvatar::postInteraction(), G4INCL::StandardPropagationModel::propagate(), and G4INCL::InteractionAvatar::shouldUseLocalEnergy().
|
inline |
Get the config object
Definition at line 273 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 273 of file G4INCLStore.hh
Referenced by G4INCL::SurfaceAvatar::getChannel(), G4INCL::ClusteringModelIntercomparison::getCluster(), G4INCL::SurfaceAvatar::getTransmissionProbability(), G4INCL::ParticleEntryChannel::particleEnters(), G4INCL::InteractionAvatar::postInteraction(), and G4INCL::InteractionAvatar::shouldUseLocalEnergy().
|
inline |
Return the list of incoming particles (i.e. particles that have yet to enter the cascade).
Definition at line 217 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 217 of file G4INCLStore.hh
Referenced by G4INCL::INCL::continueCascade().
|
inline |
Get the value of the nucleus mass number that we read from file with loadParticles.
Definition at line 311 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 311 of file G4INCLStore.hh
|
inline |
Get the value of the stopping time that we read from file with loadParticles.
Definition at line 323 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 323 of file G4INCLStore.hh
|
inline |
Get the value of the nucleus charge number that we read from file with loadParticles.
Definition at line 317 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 317 of file G4INCLStore.hh
|
inline |
Return the list of outgoing particles (i.e. particles that have left the cascade).
Definition at line 223 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 223 of file G4INCLStore.hh
Referenced by G4INCL::Nucleus::computeOneNucleonRecoilKinematics(), G4INCL::Nucleus::computeRecoilKinematics(), G4INCL::Nucleus::computeSeparationEnergyBalance(), G4INCL::Nucleus::decayOutgoingClusters(), G4INCL::Nucleus::decayOutgoingDeltas(), G4INCL::Nucleus::decayOutgoingNeutralKaon(), G4INCL::Nucleus::decayOutgoingPionResonances(), G4INCL::Nucleus::decayOutgoingSigmaZero(), G4INCL::Nucleus::fillEventInfo(), G4INCL::Nucleus::getConservationBalance(), G4INCL::INCL::postCascade(), and G4INCL::Nucleus::print().
|
inline |
Return the list of "active" particles (i.e. particles that can participate in collisions).
Definition at line 253 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 253 of file G4INCLStore.hh
Referenced by G4INCL::AvatarDumpAction::afterAvatarUserAction(), G4INCL::Nucleus::computeCenterOfMass(), G4INCL::Nucleus::computeOneNucleonRecoilKinematics(), G4INCL::Nucleus::computeTotalEnergy(), G4INCL::Nucleus::containsAntiKaon(), G4INCL::Nucleus::containsDeltas(), G4INCL::Nucleus::containsEtas(), G4INCL::Nucleus::containsKaon(), G4INCL::Nucleus::containsLambda(), G4INCL::Nucleus::containsOmegas(), G4INCL::Nucleus::containsSigma(), G4INCL::Nucleus::decayInsideDeltas(), G4INCL::Nucleus::decayInsideStrangeParticles(), G4INCL::Nucleus::emitInsideKaon(), G4INCL::Nucleus::emitInsideLambda(), G4INCL::Nucleus::emitInsidePions(), G4INCL::Nucleus::emitInsideStrangeParticles(), G4INCL::StandardPropagationModel::generateAllAvatars(), G4INCL::PauliStandard::getBlockingProbability(), G4INCL::ClusteringModelIntercomparison::getCluster(), G4INCL::PauliGlobal::isBlocked(), G4INCL::CDPP::isBlocked(), G4INCL::Nucleus::print(), and G4INCL::StandardPropagationModel::updateAvatars().
void G4INCL::Store::loadParticles | ( | std::string const & | filename | ) |
Load particle configuration from ASCII file (see avatarPredictionTest).
Definition at line 239 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 239 of file G4INCLStore.cc
References A(), add(), clear(), E, in, INCL_FATAL, G4INCL::Book::incrementCascading(), loadedA, loadedStoppingTime, loadedZ, G4INCL::Particle::makeParticipant(), G4INCL::Neutron, G4INCL::Proton, G4INCL::Particle::setPotentialEnergy(), t, theBook, G4INCL::UnknownParticle, v, x, y, Z, and z.
Dummy assignment operator to shut up Coverity warnings.
Remove the particle from the system. This also removes all avatars related to this particle.
Definition at line 181 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 181 of file G4INCLStore.cc
References inside, particleHasBeenUpdated(), and G4INCL::UnorderedVector< T >::remove().
Referenced by G4INCL::Nucleus::applyFinalState().
Mark the particle as ejected. This removes it from the list of inside particles and removes all avatars related to this particle.
Definition at line 175 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 175 of file G4INCLStore.cc
References inside, particleHasBeenUpdated(), and G4INCL::UnorderedVector< T >::remove().
Referenced by G4INCL::Nucleus::applyFinalState(), G4INCL::Nucleus::computeOneNucleonRecoilKinematics(), G4INCL::Nucleus::emitInsideKaon(), G4INCL::Nucleus::emitInsideLambda(), G4INCL::Nucleus::emitInsidePions(), and G4INCL::Nucleus::emitInsideStrangeParticles().
Notify the Store about a particle update.
Notify the Store that a particle has been updated. This schedules the removal of obsolete avatars and their disconnection from the particle.
Definition at line 127 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 127 of file G4INCLStore.cc
References avatarsToBeRemoved, and particleAvatarConnections.
Referenced by G4INCL::Nucleus::applyFinalState(), particleHasBeenDestroyed(), and particleHasBeenEjected().
Move a particle from incoming to inside.
particle | pointer to a particle |
Definition at line 188 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 188 of file G4INCLStore.cc
References add(), and removeFromIncoming().
Referenced by G4INCL::Nucleus::insertParticle().
std::string G4INCL::Store::printAvatars | ( | ) |
Print the list of avatars
Definition at line 343 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 343 of file G4INCLStore.cc
References avatarList, and e.
std::string G4INCL::Store::printParticleConfiguration | ( | ) |
Print the nucleon configuration of the nucleus.
Definition at line 286 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 286 of file G4INCLStore.cc
References A(), E, e, inside, G4INCL::Neutron, G4INCL::Proton, x, y, Z, and z.
Referenced by writeParticles().
Remove an avatar from the list of avatars.
Removes an avatar from the list of all avatars. The avatar is not deleted.
a | the avatar to remove |
Definition at line 115 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 115 of file G4INCLStore.cc
References avatarList, disconnectAvatarFromParticle(), e, G4INCL::IAvatar::getParticles(), and G4INCL::UnorderedVector< T >::remove().
Referenced by findSmallestTime(), and removeScheduledAvatars().
Add a particle to the incoming list.
p | particle to add |
Definition at line 142 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 142 of file G4INCLStore.hh
Referenced by particleHasEntered().
void G4INCL::Store::removeScheduledAvatars | ( | ) |
Remove avatars that have been scheduled.
Definition at line 134 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 134 of file G4INCLStore.cc
References a, avatarsToBeRemoved, e, and removeAvatar().
Referenced by G4INCL::Nucleus::applyFinalState().
Make one time step: propagate particles and subtract the length of the step from the avatar times.
Definition at line 168 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 168 of file G4INCLStore.cc
References inside.
Referenced by G4INCL::StandardPropagationModel::propagate().
void G4INCL::Store::writeParticles | ( | std::string const & | filename | ) |
Print the nucleon configuration of the nucleus.
Definition at line 337 of file G4INCLStore.cc.
View newest version in sPHENIX GitHub at line 337 of file G4INCLStore.cc
References printParticleConfiguration().
|
private |
List of all avatars
Definition at line 412 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 412 of file G4INCLStore.hh
Referenced by add(), addParticleEntryAvatar(), clearAvatars(), containsCollisions(), findSmallestTime(), printAvatars(), and removeAvatar().
|
private |
Set of avatars to be removed.
Definition at line 405 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 405 of file G4INCLStore.hh
Referenced by clearAvatars(), particleHasBeenUpdated(), and removeScheduledAvatars().
|
private |
The current time in the simulation
Definition at line 437 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 437 of file G4INCLStore.hh
|
private |
List of geometrical spectators
Definition at line 432 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 432 of file G4INCLStore.hh
|
private |
List of incoming particles
Definition at line 417 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 417 of file G4INCLStore.hh
Referenced by addIncomingParticle(), and clear().
|
private |
List of particles that are inside the nucleus
Definition at line 422 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 422 of file G4INCLStore.hh
Referenced by add(), clearInside(), particleHasBeenDestroyed(), particleHasBeenEjected(), printParticleConfiguration(), and timeStep().
|
private |
The target nucleus mass number that was loaded from a particle file
Definition at line 447 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 447 of file G4INCLStore.hh
Referenced by loadParticles().
|
private |
The stopping time that was loaded from a particle file
Definition at line 457 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 457 of file G4INCLStore.hh
Referenced by loadParticles().
|
private |
The target nucleus charge number that was loaded from a particle file
Definition at line 452 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 452 of file G4INCLStore.hh
Referenced by loadParticles().
|
private |
List of outgoing particles
Definition at line 427 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 427 of file G4INCLStore.hh
Referenced by clearOutgoing().
Map particle -> [avatar]
Definition at line 399 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 399 of file G4INCLStore.hh
Referenced by clearAvatars(), connectAvatarToParticle(), disconnectAvatarFromParticle(), and particleHasBeenUpdated().
|
private |
The Book object keeps track of global counters
Definition at line 442 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 442 of file G4INCLStore.hh
Referenced by loadParticles(), and ~Store().
|
private |
Pointer to the Config object
Definition at line 462 of file G4INCLStore.hh.
View newest version in sPHENIX GitHub at line 462 of file G4INCLStore.hh