|
|
Go to the documentation of this file. 1 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h
2 #define RecoLocalCalo_HGCalRecProducers_HGCalCLUEAlgo_h
29 template <
typename TILE>
40 kappa_(ps.getParameter<double>(
"kappa")),
41 ecut_(ps.getParameter<double>(
"ecut")),
49 fcPerEle_(ps.getParameter<double>(
"fcPerEle")),
67 std::vector<reco::BasicCluster>
getClusters(
bool)
override;
78 cells.shrink_to_fit();
88 iDesc.
add<std::vector<double>>(
"thresholdW0", {2.9, 2.9, 2.9});
89 iDesc.
add<
double>(
"positionDeltaRho2", 1.69);
90 iDesc.
add<std::vector<double>>(
"deltac",
97 iDesc.
add<
bool>(
"dependSensor",
true);
98 iDesc.
add<
double>(
"ecut", 3.0);
99 iDesc.
add<
double>(
"kappa", 9.0);
101 iDesc.
add<std::vector<double>>(
"dEdXweights", {});
102 iDesc.
add<std::vector<double>>(
"thicknessCorrection", {});
103 iDesc.
add<
double>(
"sciThicknessCorrection", 0.9);
104 iDesc.
add<
int>(
"deltasi_index_regemfac", 3);
105 iDesc.
add<
unsigned>(
"maxNumberOfThickIndices", 6);
106 iDesc.
add<std::vector<double>>(
"fcPerMip", {});
107 iDesc.
add<
double>(
"fcPerEle", 0.0);
108 iDesc.
add<std::vector<double>>(
"noises", {});
110 descNestedNoiseMIP.
add<
bool>(
"scaleByDose",
false);
111 descNestedNoiseMIP.add<
unsigned int>(
"scaleByDoseAlgo", 0);
112 descNestedNoiseMIP.add<
double>(
"scaleByDoseFactor", 1.);
113 descNestedNoiseMIP.add<
std::string>(
"doseMap",
"");
114 descNestedNoiseMIP.add<
double>(
"noise_MIP", 1. / 100.);
116 iDesc.
add<
bool>(
"use2x2",
true);
162 std::vector<float>
x;
163 std::vector<float>
y;
195 detid.shrink_to_fit();
196 isSi.shrink_to_fit();
203 delta.shrink_to_fit();
220 return (deta * deta + dphi * dphi);
234 const unsigned int layerId,
std::vector< double > vecDeltas_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
HGCalCLUEAlgoT(const edm::ParameterSet &ps, edm::ConsumesCollector iC)
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_
const caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple cms::cuda::AtomicPairCounter const GPUCACell *__restrict__ cells
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
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