#include <CaloClusterer.h>
Public Member Functions | |
void | add (const reco::Candidate &c) |
void | add (float pt, float eta, float phi) |
void | clear () |
const Cluster & | cluster (int i) const |
const std::vector< Cluster > & | clusters () const |
template<typename Corrector > | |
void | correct (const Corrector &corrector) |
const EtaPhiCenterGrid & | etaCenter () const |
EtaPhiCenterGrid & | etaCenter () |
std::unique_ptr< l1t::PFClusterCollection > | fetch (float ptMin=0.) const |
std::unique_ptr< l1t::PFClusterCollection > | fetch (const edm::OrphanHandle< l1t::PFClusterCollection > &cells, float ptMin=0.) const |
std::unique_ptr< l1t::PFClusterCollection > | fetchCells (bool unclusteredOnly=false, float ptMin=0.) const |
void | grow () |
possibly grow clusters by adding unclustered energy on the sides More... | |
const IndexGrid & | indexGrid () const |
const EtaPhiCenterGrid & | phiCenter () const |
EtaPhiCenterGrid & | phiCenter () |
const EtGrid & | raw () const |
EtGrid & | raw () |
non-const access to the energy: be careful to use it only before 'run()' More... | |
void | run () |
SingleCaloClusterer (const edm::ParameterSet &pset) | |
~SingleCaloClusterer () | |
Private Types | |
enum | EnergyShareAlgo { EnergyShareAlgo::Fractions, EnergyShareAlgo::None, EnergyShareAlgo::Greedy, EnergyShareAlgo::Crude } |
Private Attributes | |
IndexGrid | cellKey_ |
IndexGrid | clusterIndex_ |
std::vector< Cluster > | clusters_ |
EnergyShareAlgo | energyShareAlgo_ |
bool | energyWeightedPosition_ |
EtaPhiCenterGrid | eta_center_ |
std::vector< double > | etaBounds_ |
const Grid * | grid_ |
std::vector< unsigned int > | maxClustersEtaPhi_ |
float | minClusterEt_ |
float | minEtToGrow_ |
std::vector< int > | neighborCells_ |
const Cluster | nullCluster_ |
EtaPhiCenterGrid | phi_center_ |
std::vector< double > | phiBounds_ |
bool | preciseEtaPhi_ |
PreClusterGrid | precluster_ |
EtGrid | rawet_ |
float | seedEt_ |
EtGrid | unclustered_ |
float | zsEt_ |
Definition at line 186 of file CaloClusterer.h.
|
strongprivate |
Enumerator | |
---|---|
Fractions | |
None | |
Greedy | |
Crude |
Definition at line 237 of file CaloClusterer.h.
l1tpf_calo::SingleCaloClusterer::SingleCaloClusterer | ( | const edm::ParameterSet & | pset | ) |
Definition at line 166 of file CaloClusterer.cc.
References Crude, pfClustersFromCombinedCaloHF_cfi::energyShareAlgo, energyShareAlgo_, etaBounds_, Exception, Fractions, Greedy, maxClustersEtaPhi_, neighborCells_, None, phiBounds_, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.
l1tpf_calo::SingleCaloClusterer::~SingleCaloClusterer | ( | ) |
Definition at line 219 of file CaloClusterer.cc.
|
inline |
Definition at line 191 of file CaloClusterer.h.
References add(), and HltBtagPostValidation_cff::c.
Referenced by add(), L1TPFCaloProducer::produce(), L1TPFCaloProducer::readHcalDigis_(), L1TPFCaloProducer::readHcalHGCTowers_(), L1TPFCaloProducer::readPhase2BarrelCaloTowers_(), and counter.Counter::register().
|
inline |
Definition at line 192 of file CaloClusterer.h.
References PVValHelper::eta, eta_center_, phi_center_, preciseEtaPhi_, DiDispStaMuonMonitor_cfi::pt, and rawet_.
Referenced by counter.Counter::register().
void l1tpf_calo::SingleCaloClusterer::clear | ( | void | ) |
Definition at line 221 of file CaloClusterer.cc.
Referenced by L1TPFCaloProducer::produce().
|
inline |
Definition at line 213 of file CaloClusterer.h.
References clusterIndex_, clusters_, mps_fire::i, and nullCluster_.
|
inline |
Definition at line 212 of file CaloClusterer.h.
References clusters_.
|
inline |
Definition at line 224 of file CaloClusterer.h.
References HltBtagPostValidation_cff::c, clusters_, and ZGammaplusJetsMonitor_cff::corrector.
Referenced by KalmanMuonCorrector.KalmanMuonCorrector::correct_all(), JetReCalibrator.JetReCalibrator::correctAll(), and L1TPFCaloProducer::produce().
|
inline |
Definition at line 209 of file CaloClusterer.h.
References eta_center_.
|
inline |
Definition at line 219 of file CaloClusterer.h.
References eta_center_.
std::unique_ptr< l1t::PFClusterCollection > l1tpf_calo::SingleCaloClusterer::fetch | ( | float | ptMin = 0. | ) | const |
Definition at line 428 of file CaloClusterer.cc.
References ptMin, and runTheMatrix::ret.
Referenced by L1TPFCaloProducer::produce().
std::unique_ptr< l1t::PFClusterCollection > l1tpf_calo::SingleCaloClusterer::fetch | ( | const edm::OrphanHandle< l1t::PFClusterCollection > & | cells, |
float | ptMin = 0. |
||
) | const |
Definition at line 438 of file CaloClusterer.cc.
References hgcalTBTopologyTester_cfi::cells, ptMin, and runTheMatrix::ret.
std::unique_ptr< l1t::PFClusterCollection > l1tpf_calo::SingleCaloClusterer::fetchCells | ( | bool | unclusteredOnly = false , |
float | ptMin = 0. |
||
) | const |
Definition at line 400 of file CaloClusterer.cc.
References cms::cuda::assert(), mps_fire::i, cuy::ii, dqmdumpme::indices, l1tpf_calo::GridData< T >::phi(), ptMin, runTheMatrix::ret, collectionMerger::selector, and TrackRefitter_38T_cff::src.
Referenced by L1TPFCaloProducer::produce().
void l1tpf_calo::SingleCaloClusterer::grow | ( | ) |
possibly grow clusters by adding unclustered energy on the sides
Definition at line 373 of file CaloClusterer.cc.
References mps_fire::i, recoMuon::in, and ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::side().
|
inline |
Definition at line 211 of file CaloClusterer.h.
References clusterIndex_.
|
inline |
Definition at line 210 of file CaloClusterer.h.
References phi_center_.
|
inline |
Definition at line 220 of file CaloClusterer.h.
References phi_center_.
|
inline |
|
inline |
non-const access to the energy: be careful to use it only before 'run()'
Definition at line 218 of file CaloClusterer.h.
References rawet_.
void l1tpf_calo::SingleCaloClusterer::run | ( | ) |
Definition at line 229 of file CaloClusterer.cc.
References l1tpf_calo::Cluster::clear(), l1tpf_calo::Cluster::constituents, SiPixelRawToDigiRegional_cfi::deltaPhi, l1tpf_calo::Cluster::et, l1tpf_calo::Cluster::eta, mps_fire::i, submitPVResolutionJobs::key, SiStripPI::max, HiEvtPlane_cfi::maxet, None, contentValuesFiles::number, l1tpf_calo::Cluster::phi, reco::reduceRange(), and compareTotals::tot.
Referenced by L1TPFCaloProducer::produce().
|
private |
Definition at line 248 of file CaloClusterer.h.
|
private |
Definition at line 248 of file CaloClusterer.h.
Referenced by cluster(), and indexGrid().
|
private |
Definition at line 253 of file CaloClusterer.h.
Referenced by cluster(), clusters(), and correct().
|
private |
Definition at line 256 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 257 of file CaloClusterer.h.
|
private |
Definition at line 245 of file CaloClusterer.h.
Referenced by add(), and etaCenter().
|
private |
Definition at line 250 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 243 of file CaloClusterer.h.
|
private |
Definition at line 252 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 255 of file CaloClusterer.h.
|
private |
Definition at line 255 of file CaloClusterer.h.
|
private |
Definition at line 258 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 254 of file CaloClusterer.h.
Referenced by cluster().
|
private |
Definition at line 246 of file CaloClusterer.h.
Referenced by add(), and phiCenter().
|
private |
Definition at line 251 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 249 of file CaloClusterer.h.
Referenced by add().
|
private |
Definition at line 247 of file CaloClusterer.h.
|
private |
Definition at line 244 of file CaloClusterer.h.
|
private |
Definition at line 255 of file CaloClusterer.h.
|
private |
Definition at line 244 of file CaloClusterer.h.
|
private |
Definition at line 255 of file CaloClusterer.h.