63 ,
fHoughSeed{pset.get<
unsigned int>(
"HoughSeed", 0)}
72 produces<std::vector<recob::Cluster>>();
73 produces<art::Assns<recob::Cluster, recob::Hit>>();
83 auto const clusterListHandle =
86 std::vector<art::Ptr<recob::Cluster>> clusIn;
87 clusIn.reserve(clusterListHandle->size());
88 for (
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii) {
89 clusIn.emplace_back(clusterListHandle, ii);
93 auto ccol = std::make_unique<std::vector<recob::Cluster>>();
94 auto assn = std::make_unique<art::Assns<recob::Cluster, recob::Hit>>();
98 std::vector<art::PtrVector<recob::Hit>> clusHitsOut;
104 size_t const numclus =
107 MF_LOG_DEBUG(
"HoughLineClusters") <<
"found " << numclus <<
"clusters with HoughBaseAlg";
109 mf::LogVerbatim(
"Summary") << std::setfill(
'-') << std::setw(175) <<
"-" << std::setfill(
' ');
111 for (
size_t i = 0; i < ccol->size(); ++i) {
base_engine_t & createEngine(seed_t seed)
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
Declaration of signal hit object.
EDProducer(fhicl::ParameterSet const &pset)
size_t FastTransform(const std::vector< art::Ptr< recob::Cluster >> &clusIn, std::vector< recob::Cluster > &ccol, std::vector< art::PtrVector< recob::Hit >> &clusHitsOut, CLHEP::HepRandomEngine &engine, art::Event const &evt, std::string const &label)
Cluster finding and building.
void produce(art::Event &evt) override
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_MODULE(klass)
Declaration of cluster object.
An art service to assist in the distribution of guaranteed unique seeds to all engines within an art ...
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.
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
Utility object to perform functions of association.
HoughBaseAlg fHLAlg
object that does the Hough Transform
HoughLineFinder(fhicl::ParameterSet const &pset)
CLHEP::HepRandomEngine & fEngine