allpix::PrimariesReaderHepMC
Reads particles from an input data file.
#include <PrimariesReaderHepMC.hpp>
Inherits from allpix::PrimariesReader
Public Functions
Name | |
---|---|
PrimariesReaderHepMC(const Configuration & config) | |
virtual std::vector< Particle > | getParticles() override |
Additional inherited members
Public Classes inherited from allpix::PrimariesReader
Name | |
---|---|
class | Particle Particle class to hold information for primary particles before dispatching them to Geant4. |
Public Types inherited from allpix::PrimariesReader
Name | |
---|---|
enum class | FileModel { GENIE, HEPMC, HEPMC2, HEPMCROOT, HEPMCTTREE} Different implemented file models. |
Public Functions inherited from allpix::PrimariesReader
Name | |
---|---|
PrimariesReader() =default | |
virtual | ~PrimariesReader() =default |
uint64_t | eventNum() const |
Friends inherited from allpix::PrimariesReader
Name | |
---|---|
class | DepositionGeneratorModule |
Public Functions Documentation
function PrimariesReaderHepMC
explicit PrimariesReaderHepMC(
const Configuration & config
)
Parameters:
- config Module configuration object
Default constructor which opens the file and checks that all expected trees and branches are available
function getParticles
virtual std::vector< Particle > getParticles() override
Return: Vector of primary particles
Reimplements: allpix::PrimariesReader::getParticles
Overwritten method to obtain the primary particles for the current event. This method needs to be called sequentially and is not thread-safe.
Updated on 2024-12-13 at 08:31:36 +0000