#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 > &) |
double | calculateEnergyWithFraction (const std::vector< KDNode > &, const std::vector< double > &) |
double | calculateLocalDensity (std::vector< KDNode > &, KDTree &, const unsigned int) |
math::XYZPoint | calculatePosition (std::vector< KDNode > &) |
math::XYZPoint | calculatePositionWithFraction (const std::vector< KDNode > &, const std::vector< double > &) |
double | distance (const Hexel &pt1, const Hexel &pt2) |
double | distance2 (const Hexel &pt1, const Hexel &pt2) |
int | findAndAssignClusters (std::vector< KDNode > &, KDTree &, double, KDTreeBox &, const unsigned int) |
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) |
Private Attributes | |
reco::CaloCluster::AlgoId | algoId |
unsigned int | cluster_offset |
std::vector< reco::BasicCluster > | clusters_v |
std::vector< std::vector< KDNode > > | current_v |
std::vector< double > | dEdXweights |
bool | dependSensor |
double | ecut |
double | fcPerEle |
std::vector< double > | fcPerMip |
bool | initialized |
double | kappa |
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 |
static const unsigned int | maxNumberOfWafersPerLayer = 796 |
Definition at line 44 of file HGCalImagingAlgo.h.
|
private |
Definition at line 260 of file HGCalImagingAlgo.h.
|
private |
Definition at line 259 of file HGCalImagingAlgo.h.
point in the space
Definition at line 160 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 90 of file HGCalImagingAlgo.h.
References maxlayer, and maxpos.
|
inlinevirtual |
Definition at line 122 of file HGCalImagingAlgo.h.
|
private |
Definition at line 235 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 455 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance(), getClusters(), and shareEnergy().
|
private |
Definition at line 209 of file HGCalImagingAlgo.cc.
References data, distance(), runEdmFileComparison::found, mps_fire::i, lastLayerEE, lastLayerFH, KDTreeLinkerAlgo< DATA, DIM >::search(), and vecDeltas.
Referenced by distance(), and makeClusters().
|
private |
Definition at line 166 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, x, y, and z.
Referenced by distance(), and getClusters().
|
private |
Definition at line 439 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 560 of file HGCalImagingAlgo.cc.
References dEdXweights, ecut, fcPerEle, fcPerMip, DetId::Forward, hgcal::RecHitTools::getGeometry(), hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getSiThickness(), CaloGeometry::getValidDetIds(), hgcal::RecHitTools::getWafer(), HGCEE, HGCHEF, initialized, lastLayerFH, maxlayer, maxNumberOfWafersPerLayer, noiseMip, nonAgedNoises, rhtools_, thicknessCorrection, thresholds, v_sigmaNoise, and hgcal::RecHitTools::zside().
Referenced by populate(), and reset().
Definition at line 289 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 284 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 286 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), cluster_offset, gather_cfg::cout, current_v, 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 411 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 92 of file HGCalImagingAlgo.cc.
References algoId, calculateEnergyWithFraction(), calculatePosition(), calculatePositionWithFraction(), clusters_v, gather_cfg::cout, current_v, data, reco::CaloID::DET_HGCAL_ENDCAP, MillePedeFileConverter_cfg::e, findLocalMaximaInCluster(), dedxEstimators_cff::fraction, mps_fire::i, pINFO, position, shareEnergy(), and verbosity.
Referenced by setVerbosity().
|
inline |
Definition at line 138 of file HGCalImagingAlgo.h.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
void HGCalImagingAlgo::makeClusters | ( | ) |
Definition at line 69 of file HGCalImagingAlgo.cc.
References calculateDistanceToHigher(), calculateLocalDensity(), findAndAssignClusters(), mps_fire::i, maxlayer, maxpos, minpos, and points.
Referenced by setVerbosity().
void HGCalImagingAlgo::populate | ( | const HGCRecHitCollection & | hits | ) |
Definition at line 13 of file HGCalImagingAlgo.cc.
References computeThreshold(), dependSensor, CaloRecHit::detid(), ecut, CaloRecHit::energy(), hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getPosition(), hgcal::RecHitTools::getSiThickness(), hgcal::RecHitTools::getWafer(), mps_fire::i, createfilelist::int, hgcal::RecHitTools::isHalfCell(), lastLayerFH, SiStripPI::max, maxlayer, maxpos, min(), minpos, eostools::move(), points, position, rhtools_, edm::SortedCollection< T, SORT >::size(), thresholds, v_sigmaNoise, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and hgcal::RecHitTools::zside().
Referenced by setVerbosity().
|
inline |
Definition at line 142 of file HGCalImagingAlgo.h.
References cluster_offset, clusters_v, computeThreshold(), current_v, mps_fire::i, maxpos, minpos, points, and edm::swap().
|
inline |
Definition at line 126 of file HGCalImagingAlgo.h.
References getClusters(), hfClusterShapes_cfi::hits, makeClusters(), populate(), and verbosity.
|
private |
Definition at line 464 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 266 of file HGCalImagingAlgo.h.
References begin, end, training_settings::idx, and findQualityFiles::v.
Referenced by findAndAssignClusters().
|
private |
Definition at line 192 of file HGCalImagingAlgo.h.
Referenced by getClusters().
|
private |
Definition at line 181 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), and reset().
|
private |
Definition at line 187 of file HGCalImagingAlgo.h.
Referenced by getClusters(), and reset().
|
private |
Definition at line 264 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), getClusters(), and reset().
|
private |
Definition at line 196 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 195 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), and populate().
|
private |
Definition at line 178 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 199 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 198 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 209 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 175 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters().
|
staticprivate |
Definition at line 168 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), and findAndAssignClusters().
|
staticprivate |
Definition at line 169 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), computeThreshold(), findAndAssignClusters(), and populate().
|
static |
Definition at line 163 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), hgcal::EGammaPCAHelper::energyPerLayer(), hgcal::EGammaPCAHelper::findZFirstLayer(), HGCalImagingAlgo(), makeClusters(), and populate().
|
staticprivate |
Definition at line 171 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 280 of file HGCalImagingAlgo.h.
Referenced by HGCalImagingAlgo(), makeClusters(), populate(), and reset().
|
private |
Definition at line 279 of file HGCalImagingAlgo.h.
Referenced by makeClusters(), populate(), and reset().
|
private |
Definition at line 201 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 200 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 276 of file HGCalImagingAlgo.h.
Referenced by makeClusters(), populate(), and reset().
|
private |
Definition at line 189 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), getEventSetup(), and populate().
|
private |
Definition at line 184 of file HGCalImagingAlgo.h.
Referenced by shareEnergy().
|
private |
Definition at line 197 of file HGCalImagingAlgo.h.
Referenced by computeThreshold().
|
private |
Definition at line 202 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 203 of file HGCalImagingAlgo.h.
Referenced by computeThreshold(), and populate().
|
private |
Definition at line 174 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), and findAndAssignClusters().
|
private |
Definition at line 206 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), getClusters(), and setVerbosity().