#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 264 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 503 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance(), getClusters(), and shareEnergy().
|
private |
Definition at line 231 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 189 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, x, y, and z.
Referenced by distance(), and getClusters().
|
private |
Definition at line 488 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 612 of file HGCalImagingAlgo.cc.
References dEdXweights_, ecut_, fcPerEle_, fcPerMip_, initialized_, 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 315 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 460 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 110 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 84 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(), 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 512 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(), and findAndAssignClusters().
|
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().