35 #include "nurandom/RandomUtils/NuRandomService.h" 62 ,
fHoughSeed{pset.get<
unsigned int>(
"HoughSeed", 0)}
70 produces<std::vector<recob::Cluster>>();
71 produces<art::Assns<recob::Cluster, recob::Hit>>();
82 auto const clusterListHandle =
85 std::vector<art::Ptr<recob::Cluster>> clusIn;
86 clusIn.reserve(clusterListHandle->size());
87 for (
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii) {
88 clusIn.emplace_back(clusterListHandle, ii);
92 auto ccol = std::make_unique<std::vector<recob::Cluster>>();
93 auto assn = std::make_unique<art::Assns<recob::Cluster, recob::Hit>>();
97 std::vector<art::PtrVector<recob::Hit>> clusHitsOut;
103 size_t const numclus =
106 MF_LOG_DEBUG(
"HoughLineClusters") <<
"found " << numclus <<
"clusters with HoughBaseAlg";
110 for (
size_t i = 0; i < ccol->size(); ++i) {
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
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
#define DEFINE_ART_MODULE(klass)
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
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.
Q_EXPORT QTSManip setw(int w)
std::string fDBScanModuleLabel
Declaration of signal hit object.
HoughBaseAlg fHLAlg
object that does the Hough Transform
HoughLineFinder(fhicl::ParameterSet const &pset)
Q_EXPORT QTSManip setfill(int f)
CLHEP::HepRandomEngine & fEngine