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

Tool to translate an EDM MCParticleCollection into a G4Event. More...

#include "SimG4PrimariesFromEdmTool.h"

Inheritance diagram for SimG4PrimariesFromEdmTool:
Collaboration diagram for SimG4PrimariesFromEdmTool:

Public Member Functions

 SimG4PrimariesFromEdmTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
 
virtual ~SimG4PrimariesFromEdmTool ()
 
StatusCode initialize () final
 
virtual G4Event * g4Event () final
 Translates the input (edm4hep::MCParticleCollection) into a G4Event.
 
- Public Member Functions inherited from ISimG4EventProviderTool
 DeclareInterfaceID (ISimG4EventProviderTool, 1, 0)
 

Private Attributes

DataHandle< edm4hep::MCParticleCollection > m_genParticles {"GenParticles", Gaudi::DataHandle::Reader, this}
 Handle for the EDM MC particles to be read.
 

Detailed Description

Tool to translate an EDM MCParticleCollection into a G4Event.

Author
A. Zaborowska, J. Lingemann, A. Dell'Acqua
Date
2016-01-11

Constructor & Destructor Documentation

◆ SimG4PrimariesFromEdmTool()

SimG4PrimariesFromEdmTool::SimG4PrimariesFromEdmTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard constructor.

◆ ~SimG4PrimariesFromEdmTool()

SimG4PrimariesFromEdmTool::~SimG4PrimariesFromEdmTool ( )
virtual

Member Function Documentation

◆ g4Event()

G4Event * SimG4PrimariesFromEdmTool::g4Event ( )
finalvirtual

Translates the input (edm4hep::MCParticleCollection) into a G4Event.

Returns
G4Event with primaries generated from MCParticleCollection (ownership is transferred to the caller)

Implements ISimG4EventProviderTool.

◆ initialize()

StatusCode SimG4PrimariesFromEdmTool::initialize ( )
final

Member Data Documentation

◆ m_genParticles

DataHandle<edm4hep::MCParticleCollection> SimG4PrimariesFromEdmTool::m_genParticles {"GenParticles", Gaudi::DataHandle::Reader, this}
mutableprivate

Handle for the EDM MC particles to be read.


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