124 std::vector<art::Ptr<recob::Hit>> hitlist;
128 std::cout <<
" ++++ Hitsreceived received " << HitListHandle->size() <<
" +++++ " 131 if (HitListHandle->size() == 0) {
135 hitlist.resize(HitListHandle->size());
138 for (
unsigned int iHit = 0; iHit < hitlist.size(); iHit++) {
153 auto assn = std::make_unique<art::Assns<recob::Cluster, recob::Hit>>();
158 ClusterParamsImportWrapper<StandardClusterParamsAlg> ClusterParamAlgo;
160 for (
unsigned int iplane = 0; iplane <
fNPlanes; iplane++) {
165 if (leftoverHits.size() != 0) {
167 geo::PlaneID planeID = leftoverHits.front()->WireID().planeID();
169 std::cout <<
"Writing leftover hits to cluster ID: " << iplane * 100 <<
std::endl;
171 ClusterParamAlgo.ImportHits(gser, leftoverHits);
174 ClusterCreator leftover(gser,
196 for (
unsigned int i = 0; i < smallClusters.size(); i++) {
199 if (!smallClusters.empty()) planeID = smallClusters[i].front()->WireID().planeID();
201 ClusterParamAlgo.ImportHits(gser, smallClusters[i]);
204 ClusterCreator clust(gser,
214 iplane * 100 + i + 1,
PlaneGeo const & Plane(unsigned int const p, unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified wire.
SmallClusterFinderAlg fSmallClusterFinderAlg
The data type to uniquely identify a Plane.
SmallClusterFinder(fhicl::ParameterSet const &pset)
CryostatID_t Cryostat
Index of cryostat.
void FindSmallClusters(util::GeometryUtilities const &gser, detinfo::DetectorClocksData const &dataClocks, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit >> allHits)
static const SentryArgument_t Sentry
An instance of the sentry object.
View_t View() const
Which coordinate does this plane measure.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::vector< art::Ptr< recob::Hit > > GetLeftoversByPlane(unsigned int iPlane)
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.
std::string fHitFinderModuleLabel
std::vector< std::vector< art::Ptr< recob::Hit > > > GetSmallClustersByPlane(unsigned int iPlane)
art::ServiceHandle< geo::Geometry const > geom
TPCID_t TPC
Index of the TPC within its cryostat.
QTextStream & endl(QTextStream &s)