ATLAS Offline Software
ParticleClipboard.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ParticleClipboard.h, (c) ATLAS Detector software
8 
9 #ifndef ISF_EVENT_PARTICLECLIPBOARD_H
10 #define ISF_EVENT_PARTICLECLIPBOARD_H
11 
13 
14 namespace ISF {
15 
16  // forward declarations
17  class ISFParticle;
18 
33  class ATLAS_NOT_THREAD_SAFE ParticleClipboard { // mostly obsolete: ATLASSIM-128
34 
35  public:
37  inline static ParticleClipboard& getInstance();
38 
40  inline void setParticle(const ISF::ISFParticle &p);
42  inline const ISF::ISFParticle *getParticle() const;
43 
44  private :
51 
54  };
55 
56  //
57  // inlined methods
58  //
59 
62  static ParticleClipboard staticClipboard;
63  return staticClipboard;
64  }
65 
68  m_particle = &p;
69  }
70 
73  return m_particle;
74  }
75 
76 } // end of namespace
77 
78 #endif // ISF_EVENT_PARTICLECLIPBOARD_H
79 
ISF::ParticleClipboard
Definition: ParticleClipboard.h:33
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
ISF::ParticleClipboard::getInstance
static ParticleClipboard & getInstance()
get the singleton instance
Definition: ParticleClipboard.h:61
ISF::ISFParticle
Definition: ISFParticle.h:42
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ISF::ParticleClipboard::ParticleClipboard
ParticleClipboard(ParticleClipboard const &)
empty copy constructor
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
ISF::ParticleClipboard::m_particle
const ISFParticle * m_particle
the actual particle in the clipboard
Definition: ParticleClipboard.h:53
ISF::ParticleClipboard::getParticle
const ISF::ISFParticle * getParticle() const
get the particle from the clipboard
Definition: ParticleClipboard.h:72
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
ISF::ParticleClipboard::setParticle
void setParticle(const ISF::ISFParticle &p)
save a particle on the clipboard
Definition: ParticleClipboard.h:67
checker_macros.h
Define macros for attributes used to control the static checker.
ISF::ParticleClipboard::operator=
void operator=(ParticleClipboard const &)
empty assignemtn operator