65 #endif // SEEDFINDER_H 102 fSeedAlg(pset.get<
fhicl::ParameterSet>(
"SeedAlg"))
105 produces<std::vector<recob::Seed> >();
135 std::unique_ptr<std::vector<recob::Seed> > seeds(
new std::vector<recob::Seed>);
137 std::vector<std::vector<recob::SpacePoint> > SpacePointsWithSeeds;
143 std::vector<std::vector<art::PtrVector<recob::Hit> > > HitsPerSeed;
145 std::vector< std::vector< art::PtrVector<recob::Hit> > > SortedHits;
150 for(
size_t i=0; i!=Seeds.size(); ++i)
151 for(
size_t j=0; j!=Seeds.at(i).size(); ++j)
152 SeedVector.push_back(Seeds.at(i).at(j));
160 std::vector<art::PtrVector<recob::Hit> > HitCatalogue;
169 if(SeedVector.size()>0)
171 for(
size_t i=0; i!=SeedVector.size(); ++i)
173 seeds->push_back(SeedVector.at(i));
178 mf::LogInfo(
"SeedFinder")<<
"Seed finder made no seeds : no space points in event"<<std::endl;
180 evt.
put(std::move(seeds));
197 SortedHits.resize(3);
198 std::vector<art::Ptr<recob::Cluster> > Clusters;
209 for(
size_t iclus = 0; iclus < Clusters.size(); ++iclus) {
212 std::vector< art::Ptr<recob::Hit> > ihits = fm.at(iclus);
216 i != ihits.end(); ++i)
219 SortedHits[ThisCluster->
View()].push_back(HitsThisCluster);
240 for(
unsigned int i=0; i<hith->size(); ++i)
std::vector< art::Ptr< recob::Seed > > SeedVector
Reconstruction base classes.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
virtual ~SeedFinderModule()
Declaration of signal hit object.
void reconfigure(fhicl::ParameterSet const &pset)
void GetSortedHitsFromClusters(std::string ClusterModuleLabel, art::Event &evt, std::vector< std::vector< art::PtrVector< recob::Hit > > > &SortedHits)
ProductID put(std::unique_ptr< PROD > &&product)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::vector< std::vector< recob::Seed > > GetSeedsFromSortedHits(std::vector< std::vector< art::PtrVector< recob::Hit > > > const &SortedHits, std::vector< std::vector< art::PtrVector< recob::Hit > > > &HitsPerSeed, unsigned int StopAfter=0)
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
T get(std::string const &key) const
Declaration of cluster object.
Provides recob::Track data product.
Detector simulation of raw signals on wires.
geo::View_t View() const
Returns the view for this cluster.
void reconfigure(fhicl::ParameterSet const &pset)
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
std::vector< recob::Seed > GetSeedsFromUnSortedHits(art::PtrVector< recob::Hit > const &, std::vector< art::PtrVector< recob::Hit > > &, unsigned int StopAfter=0)
std::string fInputModuleLabel
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
void produce(art::Event &evt)
art::PtrVector< recob::Hit > GetHitsFromEvent(std::string HitModuleLabel, art::Event &evt)
SeedFinderAlgorithm fSeedAlg
art framework interface to geometry description
cet::coded_exception< error, detail::translate > exception