10 #include "art/Framework/Core/EDProducer.h"
11 #include "art/Framework/Core/ModuleMacros.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Principal/Handle.h"
14 #include "art/Framework/Services/Registry/ServiceHandle.h"
15 #include "canvas/Utilities/InputTag.h"
16 #include "fhiclcpp/ParameterSet.h"
43 void produce(art::Event &
e)
override;
56 fWireModuleLabel(
p.get<std::string>(
"WireModuleLabel")),
57 fAlg(
p.get<fhicl::ParameterSet>(
"RFFHitFinderAlgParams"))
65 art::ServiceHandle<geo::Geometry const> geoHandle;
67 art::Handle< std::vector<recob::Wire> > wireHandle;
70 std::unique_ptr< std::vector<recob::Hit> > hitCollection(
new std::vector<recob::Hit>);
71 fAlg.
Run(*wireHandle,*hitCollection,*geoHandle);
74 hcol.
use_hits(std::move(hitCollection));
82 art::ServiceHandle<geo::Geometry const> geoHandle;
art::InputTag fWireModuleLabel
void Run(std::vector< recob::Wire > const &, std::vector< recob::Hit > &, geo::Geometry const &)
void use_hits(std::unique_ptr< std::vector< recob::Hit >> &&srchits)
Uses the specified collection as data product.
static void declare_products(art::ProducesCollector &collector, std::string instance_name="", bool doWireAssns=true, bool doRawDigitAssns=true)
Declares the hit products we are going to fill.
void SetFitterParamsVectors(geo::Geometry const &)
Helper functions to create a hit.
A class handling a collection of hits and its associations.
The geometry of one entire detector, as served by art.
RFFHitFinder(fhicl::ParameterSet const &p)
RFFHitFinder & operator=(RFFHitFinder const &)=delete
void produce(art::Event &e) override
void put_into(art::Event &)
Moves the data into the event.
art framework interface to geometry description