CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
l1tpf_calo::FlatCaloLinker Class Reference

#include <CaloClusterer.h>

Inheritance diagram for l1tpf_calo::FlatCaloLinker:
l1tpf_calo::SimpleCaloLinkerBase

Public Member Functions

void clear () override
 
 FlatCaloLinker (const edm::ParameterSet &pset, const SingleCaloClusterer &ecal, const SingleCaloClusterer &hcal)
 
void run () override
 
 ~FlatCaloLinker () override
 
- Public Member Functions inherited from l1tpf_calo::SimpleCaloLinkerBase
void clearBase ()
 
template<typename Corrector >
void correct (const Corrector &corrector)
 
std::unique_ptr< l1t::PFClusterCollectionfetch () const
 
std::unique_ptr< l1t::PFClusterCollectionfetch (const edm::OrphanHandle< l1t::PFClusterCollection > &ecal, const edm::OrphanHandle< l1t::PFClusterCollection > &hcal) const
 
 SimpleCaloLinkerBase (const edm::ParameterSet &pset, const SingleCaloClusterer &ecal, const SingleCaloClusterer &hcal)
 
virtual ~SimpleCaloLinkerBase ()
 

Protected Attributes

SingleCaloClusterer combClusterer_
 
- Protected Attributes inherited from l1tpf_calo::SimpleCaloLinkerBase
IndexGrid clusterIndex_
 
std::vector< CombinedClusterclusters_
 
const SingleCaloClustererecal_
 
const Gridgrid_
 
const SingleCaloClustererhcal_
 
float hoeCut_
 
float minHadronEt_
 
float minHadronRawEt_
 
float minPhotonEt_
 
bool noEmInHGC_
 

Detailed Description

Definition at line 279 of file CaloClusterer.h.

Constructor & Destructor Documentation

◆ FlatCaloLinker()

l1tpf_calo::FlatCaloLinker::FlatCaloLinker ( const edm::ParameterSet pset,
const SingleCaloClusterer ecal,
const SingleCaloClusterer hcal 
)

Definition at line 579 of file CaloClusterer.cc.

◆ ~FlatCaloLinker()

l1tpf_calo::FlatCaloLinker::~FlatCaloLinker ( )
override

Definition at line 584 of file CaloClusterer.cc.

584 {}

Member Function Documentation

◆ clear()

void l1tpf_calo::FlatCaloLinker::clear ( void  )
overridevirtual

Reimplemented from l1tpf_calo::SimpleCaloLinkerBase.

Definition at line 586 of file CaloClusterer.cc.

586  {
587  clearBase();
589 }

◆ run()

void l1tpf_calo::FlatCaloLinker::run ( )
overridevirtual

Implements l1tpf_calo::SimpleCaloLinkerBase.

Definition at line 591 of file CaloClusterer.cc.

591  {
593 
594  const EtGrid &hraw = hcal_.raw();
595  const EtGrid &eraw = ecal_.raw();
596  combClusterer_.raw() = eraw;
597  combClusterer_.raw() += hraw;
598 
601  const std::vector<Cluster> &clustersSrc = combClusterer_.clusters();
602  unsigned int nclust = clustersSrc.size();
603  clusters_.resize(nclust);
604  for (unsigned int ic = 0; ic < nclust; ++ic) {
605  const Cluster &src = clustersSrc[ic];
606  CombinedCluster &dst = clusters_[ic];
607  dst.et = src.et;
608  dst.eta = src.eta;
609  dst.phi = src.phi;
610  dst.ecal_et = 0;
611  dst.hcal_et = 0;
612  for (const auto &pair : src.constituents) {
613  if (eraw[pair.first]) {
614  dst.ecal_et += pair.second * eraw[pair.first];
615  dst.constituents.emplace_back(-pair.first - 1, pair.second);
616  }
617  if (hraw[pair.first]) {
618  dst.hcal_et += pair.second * hraw[pair.first];
619  dst.constituents.emplace_back(+pair.first + 1, pair.second);
620  }
621  }
622  }
623 }

References math::cholesky::dst, DeadROCCounter::nclust, and TrackRefitter_38T_cff::src.

Member Data Documentation

◆ combClusterer_

SingleCaloClusterer l1tpf_calo::FlatCaloLinker::combClusterer_
protected

Definition at line 287 of file CaloClusterer.h.

l1tpf_calo::SimpleCaloLinkerBase::clusterIndex_
IndexGrid clusterIndex_
Definition: CaloClusterer.h:263
l1tpf_calo::SingleCaloClusterer::indexGrid
const IndexGrid & indexGrid() const
Definition: CaloClusterer.h:194
hcal
Definition: ConfigurationDatabase.cc:13
l1tpf_calo::SimpleCaloLinkerBase::hcal_
const SingleCaloClusterer & hcal_
Definition: CaloClusterer.h:262
l1tpf_calo::SimpleCaloLinkerBase::SimpleCaloLinkerBase
SimpleCaloLinkerBase(const edm::ParameterSet &pset, const SingleCaloClusterer &ecal, const SingleCaloClusterer &hcal)
Definition: CaloClusterer.cc:408
l1tpf_calo::SingleCaloClusterer::raw
const EtGrid & raw() const
Definition: CaloClusterer.h:193
l1tpf_calo::SimpleCaloLinkerBase::clearBase
void clearBase()
Definition: CaloClusterer.h:243
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
l1tpf_calo::SingleCaloClusterer::clear
void clear()
Definition: CaloClusterer.cc:193
l1tpf_calo::SimpleCaloLinkerBase::ecal_
const SingleCaloClusterer & ecal_
Definition: CaloClusterer.h:262
l1tpf_calo::SingleCaloClusterer::run
void run()
Definition: CaloClusterer.cc:199
l1tpf_calo::FlatCaloLinker::combClusterer_
SingleCaloClusterer combClusterer_
Definition: CaloClusterer.h:287
l1tpf_calo::EtGrid
GridData< float > EtGrid
Definition: CaloClusterer.h:149
DeadROCCounter.nclust
nclust
Definition: DeadROCCounter.py:66
bsc_activity_cfg.ecal
ecal
Definition: bsc_activity_cfg.py:25
math::cholesky::dst
M2 & dst
Definition: choleskyInversion.h:158
l1tpf_calo::SingleCaloClusterer::clusters
const std::vector< Cluster > & clusters() const
Definition: CaloClusterer.h:195
l1tpf_calo::SimpleCaloLinkerBase::clusters_
std::vector< CombinedCluster > clusters_
Definition: CaloClusterer.h:264
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27