34#define INCLXX_IN_GEANT4_MODE 1
38#ifndef G4INCLParticleStore_hh
39#define G4INCLParticleStore_hh 1
52#ifdef INCLXX_IN_GEANT4_MODE
53#define INCL_AVATAR_SEARCH_MinElement 1
56#if !defined(NDEBUG) && !defined(INCLXX_IN_GEANT4_MODE)
63template class std::multimap<G4INCL::Particle*, G4INCL::IAvatar*>;
102 void addParticleEntryAvatar(
IAvatar *a);
135 void addIncomingParticle(
Particle *
const p);
151 for(
ParticleIter iter=incoming.begin(), e=incoming.end(); iter!=e; ++iter) {
163 void particleHasBeenUpdated(
Particle *
const);
166 void removeScheduledAvatars();
184 void particleHasBeenEjected(
Particle *
const);
205 void particleHasBeenDestroyed(
Particle *
const);
211 void particleHasEntered(
Particle *
const particle);
234 for(
ParticleIter p=outgoing.begin(), e=outgoing.end(); p!=e; ++p) {
235 if((*p)->isProjectileSpectator()) {
237 spectators.push_back(*p);
242 for(
ParticleIter i=spectators.begin(); i!=spectators.end(); ++i) {
263 for(
ParticleIter i=inside.begin(), e=inside.end(); i!=e; ++i) {
264 if(!(*i)->isTargetSpectator())
294 void clearOutgoing();
305 void loadParticles(std::string
const &filename);
328 std::string printParticleConfiguration();
333 void writeParticles(std::string
const &filename);
338 std::string printAvatars();
340 G4bool containsCollisions()
const;
342#if defined(INCL_AVATAR_SEARCH_FullSort) || defined(INCL_AVATAR_SEARCH_MinElement)
384 void disconnectAvatarFromParticle(
IAvatar *
const a,
Particle *
const p);
393 void removeAvatar(
IAvatar *
const a);
400 typedef std::multimap<Particle*, IAvatar*>::value_type
PAPair;
401 typedef std::multimap<Particle*, IAvatar*>::iterator
PAIter;
406 typedef std::set<IAvatar*>::const_iterator
ASIter;
ParticleList const & getIncomingParticles() const
void addToOutgoing(ParticleList const &pl)
Add a list of particles to the outgoing particle list.
void deleteIncoming()
Clear the incoming list and delete the particles.
std::multimap< Particle *, IAvatar * >::iterator PAIter
G4double loadedStoppingTime
ParticleList const & getOutgoingParticles() const
std::pair< PAIter, PAIter > PAIterPair
void addToOutgoing(Particle *p)
add the particle to the outgoing particle list.
ParticleList geomSpectators
Store & operator=(Store const &rhs)
Dummy assignment operator to shut up Coverity warnings.
std::multimap< Particle *, IAvatar * >::value_type PAPair
G4double getLoadedStoppingTime()
Store(const Store &rhs)
Dummy copy constructor to shut up Coverity warnings.
std::set< IAvatar * > avatarsToBeRemoved
Set of avatars to be removed.
void clearIncoming()
Clear the incoming list.
std::set< IAvatar * >::const_iterator ASIter
static G4bool avatarComparisonPredicate(IAvatar *lhs, IAvatar *rhs)
Comparison predicate for avatars.
std::multimap< Particle *, IAvatar * > particleAvatarConnections
ParticleList const & getParticles() const
Config const * getConfig()
void removeFromIncoming(Particle *const p)
ParticleList extractDynamicalSpectators()
Returns a list of dynamical spectators.
IAvatarList const & getAvatars() const
const G4double al
Mysterious coefficient that appears in the wavefunctions.
ParticleList::const_iterator ParticleIter