67 produces<std::vector<recob::EndPoint2D>>();
68 produces<art::Assns<recob::EndPoint2D, recob::Hit>>();
82 for (
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii) {
89 std::vector<recob::EndPoint2D> vtxOut;
90 std::vector<art::PtrVector<recob::Hit>> vtxHitsOut;
93 MF_LOG_DEBUG(
"Vertex") <<
"found " << numvtx <<
"vertices with VertexService";
96 std::unique_ptr<std::vector<recob::EndPoint2D>> vtxcol(
97 new std::vector<recob::EndPoint2D>(vtxOut));
98 std::unique_ptr<art::Assns<recob::EndPoint2D, recob::Hit>> assn(
101 for (
size_t v = 0; v < vtxcol->size(); ++v)
104 evt.
put(std::move(vtxcol));
105 evt.
put(std::move(assn));
algorithm to find 2D endpoints
Declaration of signal hit object.
EDProducer(fhicl::ParameterSet const &pset)
void produce(art::Event &evt)
Cluster finding and building.
size_t EndPoint(const art::PtrVector< recob::Cluster > &clusIn, std::vector< recob::EndPoint2D > &vtxcol, std::vector< art::PtrVector< recob::Hit >> &vtxHitsOut, art::Event const &evt, std::string const &label) const
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
std::string fDBScanModuleLabel
Declaration of cluster object.
Algorithm to find 2D end points.
bool CreateAssn(art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t index=UINT_MAX)
Creates a single one-to-one association.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
Utility object to perform functions of association.
EndPointAlg fEPAlg
object that contains the end point finding algorithm
module to find 2D end points
EndPointModule(fhicl::ParameterSet const &pset)