Definition at line 9 of file GenericSimClusterMapper.cc.
◆ B2DGT
◆ GenericSimClusterMapper() [1/2]
◆ ~GenericSimClusterMapper()
GenericSimClusterMapper::~GenericSimClusterMapper |
( |
| ) |
|
|
overridedefault |
◆ GenericSimClusterMapper() [2/2]
GenericSimClusterMapper::GenericSimClusterMapper |
( |
const B2DGT & |
| ) |
|
|
delete |
◆ buildClusters()
Implements InitialClusteringStepBase.
Definition at line 49 of file GenericSimClusterMapper.cc.
57 std::unordered_map<uint32_t, size_t> detIdToIndex(
hits.size());
58 for (uint32_t
i = 0;
i <
hits.size(); ++
i) {
59 detIdToIndex[
hits[
i].detId()] =
i;
63 for (
const auto& sc : simClusters) {
67 double energy = 0.0, highest_energy = 0.0;
68 auto hitsAndFractions = sc.hits_and_fractions();
69 for (
const auto& hAndF : hitsAndFractions) {
70 auto itr = detIdToIndex.find(hAndF.first);
71 if (itr == detIdToIndex.end())
74 const double hit_energy = hAndF.second * ref->energy();
77 if (hit_energy > highest_energy || highest_energy == 0.0) {
78 highest_energy = hit_energy;
References _simClusterH, reco::PFCluster::addRecHitFraction(), HCALHighEnergyHPDFilter_cfi::energy, f, hfClusterShapes_cfi::hits, reco::CaloCluster::hitsAndFractions(), mps_fire::i, input, InitialClusteringStepBase::makeRefhit(), convertSQLitetoXML_cfg::output, fileCollector::seed, reco::CaloCluster::setCorrectedEnergy(), reco::CaloCluster::setEnergy(), and reco::CaloCluster::setSeed().
◆ operator=()
B2DGT& GenericSimClusterMapper::operator= |
( |
const B2DGT & |
| ) |
|
|
delete |
◆ updateEvent()
void GenericSimClusterMapper::updateEvent |
( |
const edm::Event & |
ev | ) |
|
|
finalvirtual |
◆ _simClusterH
◆ _simClusterToken