1 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h 2 #define RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h 41 kappa_(ps.getParameter<double>(
"kappa")),
42 ecut_(ps.getParameter<double>(
"ecut")),
46 fcPerMip_(ps.getParameter<
std::vector<double> >(
"fcPerMip")),
47 fcPerEle_(ps.getParameter<double>(
"fcPerEle")),
64 std::vector<reco::BasicCluster>
getClusters(
bool)
override;
73 std::vector<KDNode>().
swap(it);
75 for (
unsigned int i = 0;
i <
minpos_.size();
i++) {
88 iDesc.
add<std::vector<double>>(
"thresholdW0", {
93 iDesc.
add<std::vector<double>>(
"positionDeltaRho_c", {
98 iDesc.
add<std::vector<double>>(
"deltac", {
103 iDesc.
add<
bool>(
"dependSensor",
true);
104 iDesc.
add<
double>(
"ecut", 3.0);
105 iDesc.
add<
double>(
"kappa", 9.0);
107 iDesc.
add<std::vector<double>>(
"dEdXweights",{});
108 iDesc.
add<std::vector<double>>(
"thicknessCorrection",{});
109 iDesc.
add<std::vector<double>>(
"fcPerMip",{});
110 iDesc.
add<
double>(
"fcPerEle",0.0);
112 descNestedNoises.
add<std::vector<double> >(
"values", {});
115 descNestedNoiseMIP.
add<
double>(
"value", 0 );
170 : isHalfCell(isHalf),
178 sigmaNoise(sigmaNoise_in),
179 thickness(thickness_in),
211 std::vector<size_t>
idx(v.size());
213 sort(
idx.begin(),
idx.end(),
214 [&
v](
size_t i1,
size_t i2) {
return v[i1].data.delta > v[i2].data.delta; });
227 const double dx = pt1.
x - pt2.
x;
228 const double dy = pt1.
y - pt2.
y;
229 return (dx * dx + dy * dy);
236 const unsigned int)
const;
239 const unsigned int, std::vector<std::vector<KDNode> > &)
const;
241 void setDensity(
const std::vector<KDNode> &nd);
constexpr float energy() const
std::vector< std::vector< std::vector< KDNode > > > layerClustersPerLayer_
std::vector< std::array< float, 2 > > minpos_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
int findAndAssignClusters(std::vector< KDNode > &, KDTree &, double, KDTreeBox &, const unsigned int, std::vector< std::vector< KDNode > > &) const
std::vector< std::vector< double > > v_sigmaNoise_
std::map< DetId, float > Density
std::vector< double > nonAgedNoises_
std::vector< double > thicknessCorrection_
void makeClusters() override
HGCalCLUEAlgo(const edm::ParameterSet &ps)
std::vector< reco::BasicCluster > clusters_v_
const hgcal::RecHitTools * tools
double calculateDistanceToHigher(std::vector< KDNode > &) const
std::vector< reco::BasicCluster > getClusters(bool) override
std::vector< double > thresholdW0_
std::vector< double > fcPerMip_
Density getDensity() override
void swap(Association< C > &lhs, Association< C > &rhs)
Hexel(const HGCRecHit &hit, DetId id_in, bool isHalf, float sigmaNoise_in, float thickness_in, const hgcal::RecHitTools *tools_in)
hgcal_clustering::Density Density
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
bool operator>(const Hexel &rhs) const
~HGCalCLUEAlgo() override
std::vector< double > dEdXweights_
std::vector< std::vector< KDNode > > points_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< size_t > sort_by_delta(const std::vector< KDNode > &v) const
void populate(const HGCRecHitCollection &hits) override
double calculateLocalDensity(std::vector< KDNode > &, KDTree &, const unsigned int) const
std::vector< double > vecDeltas_
XYZPointD XYZPoint
point in space with cartesian internal representation
double distance(const Hexel &pt1, const Hexel &pt2) const
static const unsigned int maxlayer
double distance2(const Hexel &pt1, const Hexel &pt2) const
std::vector< std::array< float, 2 > > maxpos_
static int position[264][3]
std::vector< double > positionDeltaRho_c_
KDTreeLinkerAlgo< Hexel, 2 > KDTree
math::XYZPoint calculatePosition(const std::vector< KDNode > &) const
math::XYZPoint Point
point in the space
std::vector< std::vector< double > > thresholds_
KDTreeNodeInfoT< Hexel, 2 > KDNode
void setDensity(const std::vector< KDNode > &nd)