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

Save 'reconstructed' (smeared) particles. More...

#include <SimG4SaveSmearedParticles.h>

Inheritance diagram for SimG4SaveSmearedParticles:
Collaboration diagram for SimG4SaveSmearedParticles:

Public Member Functions

 SimG4SaveSmearedParticles (const std::string &aType, const std::string &aName, const IInterface *aParent)
 
virtual ~SimG4SaveSmearedParticles ()
 
virtual StatusCode initialize ()
 Initialize.
 
virtual StatusCode finalize ()
 Finalize.
 
virtual StatusCode saveOutput (const G4Event &aEvent) final
 Save the data output.
 
- Public Member Functions inherited from ISimG4SaveOutputTool
 DeclareInterfaceID (ISimG4SaveOutputTool, 1, 0)
 

Private Attributes

DataHandle< edm4hep::ReconstructedParticleCollection > m_particles {"RecParticlesSmeared", Gaudi::DataHandle::Writer, this}
 Handle for the particles to be written.
 
DataHandle< edm4hep::RecoMCParticleLinkCollection > m_particlesMCparticles
 Handle for the associations between particles and MC particles to be written.
 

Detailed Description

Save 'reconstructed' (smeared) particles.

Author
Anna Zaborowska

Constructor & Destructor Documentation

◆ SimG4SaveSmearedParticles()

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

◆ ~SimG4SaveSmearedParticles()

SimG4SaveSmearedParticles::~SimG4SaveSmearedParticles ( )
virtual

Member Function Documentation

◆ finalize()

StatusCode SimG4SaveSmearedParticles::finalize ( )
virtual

Finalize.

Returns
status code

◆ initialize()

StatusCode SimG4SaveSmearedParticles::initialize ( )
virtual

Initialize.

Returns
status code

◆ saveOutput()

StatusCode SimG4SaveSmearedParticles::saveOutput ( const G4Event & aEvent)
finalvirtual

Save the data output.

Saves the 'reconstructed' (smeared) particles and associates them with MC particles.

Parameters
[in]aEventEvent with data to save.
Returns
status code

Implements ISimG4SaveOutputTool.

Member Data Documentation

◆ m_particles

DataHandle<edm4hep::ReconstructedParticleCollection> SimG4SaveSmearedParticles::m_particles {"RecParticlesSmeared", Gaudi::DataHandle::Writer, this}
mutableprivate

Handle for the particles to be written.

◆ m_particlesMCparticles

DataHandle<edm4hep::RecoMCParticleLinkCollection> SimG4SaveSmearedParticles::m_particlesMCparticles
mutableprivate
Initial value:
{"SmearedParticlesToParticles",
Gaudi::DataHandle::Writer, this}

Handle for the associations between particles and MC particles to be written.


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