13 #ifndef MergeCluster_h 14 #define MergeCluster_h 48 #include "TPrincipal.h" 55 class MergeClusterAlg;
64 double FindClusterOverlap(TVector2
const& direction, TVector2
const& centre, TVector2
const& start1, TVector2
const& end1, TVector2
const& start2, TVector2
const& end2);
65 double FindCrossingDistance(TVector2
const &direction1, TVector2
const ¢re1, TVector2
const&direction2, TVector2
const ¢re2);
67 double FindProjectedWidth(TVector2
const& centre1, TVector2
const& start1, TVector2
const& end1, TVector2
const& centre2, TVector2
const& start2, TVector2
const& end2);
72 bool PassCuts(
double const& angle,
double const& crossingDistance,
double const& projectedWidth,
double const& separation,
double const& overlap,
double const& longLength);
MergeClusterAlg(fhicl::ParameterSet const &pset)
Encapsulate the construction of a single cyostat.
std::map< int, int > trueClusterMap
art::ServiceHandle< art::TFileService > tfs
Declaration of signal hit object.
int MergeClusters(std::vector< art::PtrVector< recob::Hit > > const &planeClusters, std::vector< art::PtrVector< recob::Hit > > &clusters)
Cluster finding and building.
TVector2 HitCoordinates(art::Ptr< recob::Hit > const &hit)
void reconfigure(fhicl::ParameterSet const &p)
double FindProjectedWidth(TVector2 const ¢re1, TVector2 const &start1, TVector2 const &end1, TVector2 const ¢re2, TVector2 const &start2, TVector2 const &end2)
void FindClusterEndPoints(art::PtrVector< recob::Hit > const &cluster, TVector2 const ¢re, TVector2 const &direction, TVector2 &start, TVector2 &end)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
double FindMinSeparation(art::PtrVector< recob::Hit > const &cluster1, art::PtrVector< recob::Hit > const &cluster2)
double fProjWidthThreshold
Declaration of cluster object.
Provides recob::Track data product.
double FindCrossingDistance(TVector2 const &direction1, TVector2 const ¢re1, TVector2 const &direction2, TVector2 const ¢re2)
Detector simulation of raw signals on wires.
Encapsulate the geometry of a wire.
Utility object to perform functions of association.
Encapsulate the construction of a single detector plane.
double GlobalWire(geo::WireID const &wireID)
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
double FindClusterOverlap(TVector2 const &direction, TVector2 const ¢re, TVector2 const &start1, TVector2 const &end1, TVector2 const &start2, TVector2 const &end2)
unsigned int fMinMergeClusterSize
art framework interface to geometry description
double fMaxMergeSeparation
bool PassCuts(double const &angle, double const &crossingDistance, double const &projectedWidth, double const &separation, double const &overlap, double const &longLength)
Encapsulate the construction of a single detector plane.
art::ServiceHandle< geo::Geometry > fGeom