#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 481 of file CaloClusterer.cc.
490 for (
i = 0;
i < ncells; ++
i) {
496 for (
int ineigh = 0; ineigh < 8; ++ineigh) {
506 CombinedCluster cluster;
508 for (
i = 0;
i < ncells; ++
i) {
512 cluster.constituents.emplace_back(+
i + 1, 1);
517 cluster.ecal_et =
ecal.et;
518 cluster.hcal_et =
hcal.et;
519 cluster.et = cluster.ecal_et + cluster.hcal_et;
520 float wecal = cluster.ecal_et / cluster.et, whcal = 1.0 - wecal;
521 cluster.eta =
ecal.eta * wecal +
hcal.eta * whcal;
522 cluster.phi =
ecal.phi * wecal +
hcal.phi * whcal;
525 cluster.constituents.emplace_back(-
i - 1, 1);
529 float myet =
hcal.et;
533 for (
int ineigh = 0; ineigh < 8; ++ineigh) {
535 if (ineighcell == -1)
543 cluster.constituents.emplace_back(-
i - 1, fracet /
ecal_.
cluster(ineighcell).
et);
546 cluster.hcal_et =
hcal.et;
547 cluster.ecal_et = etot;
548 cluster.et = myet + etot;
549 cluster.eta =
hcal.eta + avg_eta / cluster.et;
550 cluster.phi =
hcal.phi + avg_phi / cluster.et;
555 if (cluster.et > 0) {
563 for (
i = 0;
i < ncells; ++
i) {
567 cluster.ecal_et =
ecal.et;
568 cluster.hcal_et = hraw[
i];
569 cluster.et = cluster.ecal_et + cluster.hcal_et;
570 cluster.eta =
ecal.eta;
571 cluster.phi =
ecal.phi;
572 cluster.constituents.emplace_back(-
i - 1, 1);
References l1tpf_calo::GridData< T >::clear(), l1tpf_calo::CombinedCluster::clear(), l1tpf_calo::Cluster::constituents, SiPixelRawToDigiRegional_cfi::deltaPhi, bsc_activity_cfg::ecal, 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_