82 art::Handle< std::vector<recob::Cluster> > clusterListHandle;
87 art::PtrVector<recob::Cluster> clusIn;
88 for(
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii)
90 art::Ptr<recob::Cluster>
cluster(clusterListHandle, ii);
96 std::vector<recob::EndPoint2D> vtxOut;
97 std::vector< art::PtrVector<recob::Hit> > vtxHitsOut;
100 MF_LOG_DEBUG(
"Vertex") <<
"found " << numvtx <<
"vertices with VertexService";
103 std::unique_ptr<std::vector<recob::EndPoint2D> > vtxcol(
new std::vector<recob::EndPoint2D>(vtxOut));
104 std::unique_ptr< art::Assns<recob::EndPoint2D, recob::Hit> > assn(
new art::Assns<recob::EndPoint2D, recob::Hit>);
106 for(
size_t v = 0; v < vtxcol->size(); ++v)
109 evt.put(std::move(vtxcol));
110 evt.put(std::move(assn));
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
std::string fDBScanModuleLabel
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.
EndPointAlg fEPAlg
object that contains the end point finding algorithm