DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Data structure to map particles produced during the generation and the simulation. More...
#include <Geant4Particle.h>
Public Types | |
typedef Geant4Particle | Particle |
typedef std::map< int, Particle * > | ParticleMap |
typedef std::map< int, int > | TrackEquivalents |
Public Member Functions | |
Geant4ParticleMap () | |
Default constructor. More... | |
virtual | ~Geant4ParticleMap () |
Default destructor. More... | |
bool | isValid () const |
Check if the particle map was ever filled (ie. some particle handler was present) More... | |
void | dump () const |
Dump content. More... | |
void | clear () |
Clear particle maps. More... | |
void | adopt (ParticleMap &pm, TrackEquivalents &equiv) |
Adopt particle maps. More... | |
const ParticleMap & | particles () const |
Access the particle map. More... | |
const TrackEquivalents & | equivalents () const |
Access the map of track equivalents. More... | |
int | particleID (int track, bool throw_if_not_found=true) const |
Access the equivalent track id (shortcut to the usage of TrackEquivalents) More... | |
Public Attributes | |
ParticleMap | particleMap |
Mapping of particles of this event. More... | |
TrackEquivalents | equivalentTracks |
Map associating the G4Track identifiers with identifiers of existing MCParticles. More... | |
Data structure to map particles produced during the generation and the simulation.
This data structure is added to the Geant4Event data extensions by the Geant4GenerationInit action. Particles are added:
Note: This object takes OWNERSHIP of the inserted particles! beware of double deletion of objects!
Definition at line 337 of file Geant4Particle.h.
Definition at line 339 of file Geant4Particle.h.
typedef std::map<int,Particle*> dd4hep::sim::Geant4ParticleMap::ParticleMap |
Definition at line 340 of file Geant4Particle.h.
typedef std::map<int,int> dd4hep::sim::Geant4ParticleMap::TrackEquivalents |
Definition at line 341 of file Geant4Particle.h.
|
inline |
Default constructor.
Definition at line 349 of file Geant4Particle.h.
|
virtual |
Default destructor.
Definition at line 483 of file Geant4Particle.cpp.
void Geant4ParticleMap::adopt | ( | ParticleMap & | pm, |
TrackEquivalents & | equiv | ||
) |
Adopt particle maps.
Definition at line 526 of file Geant4Particle.cpp.
void Geant4ParticleMap::clear | ( | ) |
Clear particle maps.
Definition at line 488 of file Geant4Particle.cpp.
void Geant4ParticleMap::dump | ( | ) | const |
Dump content.
Definition at line 495 of file Geant4Particle.cpp.
|
inline |
Access the map of track equivalents.
Definition at line 363 of file Geant4Particle.h.
bool Geant4ParticleMap::isValid | ( | ) | const |
Check if the particle map was ever filled (ie. some particle handler was present)
Definition at line 536 of file Geant4Particle.cpp.
int Geant4ParticleMap::particleID | ( | int | track, |
bool | throw_if_not_found = true |
||
) | const |
Access the equivalent track id (shortcut to the usage of TrackEquivalents)
Definition at line 541 of file Geant4Particle.cpp.
|
inline |
Access the particle map.
Definition at line 361 of file Geant4Particle.h.
TrackEquivalents dd4hep::sim::Geant4ParticleMap::equivalentTracks |
Map associating the G4Track identifiers with identifiers of existing MCParticles.
not persistent
Definition at line 345 of file Geant4Particle.h.
ParticleMap dd4hep::sim::Geant4ParticleMap::particleMap |
Mapping of particles of this event.
Definition at line 343 of file Geant4Particle.h.