13 #include "canvas/Utilities/InputTag.h"
14 #include "art/Framework/Core/EDAnalyzer.h"
15 #include "art/Framework/Core/ModuleMacros.h"
16 #include "art/Framework/Principal/Event.h"
19 #include "messagefacility/MessageLogger/MessageLogger.h"
20 #include "fhiclcpp/types/Atom.h"
56 Name (
"SpacePointLabel"),
58 "label of the producer used to create"
59 " the recob::SpacePoint collection to be dumped"
63 Name (
"OutputCategory"),
64 Comment(
"the category used for the output (useful for filtering)"),
65 "DumpChargedSpacePoints"
77 virtual void analyze (art::Event
const& event)
override;
95 (art::EDAnalyzer::Table<Config>
const& config)
97 , fInputTag(config().SpacePointTag())
98 , fOutputCategory(config().OutputCategory())
111 size_t const nPoints = points.size();
114 <<
"The event " <<
event.id()
115 <<
" contains " << nPoints
116 <<
" space points from '" <<
fInputTag.encode() <<
"'";
118 for (
auto const& point: points) {
120 log <<
"\n [#" << point.index() <<
"] "
121 << point.point() <<
" " << point.charge();
fhicl::Atom< art::InputTag > SpacePointTag
auto getChargedSpacePoints(Event const &event, art::InputTag inputTag, Args &&...withArgs)
Creates and returns a proxy to space points with associated charge.
Prints the content of all the space points and charge on screen.
fhicl::Atom< std::string > OutputCategory
Offers proxy::ChargedSpacePoints and proxy::SpacePointWithCharge class for recob::SpacePoint with rec...
virtual void analyze(art::Event const &event) override
Does the printing.
BEGIN_PROLOG vertical distance to the surface Name
Configuration parameters.
art::EDAnalyzer::Table< Config > Parameters
std::string fOutputCategory
Category for LogInfo output.
DumpChargedSpacePoints(Parameters const &config)
Constructor.
art::InputTag fInputTag
Input tag of the SpacePoint product.