14 #include "CoreUtils/ServiceUtil.h" 24 fGeo = gar::providerFrom<geo::GeometryGAr>();
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) );
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
T get(std::string const &key) const
void PrepareAlgo(const std::vector< art::Ptr< gar::rec::Track > > &trkVector, const std::vector< art::Ptr< gar::rec::CaloHit > > &hitVector, std::unordered_map< const gar::rec::Track *, art::Ptr< gar::rec::Track > > &trkMaptoArtPtr, std::unordered_map< const gar::rec::CaloHit *, art::Ptr< gar::rec::CaloHit > > &hitMaptoArtPtr)
KNNClusterAlg(fhicl::ParameterSet const &pset)
Detector simulation of raw signals on wires.
float GetECALEndcapStartX() const
General GArSoft Utilities.
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
void reconfigure(fhicl::ParameterSet const &pset)
art framework interface to geometry description
std::string fClusterAlgName