#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) |
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 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_ |
const Grid * | grid_ |
float | minClusterEt_ |
float | minEtToGrow_ |
const Cluster | nullCluster_ |
PreClusterGrid | precluster_ |
EtGrid | rawet_ |
float | seedEt_ |
EtGrid | unclustered_ |
float | zsEt_ |
Definition at line 180 of file CaloClusterer.h.
|
strongprivate |
Enumerator | |
---|---|
Fractions | |
None | |
Greedy | |
Crude |
Definition at line 218 of file CaloClusterer.h.
l1tpf_calo::SingleCaloClusterer::SingleCaloClusterer | ( | const edm::ParameterSet & | pset | ) |
Definition at line 166 of file CaloClusterer.cc.
References Crude, pfClustersFromCombinedCaloHCal_cfi::energyShareAlgo, energyShareAlgo_, Exception, Fractions, Greedy, None, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.
l1tpf_calo::SingleCaloClusterer::~SingleCaloClusterer | ( | ) |
Definition at line 193 of file CaloClusterer.cc.
|
inline |
Definition at line 185 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 186 of file CaloClusterer.h.
References PVValHelper::eta, DiDispStaMuonMonitor_cfi::pt, and rawet_.
Referenced by counter.Counter::register().
void l1tpf_calo::SingleCaloClusterer::clear | ( | void | ) |
Definition at line 195 of file CaloClusterer.cc.
Referenced by L1TPFCaloProducer::produce().
|
inline |
Definition at line 196 of file CaloClusterer.h.
References clusterIndex_, clusters_, mps_fire::i, and nullCluster_.
|
inline |
Definition at line 195 of file CaloClusterer.h.
References clusters_.
|
inline |
Definition at line 205 of file CaloClusterer.h.
References HltBtagPostValidation_cff::c, clusters_, and pfClustersFromHGC3DClusters_cfi::corrector.
Referenced by KalmanMuonCorrector.KalmanMuonCorrector::correct_all(), JetReCalibrator.JetReCalibrator::correctAll(), and L1TPFCaloProducer::produce().
std::unique_ptr< l1t::PFClusterCollection > l1tpf_calo::SingleCaloClusterer::fetch | ( | float | ptMin = 0. | ) | const |
Definition at line 385 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 395 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 368 of file CaloClusterer.cc.
References cms::cuda::assert(), mps_fire::i, ptMin, runTheMatrix::ret, 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 341 of file CaloClusterer.cc.
References mps_fire::i, and recoMuon::in.
|
inline |
Definition at line 194 of file CaloClusterer.h.
References clusterIndex_.
|
inline |
|
inline |
non-const access to the energy: be careful to use it only before 'run()'
Definition at line 201 of file CaloClusterer.h.
References rawet_.
void l1tpf_calo::SingleCaloClusterer::run | ( | ) |
Definition at line 201 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, crabWrapper::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 227 of file CaloClusterer.h.
|
private |
Definition at line 227 of file CaloClusterer.h.
Referenced by cluster(), and indexGrid().
|
private |
Definition at line 228 of file CaloClusterer.h.
Referenced by cluster(), clusters(), and correct().
|
private |
Definition at line 231 of file CaloClusterer.h.
Referenced by SingleCaloClusterer().
|
private |
Definition at line 232 of file CaloClusterer.h.
|
private |
Definition at line 224 of file CaloClusterer.h.
|
private |
Definition at line 230 of file CaloClusterer.h.
|
private |
Definition at line 230 of file CaloClusterer.h.
|
private |
Definition at line 229 of file CaloClusterer.h.
Referenced by cluster().
|
private |
Definition at line 226 of file CaloClusterer.h.
|
private |
Definition at line 225 of file CaloClusterer.h.
|
private |
Definition at line 230 of file CaloClusterer.h.
|
private |
Definition at line 225 of file CaloClusterer.h.
|
private |
Definition at line 230 of file CaloClusterer.h.