10 #ifndef SimpleClustering_h
11 #define SimpleClustering_h
18 struct bDistToPointLess;
20 class SimpleClustering;
24 public std::binary_function<const tss::Hit2D*, const tss::Hit2D*, bool>
48 const std::vector< const tss::Hit2D* > &
hits(
void)
const {
return fHits; }
49 std::vector< const tss::Hit2D* > &
hits(
void) {
return fHits; }
59 double dist2(
const TVector2 & p2d)
const;
60 double dist2(
const TVector2 & p2d,
size_t & hIdx)
const;
106 const Hit2D*
closest(
const TVector2 & p2d,
size_t & idx)
const;
109 const TVector2
min(
void)
const;
110 const TVector2
max(
void)
const;
114 std::vector< const tss::Hit2D* >
fHits;
124 std::vector< tss::Cluster2D >
run(
const std::vector< tss::Hit2D > & inp)
const;
133 void merge(std::vector< tss::Cluster2D > & clusters)
const;
bDistToPointLess(const TVector2 &point)
TVector2 const & Point2D() const
double Dist2(const TVector2 &v1, const TVector2 &v2)
const tss::Hit2D * start(void) const
void push_back(const tss::Hit2D *hit)
bool isDenseEnd(void) const
std::vector< const tss::Hit2D * > fHits
const Hit2D * outermost(size_t &idx) const
double dist2(const TVector2 &p2d) const
const Hit2D * closest(const TVector2 &p2d, size_t &idx) const
bool operator()(const tss::Hit2D *h1, const tss::Hit2D *h2)
void tagDenseStart(bool b)
const std::vector< const tss::Hit2D * > & hits(void) const
std::vector< const tss::Hit2D * > & hits(void)
bool isDenseStart(void) const
std::vector< tss::Cluster2D > run(const std::vector< tss::Hit2D > &inp) const
void take_from(tss::Cluster2D &clu, size_t idx)
const tss::Hit2D * end(void) const
void merge(std::vector< tss::Cluster2D > &clusters) const
const Hit2D * release_at(size_t idx)
Hit pos in cm and original recob hit ptr.
bool isTagged(void) const
bool hitsTouching(const tss::Hit2D &h1, const tss::Hit2D &h2) const
bool release(const tss::Hit2D *hit)
const TVector2 max(void) const
void merge(tss::Cluster2D &clu)
const TVector2 min(void) const
const Hit2D & operator[](size_t index) const
bool has(const tss::Hit2D *hit) const
double length2(void) const