19 #include "art_root_io/TFileService.h" 49 std::set<std::string>
operator()() {
return {
"marley_parameters"}; }
57 Comment(
"Configuration for selecting the vertex location(s)")};
87 std::unique_ptr<marley::Event>
fEvent;
101 ,
fEvent(
new marley::Event)
112 fEventTree = tfs->make<TTree>(
"MARLEY_event_tree",
"Neutrino events generated by MARLEY");
122 produces<std::vector<simb::MCTruth>>();
123 produces<sumdata::RunData, art::InRun>();
141 std::unique_ptr<std::vector<simb::MCTruth>> truthcol(
new std::vector<simb::MCTruth>);
145 TLorentzVector vertex_pos =
fVertexSampler->sample_vertex_pos(*geo);
154 truthcol->push_back(truth);
156 e.
put(std::move(truthcol));
167 fVertexSampler = std::make_unique<evgen::ActiveVolumeVertexSampler>(
168 p().vertex_, *seed_service, *geom_service,
"MARLEY_Vertex_Sampler");
172 fMarleyHelper = std::make_unique<MARLEYHelper>(marley_pset, *seed_service,
"MARLEY");
virtual void reconfigure(const Parameters &p)
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
EDProducer(fhicl::ParameterSet const &pset)
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
std::set< std::string > operator()()
std::unique_ptr< evgen::MARLEYHelper > fMarleyHelper
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
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)
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
auto const & get_PSet() const
An art service to assist in the distribution of guaranteed unique seeds to all engines within an art ...
uint_fast32_t fEventNumber
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
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