|
|
Go to the documentation of this file. 1 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h
2 #define RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h
29 template <
typename TILE>
39 kappa_(ps.getParameter<double>(
"kappa")),
40 ecut_(ps.getParameter<double>(
"ecut")),
48 fcPerEle_(ps.getParameter<double>(
"fcPerEle")),
66 std::vector<reco::BasicCluster>
getClusters(
bool)
override;
77 cells.shrink_to_fit();
87 iDesc.
add<std::vector<double>>(
"thresholdW0", {2.9, 2.9, 2.9});
88 iDesc.
add<
double>(
"positionDeltaRho2", 1.69);
89 iDesc.
add<std::vector<double>>(
"deltac",
96 iDesc.
add<
bool>(
"dependSensor",
true);
97 iDesc.
add<
double>(
"ecut", 3.0);
98 iDesc.
add<
double>(
"kappa", 9.0);
100 iDesc.
add<std::vector<double>>(
"dEdXweights", {});
101 iDesc.
add<std::vector<double>>(
"thicknessCorrection", {});
102 iDesc.
add<
double>(
"sciThicknessCorrection", 0.9);
103 iDesc.
add<
int>(
"deltasi_index_regemfac", 3);
104 iDesc.
add<
unsigned>(
"maxNumberOfThickIndices", 6);
105 iDesc.
add<std::vector<double>>(
"fcPerMip", {});
106 iDesc.
add<
double>(
"fcPerEle", 0.0);
107 iDesc.
add<std::vector<double>>(
"noises", {});
109 descNestedNoiseMIP.
add<
bool>(
"scaleByDose",
false);
110 descNestedNoiseMIP.add<
unsigned int>(
"scaleByDoseAlgo", 0);
111 descNestedNoiseMIP.add<
double>(
"scaleByDoseFactor", 1.);
112 descNestedNoiseMIP.add<
std::string>(
"doseMap",
"");
113 descNestedNoiseMIP.add<
double>(
"noise_MIP", 1. / 100.);
115 iDesc.
add<
bool>(
"use2x2",
true);
161 std::vector<float>
x;
162 std::vector<float>
y;
194 detid.shrink_to_fit();
195 isSi.shrink_to_fit();
202 delta.shrink_to_fit();
219 return (deta * deta + dphi * dphi);
233 const unsigned int layerId,
std::vector< double > vecDeltas_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
int findAndAssignClusters(const unsigned int layerId, float delta_c, float delta_r)
void calculateLocalDensity(const TILE <, const unsigned int layerId, float delta_c, float delta_r)
constexpr double deltaPhi(double phi1, double phi2)
double delta_r(const Fourvec &a, const Fourvec &b)
Find the distance between two four-vectors in the two-dimensional space .
float outlierDeltaFactor_
std::vector< std::vector< double > > thresholds_
void getEventSetupPerAlgorithm(const edm::EventSetup &es) override
std::vector< double > thicknessCorrection_
std::vector< double > thresholdW0_
const double positionDeltaRho2_
math::XYZPoint Point
point in the space
void makeClusters() override
std::vector< CellsOnLayer > cells_
std::vector< std::vector< double > > v_sigmaNoise_
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
std::vector< reco::BasicCluster > clusters_v_
std::vector< reco::BasicCluster > getClusters(bool) override
void populate(const HGCRecHitCollection &hits) override
std::map< DetId, float > Density
std::vector< bool > isSeed
void prepareDataStructures(const unsigned int layerId)
unsigned maxNumberOfThickIndices_
double sciThicknessCorrection_
int deltasi_index_regemfac_
Density getDensity() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< double > fcPerMip_
std::vector< DetId > detid
HGCalCLUEAlgoT(const edm::ParameterSet &ps)
std::vector< std::vector< int > > followers
std::vector< int > nearestHigher
void setDensity(const unsigned int layerId)
float distance(int cell1, int cell2, int layerId, bool isEtaPhi) const
std::vector< int > clusterIndex
math::XYZPoint calculatePosition(const std::vector< int > &v, const unsigned int layerId) const
std::vector< double > nonAgedNoises_
float distance2(int cell1, int cell2, int layerId, bool isEtaPhi) const
void calculateDistanceToHigher(const TILE <, const unsigned int layerId, float delta_c, float delta_r)
std::vector< int > numberOfClustersPerLayer_
std::vector< float > delta
~HGCalCLUEAlgoT() override
std::vector< double > dEdXweights_
hgcal_clustering::Density Density
std::vector< float > weight
std::vector< float > sigmaNoise