|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
21 #include <G4PrimaryParticle.hh>
59 detail::ReleaseObject<Geant4Vertex*>()( vtx );
77 ip.second->mask =
mask;
80 for(
auto* vtx : iv.second )
96 interaction->
mask = id;
100 except(
"Geant4PrimaryEvent",
"+++ Interaction with ID '%d' "
101 "exists and cannot be added twice!",
id);
103 except(
"Geant4PrimaryEvent",
"+++ CANNOT add invalid Interaction!");
114 std::vector<Interaction*>
v;
117 v.emplace_back(i.second);
int nextPID()
Access a new particle identifier within the interaction.
std::vector< Geant4PrimaryInteraction * > interactions() const
Retrieve all interactions.
Class modelling a single interaction with multiple primary vertices and particles.
Geant4Particle * addRef()
Increase reference count.
VertexMap vertices
The map of primary vertices for the particles.
bool applyMask()
Apply mask to all contained vertices (max. 1) and particles.
ParticleMap particles
The map of particles participating in this primary interaction.
int mask
User mask to flag the interaction. Also unique identifier.
void setNextPID(int value)
Set the next PID value.
void insert(G4PrimaryParticle *g4_particle, Geant4Particle *particle)
Add a new object pair (G4 primary particle, DDG4 particle) into the maps.
Interactions m_interactions
Set of primary interactions.
int next_particle_identifier
Next PID indentifier.
virtual ~Geant4PrimaryMap()
Default destructor.
virtual ~PrimaryExtension()
Default destructor.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Data structure to store the MC particle information.
Data structure to store the MC vertex information.
virtual ~Geant4PrimaryInteraction()
Default destructor.
Primaries m_primaryMap
Mapping of primary particles of this event.
virtual ~Geant4PrimaryEvent()
Default destructor.
Geant4Particle * get(const G4PrimaryParticle *particle)
Access DDG4 particle by G4 primary particle.
void add(int id, Geant4PrimaryInteraction *interaction)
Add a new interaction object to the event.
Geant4PrimaryInteraction * get(int id) const
Retrieve an interaction by its ID.