#include <HGCalImagingAlgo.h>
Classes | |
struct | Hexel |
Public Types | |
typedef math::XYZPoint | Point |
point in the space More... | |
Public Types inherited from HGCalClusteringAlgoBase | |
enum | VerbosityLevel { pDEBUG = 0, pWARNING = 1, pINFO = 2, pERROR = 3 } |
Public Member Functions | |
void | computeThreshold () |
std::vector< reco::BasicCluster > | getClusters (bool) override |
Density | getDensity () override |
HGCalImagingAlgo (const edm::ParameterSet &ps) | |
void | makeClusters () override |
void | populate (const HGCRecHitCollection &hits) override |
void | reset () override |
~HGCalImagingAlgo () override | |
Public Member Functions inherited from HGCalClusteringAlgoBase | |
void | getEventSetup (const edm::EventSetup &es) |
HGCalClusteringAlgoBase (VerbosityLevel v, reco::CaloCluster::AlgoId algo) | |
void | setAlgoId (reco::CaloCluster::AlgoId algo) |
void | setVerbosity (VerbosityLevel the_verbosity) |
virtual | ~HGCalClusteringAlgoBase () |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &iDesc) |
Private Types | |
typedef KDTreeNodeInfoT< Hexel, 2 > | KDNode |
typedef KDTreeLinkerAlgo< Hexel, 2 > | KDTree |
Private Member Functions | |
double | calculateDistanceToHigher (std::vector< KDNode > &) const |
double | calculateEnergyWithFraction (const std::vector< KDNode > &, const std::vector< double > &) |
double | calculateLocalDensity (std::vector< KDNode > &, KDTree &, const unsigned int) const |
math::XYZPoint | calculatePosition (std::vector< KDNode > &) const |
math::XYZPoint | calculatePositionWithFraction (const std::vector< KDNode > &, const std::vector< double > &) |
double | distance (const Hexel &pt1, const Hexel &pt2) const |
double | distance2 (const Hexel &pt1, const Hexel &pt2) const |
int | findAndAssignClusters (std::vector< KDNode > &, KDTree &, double, KDTreeBox &, const unsigned int, std::vector< std::vector< KDNode > > &) const |
std::vector< unsigned > | findLocalMaximaInCluster (const std::vector< KDNode > &) |
void | setDensity (const std::vector< KDNode > &nd) |
void | shareEnergy (const std::vector< KDNode > &, const std::vector< unsigned > &, std::vector< std::vector< double > > &) |
std::vector< size_t > | sort_by_delta (const std::vector< KDNode > &v) const |
Private Attributes | |
std::vector< reco::BasicCluster > | clusters_v_ |
std::vector< double > | dEdXweights_ |
Density | density_ |
bool | dependSensor_ |
double | ecut_ |
double | fcPerEle_ |
std::vector< double > | fcPerMip_ |
bool | initialized_ |
double | kappa_ |
std::vector< std::vector< std::vector< KDNode > > > | layerClustersPerLayer_ |
std::vector< std::array< float, 2 > > | maxpos_ |
std::vector< std::array< float, 2 > > | minpos_ |
double | noiseMip_ |
std::vector< double > | nonAgedNoises_ |
std::vector< std::vector< KDNode > > | points_ |
std::vector< double > | positionDeltaRho_c_ |
double | sigma2_ |
std::vector< std::vector< double > > | sigmaNoise_ |
std::vector< double > | thicknessCorrection_ |
std::vector< std::vector< double > > | thresholds_ |
std::vector< double > | thresholdW0_ |
std::vector< double > | vecDeltas_ |
Additional Inherited Members | |
Static Public Attributes inherited from HGCalClusteringAlgoBase | |
static const unsigned int | lastLayerEE = 28 |
static const unsigned int | lastLayerFH = 40 |
static const unsigned int | maxlayer = 52 |
Protected Attributes inherited from HGCalClusteringAlgoBase | |
reco::CaloCluster::AlgoId | algoId_ |
std::vector< reco::BasicCluster > | clusters_v_ |
hgcal::RecHitTools | rhtools_ |
VerbosityLevel | verbosity_ |
Definition at line 31 of file HGCalImagingAlgo.h.
|
private |
Definition at line 209 of file HGCalImagingAlgo.h.
|
private |
Definition at line 208 of file HGCalImagingAlgo.h.
point in the space
Definition at line 122 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 35 of file HGCalImagingAlgo.h.
References HGCalClusteringAlgoBase::maxlayer, and maxpos_.
|
inlineoverride |
Definition at line 57 of file HGCalImagingAlgo.h.
References getClusters(), hfClusterShapes_cfi::hits, makeClusters(), and populate().
|
private |
Definition at line 299 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, hgcal_clustering::sorted_indices(), mathSSE::sqrt(), and tmp.
Referenced by distance().
|
private |
Definition at line 541 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance().
|
private |
Definition at line 266 of file HGCalImagingAlgo.cc.
References data, SoftLeptonByDistance_cfi::distance, runEdmFileComparison::found, mps_fire::i, SiStripPI::max, and KDTreeLinkerAlgo< DATA >::search().
Referenced by distance().
|
private |
Definition at line 198 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, training_settings::idx, cmsBatch::log, and SiStripPI::max.
Referenced by distance().
|
private |
Definition at line 526 of file HGCalImagingAlgo.cc.
References mps_fire::i, mps_fire::result, and mps_merge::weight.
Referenced by distance().
void HGCalImagingAlgo::computeThreshold | ( | ) |
Definition at line 650 of file HGCalImagingAlgo.cc.
Referenced by reset().
Definition at line 237 of file HGCalImagingAlgo.h.
References calculateDistanceToHigher(), calculateEnergyWithFraction(), calculateLocalDensity(), calculatePosition(), calculatePositionWithFraction(), distance2(), findAndAssignClusters(), findLocalMaximaInCluster(), setDensity(), shareEnergy(), and mathSSE::sqrt().
Definition at line 232 of file HGCalImagingAlgo.h.
References PVValHelper::dx, PVValHelper::dy, HGCalImagingAlgo::Hexel::x, and HGCalImagingAlgo::Hexel::y.
Referenced by distance().
|
inlinestatic |
Definition at line 89 of file HGCalImagingAlgo.h.
References edm::ParameterSetDescription::add(), and edm::ParameterSetDescription::addUntracked().
|
private |
Definition at line 353 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::clear(), gather_cfg::cout, data, SoftLeptonByDistance_cfi::distance, runEdmFileComparison::found, mps_fire::i, KDTreeLinkerAlgo< DATA >::search(), and hgcal_clustering::sorted_indices().
Referenced by distance().
|
private |
Definition at line 498 of file HGCalImagingAlgo.cc.
References data, SoftLeptonByDistance_cfi::distance, MillePedeFileConverter_cfg::e, mps_fire::i, mps_fire::result, and SurveyInfoScenario_cff::seed.
Referenced by distance().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 114 of file HGCalImagingAlgo.cc.
References AlignmentPI::calculatePosition(), gather_cfg::cout, data, reco::CaloID::DET_HGCAL_ENDCAP, MillePedeFileConverter_cfg::e, dedxEstimators_cff::fraction, mps_fire::i, hgcal_clustering::max_index(), and position.
Referenced by ~HGCalImagingAlgo().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 693 of file HGCalImagingAlgo.cc.
Referenced by reset().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 86 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA >::build(), mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~HGCalImagingAlgo().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 17 of file HGCalImagingAlgo.cc.
References CaloRecHit::detid(), CaloRecHit::energy(), mps_fire::i, createfilelist::int, SiStripPI::max, min(), position, and edm::SortedCollection< T, SORT >::size().
Referenced by ~HGCalImagingAlgo().
|
inlineoverridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 70 of file HGCalImagingAlgo.h.
References clusters_v_, computeThreshold(), getDensity(), mps_fire::i, layerClustersPerLayer_, maxpos_, minpos_, points_, and edm::swap().
|
private |
Definition at line 684 of file HGCalImagingAlgo.cc.
References mps_fire::i.
Referenced by distance().
|
private |
Definition at line 550 of file HGCalImagingAlgo.cc.
References data, diffTreeTool::diff, MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, DivergingColor::frac, dedxEstimators_cff::fraction, mps_fire::i, SiStripPI::max, particleFlowClusterECALUncorrected_cfi::minFracTot, eostools::move(), perp2(), funct::pow(), mathSSE::sqrt(), particleFlowClusterECALUncorrected_cfi::stoppingTolerance, HGCalImagingAlgo::Hexel::x, HGCalImagingAlgo::Hexel::y, and HGCalImagingAlgo::Hexel::z.
Referenced by distance().
|
inlineprivate |
Definition at line 214 of file HGCalImagingAlgo.h.
References begin, end, training_settings::idx, and findQualityFiles::v.
|
private |
Definition at line 141 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 148 of file HGCalImagingAlgo.h.
|
private |
Definition at line 144 of file HGCalImagingAlgo.h.
|
private |
Definition at line 147 of file HGCalImagingAlgo.h.
|
private |
Definition at line 135 of file HGCalImagingAlgo.h.
|
private |
Definition at line 151 of file HGCalImagingAlgo.h.
|
private |
Definition at line 150 of file HGCalImagingAlgo.h.
|
private |
Definition at line 158 of file HGCalImagingAlgo.h.
|
private |
Definition at line 132 of file HGCalImagingAlgo.h.
|
private |
Definition at line 212 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 228 of file HGCalImagingAlgo.h.
Referenced by HGCalImagingAlgo(), and reset().
|
private |
Definition at line 227 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 153 of file HGCalImagingAlgo.h.
|
private |
Definition at line 152 of file HGCalImagingAlgo.h.
|
private |
Definition at line 224 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 128 of file HGCalImagingAlgo.h.
|
private |
Definition at line 138 of file HGCalImagingAlgo.h.
|
private |
Definition at line 155 of file HGCalImagingAlgo.h.
|
private |
Definition at line 149 of file HGCalImagingAlgo.h.
|
private |
Definition at line 154 of file HGCalImagingAlgo.h.
|
private |
Definition at line 127 of file HGCalImagingAlgo.h.
|
private |
Definition at line 131 of file HGCalImagingAlgo.h.