![]() |
ATLAS Offline Software
|
This singleton is used to pass current particle information between different namespaces, ie functions. More...
#include <ParticleClipboard.h>
Public Member Functions | |
| void | setParticle (const ISF::ISFParticle &p) |
| save a particle on the clipboard | |
| const ISF::ISFParticle * | getParticle () const |
| get the particle from the clipboard | |
Static Public Member Functions | |
| static ParticleClipboard & | getInstance () |
| get the singleton instance | |
Private Member Functions | |
| ParticleClipboard () | |
| private constructor | |
| ParticleClipboard (ParticleClipboard const &) | |
| empty copy constructor | |
| void | operator= (ParticleClipboard const &) |
| empty assignemtn operator | |
Private Attributes | |
| const ISFParticle * | m_particle |
| the actual particle in the clipboard | |
This singleton is used to pass current particle information between different namespaces, ie functions.
Once going to multi-threading this will cause problems quite clearly since multiple threads will need individual clipboards. Therefore the use of this singleton needs to be replaced by properly propagating current particle information from one function to the next.
Definition at line 33 of file ParticleClipboard.h.
|
private |
private constructor
constructor
Definition at line 13 of file ParticleClipboard.cxx.
|
private |
empty copy constructor
|
inlinestatic |
get the singleton instance
inline getInstance() method to retrieve the singleton
Definition at line 61 of file ParticleClipboard.h.
|
inline |
get the particle from the clipboard
inline getParticle() method to get a particle from the clipboard
Definition at line 72 of file ParticleClipboard.h.
|
private |
empty assignemtn operator
|
inline |
save a particle on the clipboard
inline setParticle() method to keep a particle on the clipboard
Definition at line 67 of file ParticleClipboard.h.
|
private |
the actual particle in the clipboard
Definition at line 53 of file ParticleClipboard.h.