DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Data structure to map primaries to particles. More...
#include <Geant4Primary.h>
Public Types | |
typedef std::map< const G4PrimaryParticle *, Geant4Particle * > | Primaries |
Public Member Functions | |
Geant4PrimaryMap ()=default | |
not persistent More... | |
virtual | ~Geant4PrimaryMap () |
Default destructor. More... | |
void | insert (G4PrimaryParticle *g4_particle, Geant4Particle *particle) |
Add a new object pair (G4 primary particle, DDG4 particle) into the maps. More... | |
Geant4Particle * | get (const G4PrimaryParticle *particle) |
Access DDG4 particle by G4 primary particle. More... | |
const Geant4Particle * | get (const G4PrimaryParticle *particle) const |
Access DDG4 particle by G4 primary particle (const) More... | |
Primaries & | primaries () |
Access primary map directly. More... | |
const Primaries & | primaries () const |
Access primary map directly (const) More... | |
Private Attributes | |
Primaries | m_primaryMap |
Mapping of primary particles of this event. More... | |
Data structure to map primaries to particles.
This data structure is added to the Geant4Event data extensions by the Geant4GenerationInit action.
Definition at line 64 of file Geant4Primary.h.
typedef std::map<const G4PrimaryParticle*,Geant4Particle*> dd4hep::sim::Geant4PrimaryMap::Primaries |
Definition at line 66 of file Geant4Primary.h.
|
default |
not persistent
Default constructor
|
virtual |
Default destructor.
Definition at line 34 of file Geant4Primary.cpp.
Geant4Particle * Geant4PrimaryMap::get | ( | const G4PrimaryParticle * | particle | ) |
Access DDG4 particle by G4 primary particle.
Definition at line 44 of file Geant4Primary.cpp.
const Geant4Particle * Geant4PrimaryMap::get | ( | const G4PrimaryParticle * | particle | ) | const |
Access DDG4 particle by G4 primary particle (const)
Definition at line 50 of file Geant4Primary.cpp.
void Geant4PrimaryMap::insert | ( | G4PrimaryParticle * | g4_particle, |
Geant4Particle * | particle | ||
) |
Add a new object pair (G4 primary particle, DDG4 particle) into the maps.
Definition at line 39 of file Geant4Primary.cpp.
|
inline |
Access primary map directly.
Definition at line 83 of file Geant4Primary.h.
|
inline |
Access primary map directly (const)
Definition at line 85 of file Geant4Primary.h.
|
private |
Mapping of primary particles of this event.
Definition at line 69 of file Geant4Primary.h.