|
|
Go to the documentation of this file. 1 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalImagingAlgo_h
2 #define RecoLocalCalo_HGCalRecProducers_HGCalImagingAlgo_h
40 kappa_(ps.getParameter<double>(
"kappa")),
41 ecut_(ps.getParameter<double>(
"ecut")),
46 fcPerMip_(ps.getParameter<
std::vector<double>>(
"fcPerMip")),
47 fcPerEle_(ps.getParameter<double>(
"fcPerEle")),
63 std::vector<reco::BasicCluster>
getClusters(
bool)
override;
71 std::vector<KDNode>().swap(it);
73 for (
unsigned int i = 0;
i <
minpos_.size();
i++) {
86 iDesc.
add<std::vector<double>>(
"thresholdW0", {2.9, 2.9, 2.9});
87 iDesc.
add<std::vector<double>>(
"positionDeltaRho_c", {1.3, 1.3, 1.3});
88 iDesc.
add<std::vector<double>>(
"deltac",
94 iDesc.
add<
bool>(
"dependSensor",
true);
95 iDesc.
add<
double>(
"ecut", 3.0);
96 iDesc.
add<
double>(
"kappa", 9.0);
98 iDesc.
add<std::vector<double>>(
"dEdXweights", {});
99 iDesc.
add<std::vector<double>>(
"thicknessCorrection", {});
100 iDesc.
add<std::vector<double>>(
"fcPerMip", {});
101 iDesc.
add<
double>(
"fcPerEle", 0.0);
103 descNestedNoises.
add<std::vector<double>>(
"values", {});
106 descNestedNoiseMIP.
add<
bool>(
"scaleByDose",
false);
110 descNestedNoiseMIP.
add<
double>(
"noise_MIP", 1. / 100.);
221 std::vector<size_t>
idx(
v.size());
223 sort(
idx.begin(),
idx.end(), [&
v](
size_t i1,
size_t i2) {
return v[
i1].data.delta >
v[
i2].data.delta; });
249 std::vector<std::vector<KDNode>> &)
const;
253 void setDensity(
const std::vector<KDNode> &nd);
260 void shareEnergy(
const std::vector<KDNode> &,
const std::vector<unsigned> &, std::vector<std::vector<double>> &);
std::vector< std::vector< double > > thresholds_
double calculateEnergyWithFraction(const std::vector< KDNode > &, const std::vector< double > &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< double > fcPerMip_
Hexel(const HGCRecHit &hit, DetId id_in, bool isHalf, float sigmaNoise_in, float thickness_in, const hgcal::RecHitTools *tools_in)
std::vector< std::array< float, 2 > > minpos_
math::XYZPoint Point
point in the space
std::vector< unsigned > findLocalMaximaInCluster(const std::vector< KDNode > &)
std::vector< reco::BasicCluster > getClusters(bool) override
std::vector< double > thicknessCorrection_
std::vector< double > positionDeltaRho_c_
std::vector< reco::BasicCluster > clusters_v_
double distance2(const Hexel &pt1, const Hexel &pt2) const
void getEventSetupPerAlgorithm(const edm::EventSetup &es) override
math::XYZPoint calculatePositionWithFraction(const std::vector< KDNode > &, const std::vector< double > &)
std::map< DetId, float > Density
KDTreeNodeInfo< Hexel > KDNode
std::vector< std::vector< double > > sigmaNoise_
std::vector< std::array< float, 2 > > maxpos_
std::vector< double > thresholdW0_
void makeClusters() override
double distance(const Hexel &pt1, const Hexel &pt2) const
bool operator>(const Hexel &rhs) const
std::vector< size_t > sort_by_delta(const std::vector< KDNode > &v) const
int findAndAssignClusters(std::vector< KDNode > &, KDTree &, double, KDTreeBox< 2 > &, const unsigned int, std::vector< std::vector< KDNode >> &) const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::vector< std::vector< KDNode > > points_
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< double > vecDeltas_
std::vector< double > dEdXweights_
double calculateDistanceToHigher(std::vector< KDNode > &) const
Density getDensity() override
static int position[264][3]
void setDensity(const std::vector< KDNode > &nd)
~HGCalImagingAlgo() override
double calculateLocalDensity(std::vector< KDNode > &, KDTree &, const unsigned int) const
std::vector< std::vector< std::vector< KDNode > > > layerClustersPerLayer_
const hgcal::RecHitTools * tools
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
void shareEnergy(const std::vector< KDNode > &, const std::vector< unsigned > &, std::vector< std::vector< double >> &)
std::vector< double > nonAgedNoises_
math::XYZPoint calculatePosition(std::vector< KDNode > &) const
HGCalImagingAlgo(const edm::ParameterSet &ps)
KDTreeLinkerAlgo< Hexel > KDTree
hgcal_clustering::Density Density
void populate(const HGCRecHitCollection &hits) override