17 #include "art/Framework/Core/EDProducer.h"
18 #include "art/Framework/Core/ModuleMacros.h"
19 #include "art/Framework/Principal/Event.h"
20 #include "messagefacility/MessageLogger/MessageLogger.h"
21 #include "fhiclcpp/types/Atom.h"
61 Comment(
"spacing between points [cm]")
72 virtual void produce(art::Event& event)
override;
95 , spacing(config().spacing())
97 produces<std::vector<recob::SpacePoint>>();
109 auto spacePoints = std::make_unique<std::vector<recob::SpacePoint>>();
112 auto const* geom = lar::providerFrom<geo::Geometry>();
119 for (
auto const&
TPC: geom->IterateTPCs()) {
128 mf::LogInfo(
"SpacePointMaker")
129 <<
"Created " << spacePoints->size() <<
" space points using spacing "
132 event.put(std::move(spacePoints));
Utilities for tests based on space points.
Utilities related to art service access.
Creates a collection of space points.
SpacePointMaker(Parameters const &config)
Constructor; see the class documentation for the configuration.
BEGIN_PROLOG vertical distance to the surface Name
unsigned int FillSpacePointGrid(std::vector< recob::SpacePoint > &spacePoints, geo::BoxBoundedGeo const &box, double stepSize)
Creates space points distributed in a grid.
virtual void produce(art::Event &event) override
Create and add the points on each event (although they are the same)
double spacing
step size [cm]
art::EDProducer::Table< Config > Parameters
fhicl::Atom< double > spacing
art framework interface to geometry description