18 #include "art_root_io/TFileService.h" 22 #include "nurandom/RandomUtils/NuRandomService.h" 51 return {
"marley_parameters" };
60 Comment(
"Configuration for selecting the vertex location(s)")
92 std::unique_ptr<marley::Event>
fEvent;
114 fEventTree = tfs->make<TTree>(
"MARLEY_event_tree",
115 "Neutrino events generated by MARLEY");
125 produces< std::vector<simb::MCTruth> >();
126 produces< sumdata::RunData, art::InRun >();
144 std::unique_ptr< std::vector<simb::MCTruth> >
145 truthcol(
new std::vector<simb::MCTruth>);
149 TLorentzVector vertex_pos =
fVertexSampler->sample_vertex_pos(*geo);
159 truthcol->push_back(truth);
172 fVertexSampler = std::make_unique<evgen::ActiveVolumeVertexSampler>(
173 p().vertex_, *seed_service, *geom_service,
"MARLEY_Vertex_Sampler");
177 "marley_parameters" );
179 *seed_service,
"MARLEY" );
virtual void reconfigure(const Parameters &p)
EventNumber_t event() 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)
ChannelGroupService::Name Name
art framework interface to geometry description
std::unique_ptr< evgen::MARLEYHelper > fMarleyHelper
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.
SubRunNumber_t subRun() const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
virtual void produce(art::Event &e) override
auto const & get_PSet() const
uint_fast32_t fEventNumber
Event generator information.
MarleyGen(const Parameters &p)
LArSoft geometry interface.
Event Generation using GENIE, cosmics or single particles.
std::unique_ptr< marley::Event > fEvent
std::set< std::string > operator()()