#include <GenericSimClusterMapper.h>
Definition at line 9 of file GenericSimClusterMapper.h.
◆ B2DGT
◆ GenericSimClusterMapper() [1/2]
◆ ~GenericSimClusterMapper()
GenericSimClusterMapper::~GenericSimClusterMapper |
( |
| ) |
|
|
overridedefault |
◆ GenericSimClusterMapper() [2/2]
GenericSimClusterMapper::GenericSimClusterMapper |
( |
const B2DGT & |
| ) |
|
|
delete |
◆ buildClusters()
Implements InitialClusteringStepBase.
Definition at line 23 of file GenericSimClusterMapper.cc.
31 std::unordered_map<uint32_t, size_t> detIdToIndex(
hits.size());
32 for (uint32_t
i = 0;
i <
hits.size(); ++
i) {
33 detIdToIndex[
hits[
i].detId()] =
i;
37 for (
const auto& sc : simClusters) {
41 double energy = 0.0, highest_energy = 0.0;
42 auto hitsAndFractions = sc.hits_and_fractions();
43 for (
const auto& hAndF : hitsAndFractions) {
44 auto itr = detIdToIndex.find(hAndF.first);
45 if (
itr == detIdToIndex.end())
48 const double hit_energy = hAndF.second * ref->energy();
51 if (hit_energy > highest_energy || highest_energy == 0.0) {
52 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, SurveyInfoScenario_cff::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