98 verbose = pset.get<
bool>(
"Verbose");
100 produces<std::vector<recob::Cluster>>();
101 produces<art::Assns<recob::Cluster, recob::Hit>>();
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>>();
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);
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]);
214 iplane * 100 + i + 1,
Class managing the creation of a new recob::Cluster object.
PlaneGeo const & Plane(unsigned int const p, unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified wire.
void produce(art::Event &evt) override
SmallClusterFinderAlg fSmallClusterFinderAlg
EDProducer(fhicl::ParameterSet const &pset)
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)
Cluster finding and building.
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
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
#define DEFINE_ART_MODULE(klass)
Helper functions to create a cluster.
Wrapper for ClusterParamsAlgBase objects to accept diverse input.
std::vector< art::Ptr< recob::Hit > > GetLeftoversByPlane(unsigned int iPlane)
Wrapper for ClusterParamsAlgBase objects to accept arbitrary input.
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
int GetPlaneAndTPC(art::Ptr< recob::Hit > a, unsigned int &p, unsigned int &cs, unsigned int &t, unsigned int &w)
Declaration of signal hit object.
Encapsulate the construction of a single detector plane.
std::vector< std::vector< art::Ptr< recob::Hit > > > GetSmallClustersByPlane(unsigned int iPlane)
art::ServiceHandle< geo::Geometry const > geom
Interface to class computing cluster parameters.
TPCID_t TPC
Index of the TPC within its cryostat.
QTextStream & endl(QTextStream &s)