33 #include "NovaDAQConventions/DAQConventions.h" 86 produces< std::vector<simb::MCTruth> >();
87 produces< sumdata::RunData, art::InRun >();
88 produces< sumdata::CosmicExposure, art::InSubRun >();
89 produces< sumdata::SubRunData, art::InSubRun >();
109 run.
put(std::move(runcol));
125 subrun.
put(std::move(ce));
130 subrun.
put(std::move(sd));
137 std::unique_ptr< std::vector<simb::MCTruth> > truthcol(
new std::vector<simb::MCTruth>);
163 truthcol->push_back(pitruth);
164 evt.
put(std::move(truthcol));
Interface to the CRY cosmic-ray generator.
void SetOrigin(simb::Origin_t origin)
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
unsigned int GetRandomNumberSeed()
base_engine_t & createEngine(seed_t seed)
art::ProductID put(std::unique_ptr< PROD > &&)
DEFINE_ART_MODULE(TestTMapFile)
void Add(simb::MCParticle &part)
ProductID put(std::unique_ptr< PROD > &&product)
double sd(Eigen::VectorXd x)
base_engine_t & getEngine() const
double Sample(simb::MCTruth &mctruth, double const &surfaceY, double const &detectorLength, double *w, double rantime=0)
Interface to the CRY cosmic ray generator.
T get(std::string const &key) const
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
void endSubRun(art::SubRun &run)
CosmicPionGen(fhicl::ParameterSet const &pset)
const simb::MCParticle & GetParticle(int i) const
double fSpillLength
Time in seconds to add to fExposure every spill.
std::string fGeoVersion
gdml file containing detector geometry
void beginRun(art::Run &run)
double fExposure
Livetime this subrun, in seconds.
ProductID put(std::unique_ptr< PROD > &&)
std::string ExtractGDML() const
Extract contents from fGDMLFile and return as a string.
Event generator information.
A module to check the results from the Monte Carlo generator.
Module to generate only pions from cosmic rays.
void beginSubRun(art::SubRun &run)
Encapsulate the geometry of one entire detector (near, far, ndos)
evgb::CRYHelper * fCRYHelp
CRY generator object.
int fCycle
MC production cycle.
void produce(art::Event &evt)
std::string FileBaseName() const