k4SimGeant4
Loading...
Searching...
No Matches
sim::EventInformation Class Reference

Additional event information. More...

#include <SimG4Common/include/SimG4Common/EventInformation.h>

Inheritance diagram for sim::EventInformation:
Collaboration diagram for sim::EventInformation:

Public Member Functions

 EventInformation ()
 Default constructor.
 
virtual ~EventInformation ()=default
 Destructor.
 
void setCollections (edm4hep::MCParticleCollection *&aMcParticleCollection)
 Set external pointers to point at the particle and vertex collections.
 
void addParticle (const G4Track *aSecondary)
 Add a particle to be tracked in the EDM collections.
 
void Print () const
 

Private Attributes

edm4hep::MCParticleCollection * m_mcParticles
 Pointer to the particle collection, ownership is intended to be transfered to SaveTool.
 
std::map< size_t, size_t > m_g4IdToEndVertexMap
 Map to get the edm end vertex id from a Geant4 unique particle ID.
 

Detailed Description

Additional event information.

Currently holds the particle history in form of edm particles and vertices

Author
J. Lingemann

Constructor & Destructor Documentation

◆ EventInformation()

sim::EventInformation::EventInformation ( )

Default constructor.

◆ ~EventInformation()

virtual sim::EventInformation::~EventInformation ( )
virtualdefault

Destructor.

Member Function Documentation

◆ addParticle()

void sim::EventInformation::addParticle ( const G4Track * aSecondary)

Add a particle to be tracked in the EDM collections.

◆ Print()

void sim::EventInformation::Print ( ) const
inline

◆ setCollections()

void sim::EventInformation::setCollections ( edm4hep::MCParticleCollection *& aMcParticleCollection)

Set external pointers to point at the particle and vertex collections.

Parameters
[in]aGenVertexCollectionpointer to a collection that should take ownership of the particles saved here
[in]aMCParticleCollectionpointer to a collection that should take ownership of the particles saved here

Member Data Documentation

◆ m_g4IdToEndVertexMap

std::map<size_t, size_t> sim::EventInformation::m_g4IdToEndVertexMap
private

Map to get the edm end vertex id from a Geant4 unique particle ID.

◆ m_mcParticles

edm4hep::MCParticleCollection* sim::EventInformation::m_mcParticles
private

Pointer to the particle collection, ownership is intended to be transfered to SaveTool.


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