Creates a collection of simulated particles. More...
Classes | |
struct | Config |
struct | ParticleConfig |
struct | ParticleSpecs |
Public Types | |
using | Parameters = art::EDProducer::Table< Config > |
Public Member Functions | |
ParticleMaker (Parameters const &config) | |
Constructor; see the class documentation for the configuration. More... | |
virtual void | produce (art::Event &event) override |
Create and add the particles (the same for all events). More... | |
Private Attributes | |
std::vector< ParticleSpecs > | fParticleSpecs |
Settings for particles. More... | |
Creates a collection of simulated particles.
A collection of simb::MCParticle
is added to the event. The particles are one starting where the previous one ended (starting from the origin). The configuration specifies the number, type and energy of the particles, and their path length.
Definition at line 60 of file ParticleMaker_module.cc.
using lar::example::tests::ParticleMaker::Parameters = art::EDProducer::Table<Config> |
Definition at line 98 of file ParticleMaker_module.cc.
|
explicit |
Constructor; see the class documentation for the configuration.
Definition at line 138 of file ParticleMaker_module.cc.
|
overridevirtual |
Create and add the particles (the same for all events).
Definition at line 154 of file ParticleMaker_module.cc.
|
private |
Settings for particles.
Definition at line 120 of file ParticleMaker_module.cc.