25 #include "boost/test/unit_test.hpp" 58 Comment(
"number of points to generate."),
99 BOOST_TEST(spacePoints.empty());
101 const double err[6U] = { 1.0, 0.0, 1.0, 0.0, 0.0, 1.0 };
103 for (
unsigned int iPoint = 0; iPoint <
nPoints; ++iPoint) {
104 BOOST_TEST(spacePoints.size() == (std::size_t) iPoint);
107 = { double(iPoint), double(2.0 * iPoint), double(4.0 * iPoint) };
115 <<
"[#" << iPoint <<
"] point: " << spacePoints.lastSpacePoint()
116 <<
" (ptr: " << spacePoints.lastSpacePointPtr()
117 <<
"); charge: " << spacePoints.lastCharge()
118 <<
" (ptr: " << spacePoints.lastChargePtr() <<
")";
121 BOOST_TEST(spacePoints.size() == (std::size_t) nPoints);
124 <<
"Produced " << spacePoints.size() <<
" points and charges.";
127 BOOST_TEST(spacePoints.empty());
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
EDProducer(fhicl::ParameterSet const &pset)
static void produces(art::ProducesCollector &producesCollector, std::string const &instanceName={})
Declares the data products being produced.
ChannelGroupService::Name Name
Information about charge reconstructed in the active volume.
#define DEFINE_ART_MODULE(klass)
float Charge_t
Type for the amount of reconstructed charge.
void err(const char *fmt,...)
ProducesCollector & producesCollector() noexcept
static ChargedSpacePointCollectionCreator forPtrs(art::Event &event, std::string const &instanceName={})
Static function binding a new object to a specific art event.
LArSoft-specific namespace.
Helpers to create space points with associated charge.
Event finding and building.