#include <HGCalImagingAlgo.h>
Classes | |
struct | Hexel |
Public Types | |
typedef math::XYZPoint | Point |
point in the space More... | |
enum | VerbosityLevel { pDEBUG = 0, pWARNING = 1, pINFO = 2, pERROR = 3 } |
Public Member Functions | |
void | computeThreshold () |
std::vector< reco::BasicCluster > | getClusters (bool) |
void | getEventSetup (const edm::EventSetup &es) |
HGCalImagingAlgo () | |
HGCalImagingAlgo (const std::vector< double > &vecDeltas_in, double kappa_in, double ecut_in, reco::CaloCluster::AlgoId algoId_in, bool dependSensor_in, const std::vector< double > &dEdXweights_in, const std::vector< double > &thicknessCorrection_in, const std::vector< double > &fcPerMip_in, double fcPerEle_in, const std::vector< double > &nonAgedNoises_in, double noiseMip_in, VerbosityLevel the_verbosity=pERROR) | |
HGCalImagingAlgo (const std::vector< double > &vecDeltas_in, double kappa_in, double ecut_in, double showerSigma, reco::CaloCluster::AlgoId algoId_in, bool dependSensor_in, const std::vector< double > &dEdXweights_in, const std::vector< double > &thicknessCorrection_in, const std::vector< double > &fcPerMip_in, double fcPerEle_in, const std::vector< double > &nonAgedNoises_in, double noiseMip_in, VerbosityLevel the_verbosity=pERROR) | |
void | makeClusters () |
void | populate (const HGCRecHitCollection &hits) |
void | reset () |
void | setVerbosity (VerbosityLevel the_verbosity) |
virtual | ~HGCalImagingAlgo () |
Static Public Attributes | |
static const unsigned int | maxlayer = 52 |
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 | 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 | |
reco::CaloCluster::AlgoId | algoId |
std::vector< reco::BasicCluster > | clusters_v |
std::vector< double > | dEdXweights |
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 |
hgcal::RecHitTools | rhtools_ |
double | sigma2 |
std::vector< double > | thicknessCorrection |
std::vector< std::vector< double > > | thresholds |
std::vector< std::vector< double > > | v_sigmaNoise |
std::vector< double > | vecDeltas |
VerbosityLevel | verbosity |
Static Private Attributes | |
static const unsigned int | lastLayerEE = 28 |
static const unsigned int | lastLayerFH = 40 |
Definition at line 44 of file HGCalImagingAlgo.h.
|
private |
Definition at line 252 of file HGCalImagingAlgo.h.
|
private |
Definition at line 251 of file HGCalImagingAlgo.h.
point in the space
Definition at line 157 of file HGCalImagingAlgo.h.
Enumerator | |
---|---|
pDEBUG | |
pWARNING | |
pINFO | |
pERROR |
Definition at line 50 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 52 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 58 of file HGCalImagingAlgo.h.
References maxlayer, and maxpos.
|
inline |
Definition at line 89 of file HGCalImagingAlgo.h.
References maxlayer, and maxpos.
|
inlinevirtual |
Definition at line 120 of file HGCalImagingAlgo.h.
|
private |
Definition at line 266 of file HGCalImagingAlgo.cc.
References data, distance2(), mps_fire::i, sorted_indices(), mathSSE::sqrt(), and tmp.
Referenced by distance(), and makeClusters().
|
private |
Definition at line 505 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance(), getClusters(), and shareEnergy().
|
private |
Definition at line 233 of file HGCalImagingAlgo.cc.
References data, distance(), runEdmFileComparison::found, mps_fire::i, lastLayerEE, lastLayerFH, SiStripPI::max, KDTreeLinkerAlgo< DATA, DIM >::search(), and vecDeltas.
Referenced by distance(), and makeClusters().
|
private |
Definition at line 191 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, x, y, and z.
Referenced by distance(), and getClusters().
|
private |
Definition at line 490 of file HGCalImagingAlgo.cc.
References mps_fire::i, mps_fire::result, mps_merge::weight, x, y, and z.
Referenced by distance(), getClusters(), and shareEnergy().
void HGCalImagingAlgo::computeThreshold | ( | ) |
Definition at line 614 of file HGCalImagingAlgo.cc.
References dEdXweights, ecut, fcPerEle, fcPerMip, initialized, lastLayerFH, maxlayer, noiseMip, nonAgedNoises, thicknessCorrection, thresholds, and v_sigmaNoise.
Referenced by populate(), and reset().
Definition at line 280 of file HGCalImagingAlgo.h.
References calculateDistanceToHigher(), calculateEnergyWithFraction(), calculateLocalDensity(), calculatePosition(), calculatePositionWithFraction(), distance2(), findAndAssignClusters(), findLocalMaximaInCluster(), shareEnergy(), and mathSSE::sqrt().
Referenced by calculateLocalDensity(), findAndAssignClusters(), and findLocalMaximaInCluster().
Definition at line 275 of file HGCalImagingAlgo.h.
References PVValHelper::dx, PVValHelper::dy, HGCalImagingAlgo::Hexel::x, and HGCalImagingAlgo::Hexel::y.
Referenced by calculateDistanceToHigher(), and distance().
|
private |
Definition at line 317 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), gather_cfg::cout, data, dependSensor, distance(), runEdmFileComparison::found, mps_fire::i, kappa, lastLayerEE, lastLayerFH, pINFO, KDTreeLinkerAlgo< DATA, DIM >::search(), sort_by_delta(), sorted_indices(), vecDeltas, and verbosity.
Referenced by distance(), and makeClusters().
|
private |
Definition at line 462 of file HGCalImagingAlgo.cc.
References data, distance(), MillePedeFileConverter_cfg::e, mps_fire::i, mps_fire::result, and SurveyInfoScenario_cff::seed.
Referenced by distance(), and getClusters().
std::vector< reco::BasicCluster > HGCalImagingAlgo::getClusters | ( | bool | doSharing | ) |
Definition at line 112 of file HGCalImagingAlgo.cc.
References algoId, calculateEnergyWithFraction(), calculatePosition(), calculatePositionWithFraction(), clusters_v, gather_cfg::cout, data, reco::CaloID::DET_HGCAL_ENDCAP, MillePedeFileConverter_cfg::e, findLocalMaximaInCluster(), dedxEstimators_cff::fraction, mps_fire::i, layerClustersPerLayer, pINFO, position, shareEnergy(), and verbosity.
Referenced by setVerbosity().
|
inline |
Definition at line 136 of file HGCalImagingAlgo.h.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
void HGCalImagingAlgo::makeClusters | ( | ) |
Definition at line 86 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), calculateDistanceToHigher(), calculateLocalDensity(), findAndAssignClusters(), mps_fire::i, layerClustersPerLayer, maxlayer, maxpos, minpos, and points.
Referenced by setVerbosity().
void HGCalImagingAlgo::populate | ( | const HGCRecHitCollection & | hits | ) |
Definition at line 15 of file HGCalImagingAlgo.cc.
References computeThreshold(), dependSensor, CaloRecHit::detid(), ecut, CaloRecHit::energy(), hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getPosition(), hgcal::RecHitTools::getSiThickIndex(), hgcal::RecHitTools::getSiThickness(), mps_fire::i, createfilelist::int, hgcal::RecHitTools::isHalfCell(), lastLayerFH, SiStripPI::max, maxlayer, maxpos, min(), minpos, points, position, rhtools_, edm::SortedCollection< T, SORT >::size(), thresholds, v_sigmaNoise, and hgcal::RecHitTools::zside().
Referenced by setVerbosity().
|
inline |
Definition at line 140 of file HGCalImagingAlgo.h.
References clusters_v, computeThreshold(), mps_fire::i, layerClustersPerLayer, maxpos, minpos, points, and edm::swap().
|
inline |
Definition at line 124 of file HGCalImagingAlgo.h.
References getClusters(), hfClusterShapes_cfi::hits, makeClusters(), populate(), and verbosity.
|
private |
Definition at line 514 of file HGCalImagingAlgo.cc.
References calculateEnergyWithFraction(), calculatePositionWithFraction(), data, diffTreeTool::diff, MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, cropTnPTrees::frac, dedxEstimators_cff::fraction, mps_fire::i, SiStripPI::max, particleFlowClusterECALUncorrected_cfi::minFracTot, eostools::move(), perp2(), funct::pow(), sigma2, mathSSE::sqrt(), particleFlowClusterECALUncorrected_cfi::stoppingTolerance, HGCalImagingAlgo::Hexel::x, HGCalImagingAlgo::Hexel::y, and HGCalImagingAlgo::Hexel::z.
Referenced by distance(), and getClusters().
|
inlineprivate |
Definition at line 257 of file HGCalImagingAlgo.h.
References begin, end, training_settings::idx, and findQualityFiles::v.
Referenced by findAndAssignClusters().
|
private |
Definition at line 184 of file HGCalImagingAlgo.h.
Referenced by getClusters().
|
private |
Definition at line 179 of file HGCalImagingAlgo.h.
Referenced by getClusters(), and reset().
|
private |
Definition at line 188 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 187 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), and populate().
|
private |
Definition at line 173 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 191 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 190 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 201 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 170 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters().
|
staticprivate |
Definition at line 165 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), and findAndAssignClusters().
|
staticprivate |
Definition at line 166 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), computeThreshold(), findAndAssignClusters(), and populate().
|
private |
Definition at line 255 of file HGCalImagingAlgo.h.
Referenced by getClusters(), makeClusters(), and reset().
|
static |
Definition at line 160 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), hgcal::EGammaPCAHelper::energyPerLayer(), hgcal::EGammaPCAHelper::findZFirstLayer(), HGCalImagingAlgo(), makeClusters(), and populate().
|
private |
Definition at line 271 of file HGCalImagingAlgo.h.
Referenced by HGCalImagingAlgo(), makeClusters(), populate(), and reset().
|
private |
Definition at line 270 of file HGCalImagingAlgo.h.
Referenced by makeClusters(), populate(), and reset().
|
private |
Definition at line 193 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 192 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 267 of file HGCalImagingAlgo.h.
Referenced by makeClusters(), populate(), and reset().
|
private |
Definition at line 181 of file HGCalImagingAlgo.h.
Referenced by getEventSetup(), and populate().
|
private |
Definition at line 176 of file HGCalImagingAlgo.h.
Referenced by shareEnergy().
|
private |
Definition at line 189 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 194 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 195 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 169 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), and findAndAssignClusters().
|
private |
Definition at line 198 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), getClusters(), and setVerbosity().