DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
dd4hep::sim::Geant4PrimaryEvent Class Reference

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< PrimaryExtensionExtensionHandle
 

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...
 
Geant4PrimaryInteractionget (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...
 
Geant4PrimaryEventoperator= (const Geant4PrimaryEvent &c)=delete
 Assignment operator. More...
 

Detailed Description

Class modelling a complete primary event with multiple interactions.

Definition at line 143 of file Geant4Primary.h.

Member Typedef Documentation

◆ ExtensionHandle

Definition at line 153 of file Geant4Primary.h.

◆ Interaction

Definition at line 151 of file Geant4Primary.h.

◆ Interactions

Definition at line 152 of file Geant4Primary.h.

Constructor & Destructor Documentation

◆ Geant4PrimaryEvent() [1/2]

dd4hep::sim::Geant4PrimaryEvent::Geant4PrimaryEvent ( const Geant4PrimaryEvent c)
privatedelete

Copy constructor.

◆ Geant4PrimaryEvent() [2/2]

dd4hep::sim::Geant4PrimaryEvent::Geant4PrimaryEvent ( )
default

Default constructor.

◆ ~Geant4PrimaryEvent()

Geant4PrimaryEvent::~Geant4PrimaryEvent ( )
virtual

Default destructor.

Definition at line 87 of file Geant4Primary.cpp.

Member Function Documentation

◆ add()

void Geant4PrimaryEvent::add ( int  id,
Geant4PrimaryInteraction interaction 
)

Add a new interaction object to the event.

Definition at line 92 of file Geant4Primary.cpp.

◆ get()

Geant4PrimaryEvent::Interaction * Geant4PrimaryEvent::get ( int  id) const

Retrieve an interaction by its ID.

Definition at line 107 of file Geant4Primary.cpp.

◆ interactions()

std::vector< Geant4PrimaryEvent::Interaction * > Geant4PrimaryEvent::interactions ( ) const

Retrieve all interactions.

Retrieve all intractions.

Definition at line 113 of file Geant4Primary.cpp.

◆ operator=()

Geant4PrimaryEvent& dd4hep::sim::Geant4PrimaryEvent::operator= ( const Geant4PrimaryEvent c)
privatedelete

Assignment operator.

◆ size()

size_t dd4hep::sim::Geant4PrimaryEvent::size ( ) const
inline

Number of interaction contained in the primary event.

Definition at line 173 of file Geant4Primary.h.

Member Data Documentation

◆ extension

ExtensionHandle dd4hep::sim::Geant4PrimaryEvent::extension

User data extension if required.

Definition at line 161 of file Geant4Primary.h.

◆ m_interactions

Interactions dd4hep::sim::Geant4PrimaryEvent::m_interactions
protected

Set of primary interactions.

Definition at line 157 of file Geant4Primary.h.


The documentation for this class was generated from the following files: