12 #include "art/Framework/Core/EDProducer.h"
13 #include "art/Framework/Principal/Event.h"
14 #include "art/Framework/Principal/Run.h"
15 #include "art/Framework/Core/ModuleMacros.h"
16 #include "art/Framework/Services/Registry/ServiceHandle.h"
17 #include "fhiclcpp/ParameterSet.h"
20 #include "nurandom/RandomUtils/NuRandomService.h"
23 #include "nusimdata/SimulationBase/MCTruth.h"
41 void beginRun(art::Run& run)
override;
42 void produce(art::Event& event)
override;
53 ,
fEngine(art::ServiceHandle<rndm::NuRandomService>{}->createEngine(*
this, pset,
"Seed"))
54 , fGenerator{pset.get< fhicl::ParameterSet >(
"GeneratorAlg")}
56 produces< std::vector< simb::MCTruth > >();
57 produces< sumdata::RunData, art::InRun >();
64 art::ServiceHandle<geo::Geometry const> geo;
65 run.put(std::make_unique<sumdata::RunData>(geo->DetectorName()));
void beginRun(art::Run &run) override
evgen::NueAr40CCGenerator fGenerator
fEngine(art::ServiceHandle< rndm::NuRandomService >() ->createEngine(*this, pset,"Seed"))
SNNueAr40CCGen(fhicl::ParameterSet const &pset)
void produce(art::Event &event) override
std::vector< simb::MCTruth > Generate(CLHEP::HepRandomEngine &engine)
art framework interface to geometry description
CLHEP::HepRandomEngine & fEngine