DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class modelling a complete primary event with multiple interactions. More...
#include <Geant4Primary.h>
Public Types | |
typedef Geant4PrimaryInteraction | Interaction |
typedef std::map< int, Interaction * > | Interactions |
typedef dd4hep_ptr< PrimaryExtension > | ExtensionHandle |
Public Member Functions | |
Geant4PrimaryEvent ()=default | |
Default constructor. More... | |
virtual | ~Geant4PrimaryEvent () |
Default destructor. More... | |
void | add (int id, Geant4PrimaryInteraction *interaction) |
Add a new interaction object to the event. More... | |
Geant4PrimaryInteraction * | get (int id) const |
Retrieve an interaction by its ID. More... | |
size_t | size () const |
Number of interaction contained in the primary event. More... | |
std::vector< Geant4PrimaryInteraction * > | interactions () const |
Retrieve all interactions. More... | |
Public Attributes | |
ExtensionHandle | extension |
User data extension if required. More... | |
Protected Attributes | |
Interactions | m_interactions |
Set of primary interactions. More... | |
Private Member Functions | |
Geant4PrimaryEvent (const Geant4PrimaryEvent &c)=delete | |
Copy constructor. More... | |
Geant4PrimaryEvent & | operator= (const Geant4PrimaryEvent &c)=delete |
Assignment operator. More... | |
Class modelling a complete primary event with multiple interactions.
Definition at line 143 of file Geant4Primary.h.
Definition at line 153 of file Geant4Primary.h.
Definition at line 151 of file Geant4Primary.h.
typedef std::map<int,Interaction*> dd4hep::sim::Geant4PrimaryEvent::Interactions |
Definition at line 152 of file Geant4Primary.h.
|
privatedelete |
Copy constructor.
|
default |
Default constructor.
|
virtual |
Default destructor.
Definition at line 87 of file Geant4Primary.cpp.
void Geant4PrimaryEvent::add | ( | int | id, |
Geant4PrimaryInteraction * | interaction | ||
) |
Add a new interaction object to the event.
Definition at line 92 of file Geant4Primary.cpp.
Geant4PrimaryEvent::Interaction * Geant4PrimaryEvent::get | ( | int | id | ) | const |
Retrieve an interaction by its ID.
Definition at line 107 of file Geant4Primary.cpp.
std::vector< Geant4PrimaryEvent::Interaction * > Geant4PrimaryEvent::interactions | ( | ) | const |
Retrieve all interactions.
Retrieve all intractions.
Definition at line 113 of file Geant4Primary.cpp.
|
privatedelete |
Assignment operator.
|
inline |
Number of interaction contained in the primary event.
Definition at line 173 of file Geant4Primary.h.
ExtensionHandle dd4hep::sim::Geant4PrimaryEvent::extension |
User data extension if required.
Definition at line 161 of file Geant4Primary.h.
|
protected |
Set of primary interactions.
Definition at line 157 of file Geant4Primary.h.