DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Wrapper to store user information in a G4Track. More...
#include <Geant4ParticleInformation.h>
Public Member Functions | |
Geant4ParticleInformation ()=default | |
Default Constructor. More... | |
template<typename EXTENSION_TYPE > | |
Geant4ParticleInformation (EXTENSION_TYPE *data) | |
Initializing Constructor. More... | |
template<typename EXTENSION_TYPE > | |
Geant4ParticleInformation (std::unique_ptr< EXTENSION_TYPE > &&data) | |
Initializing Constructor. More... | |
Geant4ParticleInformation (Geant4ParticleInformation &©)=default | |
Move constructor. More... | |
Geant4ParticleInformation (const Geant4ParticleInformation ©)=delete | |
Disable copy constructor. More... | |
Geant4ParticleInformation & | operator= (Geant4ParticleInformation &©)=default |
Move assignemtn operator. More... | |
Geant4ParticleInformation & | operator= (const Geant4ParticleInformation ©)=delete |
Disable copy assignment. More... | |
virtual | ~Geant4ParticleInformation ()=default |
Default destructor. More... | |
void | set (ParticleExtension *data) |
Attach information. More... | |
template<typename EXTENSION_TYPE > | |
void | set (std::unique_ptr< EXTENSION_TYPE > &&data) |
Attach information. More... | |
template<typename EXTENSION_TYPE > | |
EXTENSION_TYPE * | get () |
ParticleExtension * | get () |
ParticleExtension * | release () |
Private Attributes | |
std::unique_ptr< ParticleExtension > | extension |
Keep track of the user data. More... | |
Wrapper to store user information in a G4Track.
Wrapper to store user information in a G4Track. The data of type ParticleExtension is moved from the G4Track to the Geant4Particle in the Geant4ParticleHandler if present. This automatically make the G4Track instance persistent as a Geant4Particle. Hence: Be careful to not assign the entity by default!
The data in the subclass of ParticleExtension defined by the user requires a dictionary to be stored to ROOT.
Definition at line 48 of file Geant4ParticleInformation.h.
|
default |
Default Constructor.
|
inline |
Initializing Constructor.
Definition at line 100 of file Geant4ParticleInformation.h.
|
inline |
Initializing Constructor.
Definition at line 93 of file Geant4ParticleInformation.h.
|
default |
Move constructor.
|
delete |
Disable copy constructor.
|
virtualdefault |
Default destructor.
|
inline |
Definition at line 80 of file Geant4ParticleInformation.h.
|
inline |
Definition at line 83 of file Geant4ParticleInformation.h.
|
delete |
Disable copy assignment.
|
default |
Move assignemtn operator.
|
inline |
Definition at line 86 of file Geant4ParticleInformation.h.
|
inline |
Attach information.
Definition at line 73 of file Geant4ParticleInformation.h.
|
inline |
Attach information.
Definition at line 77 of file Geant4ParticleInformation.h.
|
private |
Keep track of the user data.
Definition at line 50 of file Geant4ParticleInformation.h.