23 #include <sys/types.h> 37 #include "TDatabasePDG.h" 50 #include "CLHEP/Random/JamesRandom.h" 104 :
fHLAlg(pset.get<
fhicl::ParameterSet >(
"HoughBaseAlg"))
107 produces< std::vector<recob::Cluster> >();
108 produces< art::Assns<recob::Cluster, recob::Hit> >();
144 std::vector<art::Ptr<recob::Cluster> > clusIn;
145 for(
unsigned int ii = 0; ii < clusterListHandle->size(); ++ii){
147 clusIn.push_back(cluster);
151 std::unique_ptr<std::vector<recob::Cluster> > ccol(
new std::vector<recob::Cluster>);
156 std::vector< art::PtrVector<recob::Hit> > clusHitsOut;
165 CLHEP::HepRandomEngine &engine = rng->
getEngine();
178 LOG_DEBUG(
"HoughLineClusters") <<
"found " << numclus <<
"clusters with HoughBaseAlg";
181 mf::LogVerbatim(
"Summary") << std::setfill(
'-') << std::setw(175) <<
"-" << std::setfill(
' ');
183 for(
size_t i = 0; i < ccol->size(); ++i){
187 util::CreateAssn(*
this, evt, *(ccol.get()), clusHitsOut[i], *(assn.get()), i);
190 evt.
put(std::move(ccol));
191 evt.
put(std::move(assn));
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
virtual void reconfigure(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, art::Event const &evt, std::string const &label)
Declaration of signal hit object.
Definition of basic raw digits.
Cluster finding and building.
void reconfigure(fhicl::ParameterSet const &p)
ProductID put(std::unique_ptr< PROD > &&product)
base_engine_t & getEngine() const
base_engine_t & createEngine(seed_t seed)
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
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.
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
virtual ~HoughLineFinder()
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
HoughBaseAlg fHLAlg
object that does the Hough Transform
void produce(art::Event &evt)
HoughLineFinder(fhicl::ParameterSet const &pset)