#include <CaloClusterer.h>
Definition at line 269 of file CaloClusterer.h.
◆ SimpleCaloLinker()
◆ ~SimpleCaloLinker()
l1tpf_calo::SimpleCaloLinker::~SimpleCaloLinker |
( |
| ) |
|
|
override |
◆ clear()
void l1tpf_calo::SimpleCaloLinker::clear |
( |
void |
| ) |
|
|
overridevirtual |
◆ run()
void l1tpf_calo::SimpleCaloLinker::run |
( |
| ) |
|
|
overridevirtual |
Implements l1tpf_calo::SimpleCaloLinkerBase.
Definition at line 483 of file CaloClusterer.cc.
492 for (
i = 0;
i < ncells; ++
i) {
498 for (
int ineigh = 0; ineigh < 8; ++ineigh) {
508 CombinedCluster cluster;
510 for (
i = 0;
i < ncells; ++
i) {
514 cluster.constituents.emplace_back(+
i + 1, 1);
519 cluster.ecal_et =
ecal.et;
520 cluster.hcal_et =
hcal.et;
521 cluster.et = cluster.ecal_et + cluster.hcal_et;
522 float wecal = cluster.ecal_et / cluster.et, whcal = 1.0 - wecal;
523 cluster.eta =
ecal.eta * wecal +
hcal.eta * whcal;
524 cluster.phi =
ecal.phi * wecal +
hcal.phi * whcal;
527 cluster.constituents.emplace_back(-
i - 1, 1);
531 float myet =
hcal.et;
535 for (
int ineigh = 0; ineigh < 8; ++ineigh) {
537 if (ineighcell == -1)
545 cluster.constituents.emplace_back(-
i - 1, fracet /
ecal_.
cluster(ineighcell).
et);
548 cluster.hcal_et =
hcal.et;
549 cluster.ecal_et = etot;
550 cluster.et = myet + etot;
551 cluster.eta =
hcal.eta + avg_eta / cluster.et;
552 cluster.phi =
hcal.phi + avg_phi / cluster.et;
557 if (cluster.et > 0) {
565 for (
i = 0;
i < ncells; ++
i) {
569 cluster.ecal_et =
ecal.et;
570 cluster.hcal_et = hraw[
i];
571 cluster.et = cluster.ecal_et + cluster.hcal_et;
572 cluster.eta =
ecal.eta;
573 cluster.phi =
ecal.phi;
574 cluster.constituents.emplace_back(-
i - 1, 1);
References l1tpf_calo::GridData< T >::clear(), l1tpf_calo::CombinedCluster::clear(), l1tpf_calo::Cluster::constituents, SiPixelRawToDigiRegional_cfi::deltaPhi, l1tpf_calo::CombinedCluster::ecal_et, EgHLTOffHistBins_cfi::et, l1tpf_calo::Cluster::et, l1tpf_calo::Cluster::eta, l1tpf_calo::CombinedCluster::hcal_et, mps_fire::i, l1tpf_calo::Cluster::phi, and reco::reduceRange().
◆ ecalToHCal_