19 #ifndef CLUSTERING_ALGORITHM_NEIGHBOR_H 20 #define CLUSTERING_ALGORITHM_NEIGHBOR_H 34 template<
typename T >
51 const std::vector< T > &
input)
const override;
55 void addNeighbors( std::vector< T >& cluster,
const std::vector< T >& input,
unsigned int start, std::vector<bool> &masked )
const;
69 const std::vector< Ref_Phase2TrackerDigi_ > &
input )
const;
79 const std::vector< Ref_Phase2TrackerDigi_ >&
input,
80 unsigned int startVal,
81 std::vector< bool >& used)
const;
96 template<
typename T >
106 setWhatProduced(
this );
118 return std::unique_ptr< TTClusterAlgorithm< T > >( TTClusterAlgo );
bool isANeighbor(const T ¢er, const T &mayNeigh) const
Needed for neighbours.
std::unique_ptr< TTClusterAlgorithm< T > > produce(const TTClusterAlgorithmRecord &record)
Implement the producer.
ES_TTClusterAlgorithm_neighbor(const edm::ParameterSet &p)
Data members.
static std::string const input
void addNeighbors(std::vector< T > &cluster, const std::vector< T > &input, unsigned int start, std::vector< bool > &masked) const
Class to declare the algorithm to the framework.
Base class for any algorithm to be used in TTClusterBuilder.
void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input) const override
Clustering operations.
TTClusterAlgorithm_neighbor()
Constructor.
~ES_TTClusterAlgorithm_neighbor() override
Destructor.
~TTClusterAlgorithm_neighbor() override
Destructor.
Class for "neighbor" algorithm to be used in TTClusterBuilder.
Class to store the TTClusterAlgorithm used in TTClusterBuilder.