27 const std::string
label =
"bogus";
33 produces< std::vector<sim::SimEnergyDeposit> >(
label);
41 const double jump =
m_count*1e9;
43 auto out = std::make_unique< std::vector<sim::SimEnergyDeposit> >();
45 const int nphotons = 0;
46 const int nelepercm = 50000;
47 const double mevpercm = 2.0;
51 const int trackid = 0;
57 const auto vdiff = end-start;
58 const auto vlen = sqrt(vdiff.Mag2());
59 const auto vdir = vdiff.unit();
61 const double stepsize = 0.1;
62 const int nsteps = vlen/stepsize;
65 for (
int istep=1; istep<nsteps; ++istep) {
77 std::cerr <<
"BlipMaker making " << out->size() <<
" depos to label: " <<
label << std::endl;
80 event.put(std::move(out),
label);
code to link reconstructed objects back to the MC truth information
#define DEFINE_ART_MODULE(klass)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Length_t > > Point_t
void produce(art::Event &evt)
contains information for a single step in the detector simulation
BlipMaker(Parameters const ¶ms)
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
const BlipMakerConfig m_cfg
Event finding and building.