15 #include "art/Framework/Core/EDProducer.h"
16 #include "art/Framework/Core/ModuleMacros.h"
17 #include "art/Framework/Principal/Event.h"
19 #include "messagefacility/MessageLogger/MessageLogger.h"
20 #include "fhiclcpp/types/Atom.h"
21 #include "fhiclcpp/types/Name.h"
22 #include "fhiclcpp/types/Comment.h"
25 #include "boost/test/unit_test.hpp"
58 Comment(
"number of points to generate."),
68 virtual void produce(art::Event& event)
override;
86 , nPoints(config().nPoints())
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) };
110 { pos,
err, 1.0 , int(iPoint) },
114 mf::LogVerbatim(
"ChargedSpacePointProxyInputMaker")
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);
123 mf::LogInfo(
"ChargedSpacePointProxyInputMaker")
124 <<
"Produced " << spacePoints.size() <<
" points and charges.";
127 BOOST_TEST(spacePoints.empty());
EResult err(const char *call)
static void produces(art::ProducesCollector &producesCollector, std::string const &instanceName={})
Declares the data products being produced.
Information about charge reconstructed in the active volume.
BEGIN_PROLOG vertical distance to the surface Name
float Charge_t
Type for the amount of reconstructed charge.
static ChargedSpacePointCollectionCreator forPtrs(art::Event &event, std::string const &instanceName={})
Static function binding a new object to a specific art event.
Helpers to create space points with associated charge.
BEGIN_PROLOG hitmakerfive clustermakerfour pfparticlemakerthree showermakertwo END_PROLOG hitmakerfive clustermakerfour pfparticlemakerthree sequence::inline_paths sequence::inline_paths sequence::inline_paths showermakers test