33 #define INCLXX_IN_GEANT4_MODE 1
37 #ifndef G4INCLParticleStore_hh
38 #define G4INCLParticleStore_hh 1
51 #ifdef INCLXX_IN_GEANT4_MODE
52 #define INCL_AVATAR_SEARCH_MinElement 1
53 #endif // INCLXX_IN_GEANT4_MODE
134 for(
ParticleIter iter = incoming.begin(); iter != incoming.end(); ++iter) {
213 std::list<std::list<Particle*>::iterator> toBeErased;
214 for(std::list<Particle*>::iterator p=outgoing.begin(); p!=outgoing.end(); ++
p) {
215 if((*p)->isProjectileSpectator()) {
217 spectators.push_back(*p);
218 toBeErased.push_back(p);
223 for(std::list<std::list<Particle*>::iterator>::iterator i=toBeErased.begin();
224 i!=toBeErased.end(); ++i) {
245 for(
ParticleIter i=inside.begin(); i!=inside.end(); ++i) {
246 if(!(*i)->isTargetSpectator())
338 #if defined(INCL_AVATAR_SEARCH_FullSort) || defined(INCL_AVATAR_SEARCH_MinElement)
351 #elif defined(INCL_AVATAR_SEARCH_INCLSort)
365 std::list<IAvatarIter>::iterator binaryIterSearch(
IAvatar const *
const avatar);
378 void removeAvatarsFromParticle(
long ID);
383 G4bool avatarInConnectionMap(
long);
389 void connectParticleAndAvatar(
long particleID,
long avatarID);
394 void removeAvatarFromParticle(
long particleID,
long avatarID);
395 void removeAvatarByID(
long ID);
401 std::map<long, Particle*> particles;
406 std::map<long, IAvatar*> avatars;
411 std::map<long, std::vector<long>* > particleAvatarConnections;
468 #ifdef INCL_AVATAR_SEARCH_INCLSort
474 std::list<IAvatarIter> avatarIterList;