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

Smear 'generated' (smeared) particles. More...

#include <SimG4SmearGenParticles.h>

Inheritance diagram for SimG4SmearGenParticles:
Collaboration diagram for SimG4SmearGenParticles:

Public Member Functions

 SimG4SmearGenParticles (const std::string &aName, ISvcLocator *svcLoc)
 
StatusCode initialize ()
 Initialize.
 
StatusCode finalize ()
 Finalize.
 
StatusCode execute (const EventContext &) const
 Save the data output.
 

Private Attributes

DataHandle< edm4hep::MCParticleCollection > m_inParticles {"GenParticles", Gaudi::DataHandle::Reader, this}
 Handle for the particles to be written

 
DataHandle< edm4hep::MCParticleCollection > m_particles {"SimParticlesSmeared", Gaudi::DataHandle::Writer, this}
 Handle for the particles to be written.
 
ToolHandle< ISimG4ParticleSmearToolm_smearTool {"SimG4ParticleSmearRootFile", this}
 Handle for the calorimeter cells noise tool.
 
Gaudi::Property< bool > m_simTracker {this, "simulateTracker", true}
 Flag to decide on wether to only smear and write out charged particles.
 

Detailed Description

Smear 'generated' (smeared) particles.

Author
Coralie Neubüser

Constructor & Destructor Documentation

◆ SimG4SmearGenParticles()

SimG4SmearGenParticles::SimG4SmearGenParticles ( const std::string & aName,
ISvcLocator * svcLoc )

Member Function Documentation

◆ execute()

StatusCode SimG4SmearGenParticles::execute ( const EventContext & ) const

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

◆ finalize()

StatusCode SimG4SmearGenParticles::finalize ( )

Finalize.

Returns
status code

◆ initialize()

StatusCode SimG4SmearGenParticles::initialize ( )

Initialize.

Returns
status code

Member Data Documentation

◆ m_inParticles

DataHandle<edm4hep::MCParticleCollection> SimG4SmearGenParticles::m_inParticles {"GenParticles", Gaudi::DataHandle::Reader, this}
mutableprivate

Handle for the particles to be written

◆ m_particles

DataHandle<edm4hep::MCParticleCollection> SimG4SmearGenParticles::m_particles {"SimParticlesSmeared", Gaudi::DataHandle::Writer, this}
mutableprivate

Handle for the particles to be written.

◆ m_simTracker

Gaudi::Property<bool> SimG4SmearGenParticles::m_simTracker {this, "simulateTracker", true}
private

Flag to decide on wether to only smear and write out charged particles.

◆ m_smearTool

ToolHandle<ISimG4ParticleSmearTool> SimG4SmearGenParticles::m_smearTool {"SimG4ParticleSmearRootFile", this}
mutableprivate

Handle for the calorimeter cells noise tool.


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