1 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalClusteringAlgoBase_h 2 #define RecoLocalCalo_HGCalRecProducers_HGCalClusteringAlgoBase_h 21 std::vector<size_t>
idx(v.size());
25 std::sort(
idx.begin(),
idx.end(),
26 [&
v](
size_t i1,
size_t i2) {
37 std::vector<size_t>
idx(v.size(),0);
41 auto maxidx = std::max_element(
idx.begin(),
idx.end(), [&
v](
size_t i1,
size_t i2) {
return v[i1].data.rho < v[i2].data.rho;});
60 : verbosity_(v), algoId_(algo) {};
64 virtual void makeClusters() = 0;
65 virtual std::vector<reco::BasicCluster> getClusters(
bool) = 0;
66 virtual void reset() = 0;
70 rhtools_.getEventSetup(es);
73 verbosity_ = the_verbosity;
78 static const unsigned int maxlayer = 52;
80 static const unsigned int lastLayerEE = 28;
81 static const unsigned int lastLayerFH = 40;
std::map< DetId, float > Density
std::vector< reco::BasicCluster > clusters_v_
VerbosityLevel verbosity_
void setVerbosity(VerbosityLevel the_verbosity)
HGCalClusteringAlgoBase(VerbosityLevel v, reco::CaloCluster::AlgoId algo)
hgcal::RecHitTools rhtools_
std::vector< size_t > sorted_indices(const std::vector< T > &v)
reco::CaloCluster::AlgoId algoId_
void getEventSetup(const edm::EventSetup &es)
virtual ~HGCalClusteringAlgoBase()
size_t max_index(const std::vector< T > &v)
void setAlgoId(reco::CaloCluster::AlgoId algo)
void reset(double vett[256])