#include <KNNClusterAlg.h>
Definition at line 40 of file KNNClusterAlg.h.
Definition at line 22 of file KNNClusterAlg.cxx.
24 fGeo = gar::providerFrom<geo::GeometryGAr>();
gar::geo::GeometryCore const * fGeo
geometry information
void reconfigure(fhicl::ParameterSet const &pset)
gar::rec::alg::KNNClusterAlg::~KNNClusterAlg |
( |
| ) |
|
|
virtual |
void gar::rec::alg::KNNClusterAlg::ClearLists |
( |
| ) |
|
|
private |
void gar::rec::alg::KNNClusterAlg::DoClustering |
( |
| ) |
|
Definition at line 84 of file KNNClusterAlg.cxx.
86 GenericHitVec< gar::rec::CaloHit >
h;
88 GenericClusterVec< gar::rec::CaloHit >
cl;
92 XIndex< gar::rec::CaloHit, 280 > xIndex( -350 , 350. );
107 cluster( h.begin() , h.end() , std::back_inserter( cl ) , &
dist ) ;
110 <<
" Passing " << h.size() <<
" of " << nHit
111 <<
" hits to clustering (E_cut: " <<
m_EnergyCut <<
") " 112 <<
" found " << cl.size() <<
" clusters ";
115 std::transform( cl.begin(), cl.end(), std::back_inserter(
clusterVector ), converter ) ;
void cluster(In first, In last, Out result, Pred *pred)
void addToGenericHitVec(GenericHitVec< T > &v, CaloHitVec vec, Pred pred)
gar::geo::GeometryCore const * fGeo
geometry information
float GetECALEndcapStartX() const
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
ClusterVec gar::rec::alg::KNNClusterAlg::GetFoundClusters |
( |
| ) |
const |
|
inline |
Definition at line 56 of file KNNClusterAlg.cxx.
66 m_TrackVec.push_back( const_cast<gar::rec::Track *>(track) );
68 trkMaptoArtPtr.insert( std::make_pair(track, trkPtr) );
75 m_CaloHitVec.push_back( const_cast<gar::rec::CaloHit *>(hit) );
77 hitMaptoArtPtr.insert( std::make_pair(hit, hitPtr) );
Detector simulation of raw signals on wires.
bool gar::rec::alg::KNNClusterAlg::usesTracks |
( |
| ) |
|
|
inline |
ClusterVec gar::rec::alg::KNNClusterAlg::clusterVector |
|
private |
std::string gar::rec::alg::KNNClusterAlg::fClusterAlgName |
|
private |
CaloHitVec gar::rec::alg::KNNClusterAlg::m_CaloHitVec |
|
private |
float gar::rec::alg::KNNClusterAlg::m_DistanceCut |
|
private |
float gar::rec::alg::KNNClusterAlg::m_EnergyCut |
|
private |
TrackVec gar::rec::alg::KNNClusterAlg::m_TrackVec |
|
private |
The documentation for this class was generated from the following files: