#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 |
void | getEventSetupPerAlgorithm (const edm::EventSetup &es) 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 KDTreeNodeInfo< Hexel > | KDNode |
typedef KDTreeLinkerAlgo< Hexel > | 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< 2 > &, 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 | |
Public Attributes inherited from HGCalClusteringAlgoBase | |
unsigned int | firstLayerBH_ |
unsigned int | lastLayerEE_ |
unsigned int | lastLayerFH_ |
unsigned int | maxlayer_ |
int | scintMaxIphi_ |
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 216 of file HGCalImagingAlgo.h.
|
private |
Definition at line 215 of file HGCalImagingAlgo.h.
point in the space
Definition at line 115 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 33 of file HGCalImagingAlgo.h.
|
inlineoverride |
Definition at line 52 of file HGCalImagingAlgo.h.
References getClusters(), getEventSetupPerAlgorithm(), hfClusterShapes_cfi::hits, makeClusters(), and populate().
|
private |
Definition at line 291 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, dqmiolumiharvest::j, hgcal_clustering::sorted_indices(), mathSSE::sqrt(), and createJobs::tmp.
Referenced by distance().
|
private |
Definition at line 522 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance().
|
private |
Definition at line 262 of file HGCalImagingAlgo.cc.
References data, HLT_2018_cff::distance, newFWLiteAna::found, mps_fire::i, dqmiolumiharvest::j, SiStripPI::max, and KDTreeLinkerAlgo< DATA, DIM >::search().
Referenced by distance().
|
private |
Definition at line 196 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, training_settings::idx, dqm-mbProfile::log, and SiStripPI::max.
Referenced by distance().
|
private |
Definition at line 507 of file HGCalImagingAlgo.cc.
References mps_fire::i, mps_fire::result, and mps_merge::weight.
Referenced by distance().
void HGCalImagingAlgo::computeThreshold | ( | ) |
Definition at line 628 of file HGCalImagingAlgo.cc.
Referenced by reset().
Definition at line 239 of file HGCalImagingAlgo.h.
References calculateDistanceToHigher(), calculateEnergyWithFraction(), calculateLocalDensity(), calculatePosition(), calculatePositionWithFraction(), distance2(), findAndAssignClusters(), findLocalMaximaInCluster(), setDensity(), shareEnergy(), and mathSSE::sqrt().
Definition at line 234 of file HGCalImagingAlgo.h.
References PVValHelper::dx, PVValHelper::dy, HGCalImagingAlgo::Hexel::x, and HGCalImagingAlgo::Hexel::y.
Referenced by distance().
|
inlinestatic |
Definition at line 85 of file HGCalImagingAlgo.h.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 344 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), gather_cfg::cout, data, HLT_2018_cff::distance, newFWLiteAna::found, mps_fire::i, dqmiolumiharvest::j, KDTreeLinkerAlgo< DATA, DIM >::search(), and hgcal_clustering::sorted_indices().
Referenced by distance().
|
private |
Definition at line 479 of file HGCalImagingAlgo.cc.
References data, HLT_2018_cff::distance, MillePedeFileConverter_cfg::e, mps_fire::i, dqmiolumiharvest::j, mps_fire::result, and SurveyInfoScenario_cff::seed.
Referenced by distance().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 119 of file HGCalImagingAlgo.cc.
References AlignmentPI::calculatePosition(), gather_cfg::cout, data, reco::CaloID::DET_HGCAL_ENDCAP, MillePedeFileConverter_cfg::e, HCALHighEnergyHPDFilter_cfi::energy, HLT_2018_cff::fraction, mps_fire::i, hgcal_clustering::max_index(), and position.
Referenced by ~HGCalImagingAlgo().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 668 of file HGCalImagingAlgo.cc.
Referenced by reset().
|
overridevirtual |
Reimplemented from HGCalClusteringAlgoBase.
Definition at line 17 of file HGCalImagingAlgo.cc.
Referenced by ~HGCalImagingAlgo().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 93 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~HGCalImagingAlgo().
|
overridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 26 of file HGCalImagingAlgo.cc.
References CaloRecHit::detid(), CaloRecHit::energy(), mps_fire::i, createfilelist::int, SiStripPI::max, min(), position, edm::SortedCollection< T, SORT >::size(), and Calorimetry_cff::thickness.
Referenced by ~HGCalImagingAlgo().
|
inlineoverridevirtual |
Implements HGCalClusteringAlgoBase.
Definition at line 66 of file HGCalImagingAlgo.h.
References clusters_v_, computeThreshold(), getDensity(), mps_fire::i, layerClustersPerLayer_, maxpos_, minpos_, points_, and edm::swap().
|
private |
Definition at line 660 of file HGCalImagingAlgo.cc.
References mps_fire::i.
Referenced by distance().
|
private |
Definition at line 531 of file HGCalImagingAlgo.cc.
References data, change_name::diff, MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, cropTnPTrees::frac, HLT_2018_cff::fraction, mps_fire::i, dqmiolumiharvest::j, SiStripPI::max, HLT_2018_cff::minFracTot, eostools::move(), perp2(), funct::pow(), mathSSE::sqrt(), HLT_2018_cff::stoppingTolerance, HGCalImagingAlgo::Hexel::x, HGCalImagingAlgo::Hexel::y, and HGCalImagingAlgo::Hexel::z.
Referenced by distance().
|
inlineprivate |
Definition at line 220 of file HGCalImagingAlgo.h.
References begin, end, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, training_settings::idx, and findQualityFiles::v.
|
private |
Definition at line 133 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 140 of file HGCalImagingAlgo.h.
|
private |
Definition at line 136 of file HGCalImagingAlgo.h.
|
private |
Definition at line 139 of file HGCalImagingAlgo.h.
|
private |
Definition at line 127 of file HGCalImagingAlgo.h.
|
private |
Definition at line 143 of file HGCalImagingAlgo.h.
|
private |
Definition at line 142 of file HGCalImagingAlgo.h.
|
private |
Definition at line 150 of file HGCalImagingAlgo.h.
|
private |
Definition at line 124 of file HGCalImagingAlgo.h.
|
private |
Definition at line 218 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 231 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 230 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 145 of file HGCalImagingAlgo.h.
|
private |
Definition at line 144 of file HGCalImagingAlgo.h.
|
private |
Definition at line 227 of file HGCalImagingAlgo.h.
Referenced by reset().
|
private |
Definition at line 120 of file HGCalImagingAlgo.h.
|
private |
Definition at line 130 of file HGCalImagingAlgo.h.
|
private |
Definition at line 147 of file HGCalImagingAlgo.h.
|
private |
Definition at line 141 of file HGCalImagingAlgo.h.
|
private |
Definition at line 146 of file HGCalImagingAlgo.h.
|
private |
Definition at line 119 of file HGCalImagingAlgo.h.
|
private |
Definition at line 123 of file HGCalImagingAlgo.h.