71 produces< std::vector<recob::EndPoint2D> >();
72 produces< art::Assns<recob::EndPoint2D, recob::Hit> >();
86 for(
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii)
94 std::vector<recob::EndPoint2D> vtxOut;
95 std::vector< art::PtrVector<recob::Hit> > vtxHitsOut;
98 MF_LOG_DEBUG(
"Vertex") <<
"found " << numvtx <<
"vertices with VertexService";
101 std::unique_ptr<std::vector<recob::EndPoint2D> > vtxcol(
new std::vector<recob::EndPoint2D>(vtxOut));
104 for(
size_t v = 0; v < vtxcol->size(); ++v)
105 util::CreateAssn(*
this, evt, *(vtxcol.get()), vtxHitsOut[v], *(assn.get()), v);
algorithm to find 2D endpoints
EDProducer(fhicl::ParameterSet const &pset)
void produce(art::Event &evt)
Cluster finding and building.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
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
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
Algorithm to find 2D end points.
Declaration of signal hit object.
EndPointAlg fEPAlg
object that contains the end point finding algorithm
module to find 2D end points
EndPointModule(fhicl::ParameterSet const &pset)