k4SimGeant4
Loading...
Searching...
No Matches
SimG4SaveParticleHistory Class Reference

This tool allows to save the particle history of particles decaying during the simulation. More...

#include <SimG4SaveParticleHistory.h>

Inheritance diagram for SimG4SaveParticleHistory:
Collaboration diagram for SimG4SaveParticleHistory:

Public Member Functions

 SimG4SaveParticleHistory (const std::string &aType, const std::string &aName, const IInterface *aParent)
 
virtual ~SimG4SaveParticleHistory ()=default
 
StatusCode saveOutput (const G4Event &aEvent) override final
 Save the history Creates particles and gen vertices that allow association of parents and children.
 
- Public Member Functions inherited from ISimG4SaveOutputTool
 DeclareInterfaceID (ISimG4SaveOutputTool, 1, 0)
 

Private Attributes

DataHandle< edm4hep::MCParticleCollection > m_mcParticles {"SimParticleSecondaries", Gaudi::DataHandle::Writer, this}
 Handle for collection of MC particles to create.
 
edm4hep::MCParticleCollection * m_mcParticleColl
 Pointer to the particle collection, ownership should be handled in a algorithm / tool.
 

Detailed Description

This tool allows to save the particle history of particles decaying during the simulation.

Author
J. Lingemann
V. Volkl

Constructor & Destructor Documentation

◆ SimG4SaveParticleHistory()

SimG4SaveParticleHistory::SimG4SaveParticleHistory ( const std::string & aType,
const std::string & aName,
const IInterface * aParent )
explicit

◆ ~SimG4SaveParticleHistory()

virtual SimG4SaveParticleHistory::~SimG4SaveParticleHistory ( )
virtualdefault

Member Function Documentation

◆ saveOutput()

StatusCode SimG4SaveParticleHistory::saveOutput ( const G4Event & aEvent)
finaloverridevirtual

Save the history Creates particles and gen vertices that allow association of parents and children.

Parameters
[in]aEventThe Geant Event conatining data to save.
Returns
status code

Implements ISimG4SaveOutputTool.

Member Data Documentation

◆ m_mcParticleColl

edm4hep::MCParticleCollection* SimG4SaveParticleHistory::m_mcParticleColl
private

Pointer to the particle collection, ownership should be handled in a algorithm / tool.

◆ m_mcParticles

DataHandle<edm4hep::MCParticleCollection> SimG4SaveParticleHistory::m_mcParticles {"SimParticleSecondaries", Gaudi::DataHandle::Writer, this}
mutableprivate

Handle for collection of MC particles to create.


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