#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 | |
std::vector< reco::BasicCluster > | getClusters (bool) |
void | getEventSetup (const edm::EventSetup &es) |
HGCalImagingAlgo () | |
HGCalImagingAlgo (float delta_c_in, double kappa_in, double ecut_in, reco::CaloCluster::AlgoId algoId_in, VerbosityLevel the_verbosity=pERROR) | |
HGCalImagingAlgo (float delta_c_in, double kappa_in, double ecut_in, double showerSigma, reco::CaloCluster::AlgoId algoId_in, VerbosityLevel the_verbosity=pERROR) | |
void | makeClusters (const HGCRecHitCollection &hits) |
void | reset () |
void | setVerbosity (VerbosityLevel the_verbosity) |
virtual | ~HGCalImagingAlgo () |
Private Types | |
typedef KDTreeNodeInfoT< Hexel, 2 > | KDNode |
typedef KDTreeLinkerAlgo< Hexel, 2 > | KDTree |
Private Member Functions | |
double | calculateDistanceToHigher (std::vector< KDNode > &, KDTree &) |
double | calculateEnergyWithFraction (const std::vector< KDNode > &, const std::vector< double > &) |
double | calculateLocalDensity (std::vector< KDNode > &, KDTree &) |
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 &) |
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 |
float | delta_c |
double | ecut |
double | kappa |
std::vector< std::vector< Hexel > > | points |
hgcal::RecHitTools | rhtools_ |
double | sigma2 |
VerbosityLevel | verbosity |
Static Private Attributes | |
static const unsigned int | maxlayer = 52 |
Definition at line 42 of file HGCalImagingAlgo.h.
|
private |
Definition at line 179 of file HGCalImagingAlgo.h.
|
private |
Definition at line 178 of file HGCalImagingAlgo.h.
point in the space
Definition at line 102 of file HGCalImagingAlgo.h.
Enumerator | |
---|---|
pDEBUG | |
pWARNING | |
pINFO | |
pERROR |
Definition at line 48 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 50 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 56 of file HGCalImagingAlgo.h.
|
inline |
Definition at line 67 of file HGCalImagingAlgo.h.
|
inlinevirtual |
Definition at line 79 of file HGCalImagingAlgo.h.
|
private |
Definition at line 191 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 399 of file HGCalImagingAlgo.cc.
References mps_fire::i, and mps_fire::result.
Referenced by distance(), getClusters(), and shareEnergy().
Definition at line 174 of file HGCalImagingAlgo.cc.
References data, delta_c, distance(), runEdmFileComparison::found, mps_fire::i, and KDTreeLinkerAlgo< DATA, DIM >::search().
Referenced by distance(), and makeClusters().
|
private |
Definition at line 155 of file HGCalImagingAlgo.cc.
References data, mps_fire::i, x, y, and z.
Referenced by distance(), and getClusters().
|
private |
Definition at line 383 of file HGCalImagingAlgo.cc.
References mps_fire::i, mps_fire::result, mps_merge::weight, x, y, and z.
Referenced by distance(), getClusters(), and shareEnergy().
Definition at line 202 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 197 of file HGCalImagingAlgo.h.
References HGCalImagingAlgo::Hexel::x, and HGCalImagingAlgo::Hexel::y.
Referenced by calculateDistanceToHigher(), and distance().
|
private |
Definition at line 241 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), cluster_offset, gather_cfg::cout, current_v, data, delta_c, distance(), runEdmFileComparison::found, mps_fire::i, kappa, pINFO, KDTreeLinkerAlgo< DATA, DIM >::search(), sort_by_delta(), sorted_indices(), and verbosity.
Referenced by distance(), and makeClusters().
|
private |
Definition at line 355 of file HGCalImagingAlgo.cc.
References data, delta_c, 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 79 of file HGCalImagingAlgo.cc.
References algoId, begin, 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 94 of file HGCalImagingAlgo.h.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
void HGCalImagingAlgo::makeClusters | ( | const HGCRecHitCollection & | hits | ) |
Definition at line 16 of file HGCalImagingAlgo.cc.
References calculateDistanceToHigher(), calculateLocalDensity(), gather_cfg::cout, delta_c, CaloRecHit::detid(), ecut, CaloRecHit::energy(), findAndAssignClusters(), hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getPosition(), mps_fire::i, createfilelist::int, hgcal::RecHitTools::isHalfCell(), kappa, hpstanc_transforms::max, maxlayer, min(), eostools::move(), pINFO, points, position, rhtools_, edm::SortedCollection< T, SORT >::size(), findQualityFiles::size, verbosity, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and HcalDigiParam_cfi::zside.
Referenced by setVerbosity().
|
inline |
Definition at line 96 of file HGCalImagingAlgo.h.
References cluster_offset, clusters_v, and current_v.
|
inline |
Definition at line 83 of file HGCalImagingAlgo.h.
References getClusters(), hfClusterShapes_cfi::hits, makeClusters(), and verbosity.
|
private |
Definition at line 408 of file HGCalImagingAlgo.cc.
References calculateEnergyWithFraction(), calculatePositionWithFraction(), data, mps_update::diff, MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, cropTnPTrees::frac, dedxEstimators_cff::fraction, mps_fire::i, hpstanc_transforms::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 185 of file HGCalImagingAlgo.h.
References mps_fire::i, training_settings::idx, and findQualityFiles::v.
Referenced by findAndAssignClusters().
|
private |
Definition at line 128 of file HGCalImagingAlgo.h.
Referenced by getClusters().
|
private |
Definition at line 117 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), and reset().
|
private |
Definition at line 123 of file HGCalImagingAlgo.h.
Referenced by getClusters(), and reset().
|
private |
Definition at line 183 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), getClusters(), and reset().
|
private |
Definition at line 110 of file HGCalImagingAlgo.h.
Referenced by calculateLocalDensity(), findAndAssignClusters(), findLocalMaximaInCluster(), and makeClusters().
|
private |
Definition at line 114 of file HGCalImagingAlgo.h.
Referenced by makeClusters().
|
private |
Definition at line 111 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), and makeClusters().
|
staticprivate |
Definition at line 107 of file HGCalImagingAlgo.h.
Referenced by makeClusters().
|
private |
Definition at line 193 of file HGCalImagingAlgo.h.
Referenced by makeClusters().
|
private |
Definition at line 125 of file HGCalImagingAlgo.h.
Referenced by getEventSetup(), and makeClusters().
|
private |
Definition at line 120 of file HGCalImagingAlgo.h.
Referenced by shareEnergy().
|
private |
Definition at line 131 of file HGCalImagingAlgo.h.
Referenced by findAndAssignClusters(), getClusters(), makeClusters(), and setVerbosity().