23 #include "cetlib_except/exception.h" 57 Comment(
"Configuration for selecting the vertex location(s)")
61 Name(
"marley_parameters"),
62 Comment(
"Configuration for the MARLEY generator")
96 std::unique_ptr<marley::Event>
fEvent;
118 "Neutrino events generated by MARLEY");
128 produces< std::vector<simb::MCTruth> >();
129 produces< sumdata::RunData, art::InRun >();
142 std::unique_ptr<sumdata::RunData>
145 run.
put(std::move(runcol));
156 std::unique_ptr< std::vector<simb::MCTruth> >
157 truthcol(
new std::vector<simb::MCTruth>);
161 TLorentzVector vertex_pos =
fVertexSampler->sample_vertex_pos(*geo);
171 truthcol->push_back(truth);
173 e.
put(std::move(truthcol));
184 fVertexSampler = std::make_unique<evgen::ActiveVolumeVertexSampler>(
185 p().vertex_, *seed_service, *geom_service,
"MARLEY_Vertex_Sampler");
188 fMarleyHelper = std::make_unique<MARLEYHelper>(p().marley_parameters_,
189 *seed_service,
"MARLEY");
virtual void reconfigure(const Parameters &p)
fhicl::Atom< std::string > module_type_
SubRunNumber_t subRun() const
LArSoft interface to the MARLEY (Model of Argon Reaction Low Energy Yields) supernova neutrino event ...
virtual void beginRun(art::Run &run) override
art::ProductID put(std::unique_ptr< PROD > &&)
std::unique_ptr< evgen::MARLEYHelper > fMarleyHelper
fhicl::Table< evgen::ActiveVolumeVertexSampler::Config > vertex_
ProductID put(std::unique_ptr< PROD > &&product)
Algorithm that samples vertex locations uniformly within the active volume of a detector. It is fully experiment-agnostic and multi-TPC aware.
#define DEFINE_ART_MODULE(klass)
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
uint_fast32_t fSubRunNumber
std::unique_ptr< evgen::ActiveVolumeVertexSampler > fVertexSampler
Collection of configuration parameters for the module.
EventNumber_t event() const
virtual void produce(art::Event &e) override
An art service to assist in the distribution of guaranteed unique seeds to all engines within an art ...
fhicl::Table< evgen::MARLEYHelper::Config > marley_parameters_
T * make(ARGS...args) const
uint_fast32_t fEventNumber
Event generator information.
MarleyGen(const Parameters &p)
Namespace collecting geometry-related classes utilities.
Event Generation using GENIE, cosmics or single particles.
std::unique_ptr< marley::Event > fEvent
art framework interface to geometry description