#include <Basic2DGenericTopoClusterizer.h>
◆ B2DGT
◆ Basic2DGenericTopoClusterizer() [1/2]
◆ ~Basic2DGenericTopoClusterizer()
Basic2DGenericTopoClusterizer::~Basic2DGenericTopoClusterizer |
( |
| ) |
|
|
overridedefault |
◆ Basic2DGenericTopoClusterizer() [2/2]
Basic2DGenericTopoClusterizer::Basic2DGenericTopoClusterizer |
( |
const B2DGT & |
| ) |
|
|
delete |
◆ buildClusters()
Implements InitialClusteringStepBase.
Definition at line 16 of file Basic2DGenericTopoClusterizer.cc.
21 std::vector<bool> used(
hits.size(),
false);
22 std::vector<unsigned int>
seeds;
26 for (
unsigned int i = 0;
i <
hits.size(); ++
i) {
27 if (!rechitMask[
i] || !seedable[
i] || used[
i])
33 seeds.begin(),
seeds.end(), [&](
unsigned int i,
unsigned int j) {
return hits[
i].energy() >
hits[
j].energy(); });
41 if (!
temp.recHitFractions().empty())
References buildTopoCluster(), hfClusterShapes_cfi::hits, mps_fire::i, input, dqmiolumiharvest::j, convertSQLitetoXML_cfg::output, fileCollector::seed, InitialStep_cff::seeds, jetUpdater_cfi::sort, and groupFilesInBlocks::temp.
◆ buildTopoCluster()
Definition at line 46 of file Basic2DGenericTopoClusterizer.cc.
51 auto const& cell = (*input)[kcell];
52 int cell_layer = (
int)cell.layer();
58 double thresholdE = 0.;
59 double thresholdPT2 = 0.;
72 if (cell.energy() < thresholdE || cell.pt2() < thresholdPT2) {
73 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
74 <<
"RecHit " << cell.detId() <<
" with enegy " << cell.energy() <<
" GeV was rejected!." << std::endl;
83 auto const& neighbours = (
_useCornerCells ? cell.neighbours8() : cell.neighbours4());
85 for (
auto nb : neighbours) {
86 if (used[nb] || !rechitMask[nb]) {
87 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
88 <<
" RecHit " << cell.detId() <<
"\'s"
89 <<
" neighbor RecHit " <<
input->at(nb).detId() <<
" with enegy " <<
input->at(nb).energy()
90 <<
" GeV was rejected!"
91 <<
" Reasons : " << used[nb] <<
" (used) " << !rechitMask[nb] <<
" (masked)." << std::endl;
References InitialClusteringStepBase::_thresholds, _useCornerCells, funct::abs(), reco::PFCluster::addRecHitFraction(), LEDCalibrationChannels::depth, PFLayer::HCAL_BARREL1, PFLayer::HCAL_BARREL2, PFLayer::HCAL_ENDCAP, input, createfilelist::int, dqmiolumiharvest::j, dqmdumpme::k, LOGDRESSED, InitialClusteringStepBase::makeRefhit(), findQualityFiles::size, and particleFlowZeroSuppressionECAL_cff::thresholds.
Referenced by buildClusters().
◆ operator=()
B2DGT& Basic2DGenericTopoClusterizer::operator= |
( |
const B2DGT & |
| ) |
|
|
delete |
◆ _useCornerCells
const bool Basic2DGenericTopoClusterizer::_useCornerCells |
|
private |