#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) |
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 198 of file HGCalImagingAlgo.cc.
References data, distance(), i, j, sorted_indices(), and tmp.
Referenced by makeClusters().
|
private |
Definition at line 406 of file HGCalImagingAlgo.cc.
References i, and mps_fire::result.
Referenced by getClusters(), and shareEnergy().
Definition at line 181 of file HGCalImagingAlgo.cc.
References data, delta_c, distance(), newFWLiteAna::found, i, j, and KDTreeLinkerAlgo< DATA, DIM >::search().
Referenced by makeClusters().
|
private |
Definition at line 155 of file HGCalImagingAlgo.cc.
References data, i, x, y, and z.
Referenced by getClusters().
|
private |
Definition at line 390 of file HGCalImagingAlgo.cc.
References i, mps_fire::result, histoStyle::weight, x, y, and z.
Referenced by getClusters(), and shareEnergy().
Definition at line 174 of file HGCalImagingAlgo.cc.
References mathSSE::sqrt(), HGCalImagingAlgo::Hexel::x, and HGCalImagingAlgo::Hexel::y.
Referenced by calculateDistanceToHigher(), calculateLocalDensity(), findAndAssignClusters(), and findLocalMaximaInCluster().
|
private |
Definition at line 248 of file HGCalImagingAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), cluster_offset, gather_cfg::cout, current_v, data, delta_c, distance(), newFWLiteAna::found, i, j, kappa, pINFO, KDTreeLinkerAlgo< DATA, DIM >::search(), sort_by_delta(), sorted_indices(), and verbosity.
Referenced by makeClusters().
|
private |
Definition at line 362 of file HGCalImagingAlgo.cc.
References data, delta_c, distance(), alignCSCRings::e, i, j, mps_fire::result, and fileCollector::seed.
Referenced by 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, alignCSCRings::e, relval_parameters_module::energy, findLocalMaximaInCluster(), HLT_25ns10e33_v2_cff::fraction, i, pINFO, position, shareEnergy(), and verbosity.
|
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(), i, hgcal::RecHitTools::isHalfCell(), kappa, bookConverter::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 ecaldqm::zside().
|
inline |
Definition at line 96 of file HGCalImagingAlgo.h.
References cluster_offset, clusters_v, and current_v.
|
inline |
|
private |
Definition at line 415 of file HGCalImagingAlgo.cc.
References calculateEnergyWithFraction(), calculatePositionWithFraction(), data, mps_update::diff, alignCSCRings::e, create_public_lumi_plots::exp, cropTnPTrees::frac, HLT_25ns10e33_v2_cff::fraction, i, j, bookConverter::max, eostools::move(), perp2(), funct::pow(), sigma2, mathSSE::sqrt(), HGCalImagingAlgo::Hexel::x, HGCalImagingAlgo::Hexel::y, and HGCalImagingAlgo::Hexel::z.
Referenced by getClusters().
|
inlineprivate |
Definition at line 185 of file HGCalImagingAlgo.h.
References i, 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().