#include <RegionMapper.h>
Public Member Functions | |
void | addCalo (const l1t::PFCluster &t) |
void | addCalo (const l1t::PFCluster &t, l1t::PFClusterRef ref) |
void | addEmCalo (const l1t::PFCluster &t) |
void | addEmCalo (const l1t::PFCluster &t, l1t::PFClusterRef ref) |
void | addMuon (const l1t::Muon &t) |
void | addMuon (const l1t::Muon &t, l1t::PFCandidate::MuonRef ref) |
void | addMuon (const l1t::TkMuon &t) |
void | addTrack (const l1t::PFTrack &t) |
void | addTrack (const l1t::PFTrack &t, l1t::PFTrackRef ref) |
void | clear () |
std::unique_ptr< l1t::PFCandidateCollection > | fetch (bool puppi=true, float ptMin=0.01) const |
std::unique_ptr< l1t::PFCandidateCollection > | fetchCalo (float ptMin=0.01, bool emcalo=false) const |
std::unique_ptr< l1t::PFCandidateCollection > | fetchTracks (float ptMin=0.01, bool fromPV=false) const |
RegionMapper (const edm::ParameterSet &) | |
std::vector< Region > & | regions () |
std::pair< unsigned, unsigned > | totAndMaxInput (int type) const |
std::pair< unsigned, unsigned > | totAndMaxOutput (int type, bool puppi) const |
std::unique_ptr< std::vector< unsigned > > | vecInput (int type) const |
std::unique_ptr< std::vector< unsigned > > | vecOutput (int type, bool puppi) const |
Protected Types | |
enum | TrackAssoMode { TrackAssoMode::atVertex, TrackAssoMode::atCalo, TrackAssoMode::any = 999 } |
Protected Attributes | |
std::unordered_map< const l1t::PFCluster *, l1t::PFClusterRef > | clusterRefMap_ |
std::unordered_map< const l1t::Muon *, l1t::PFCandidate::MuonRef > | muonRefMap_ |
std::vector< Region > | regions_ |
std::unordered_map< const l1t::PFTrack *, l1t::PFTrackRef > | trackRefMap_ |
enum l1tpf_impl::RegionMapper::TrackAssoMode | trackRegionMode_ |
bool | useRelativeRegionalCoordinates_ |
Definition at line 15 of file RegionMapper.h.
|
strongprotected |
RegionMapper::RegionMapper | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 5 of file RegionMapper.cc.
References any, atCalo, atVertex, l1ParticleFlow_cff::etaBoundaries, l1ParticleFlow_cff::etaExtra, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, M_PI, neta, l1ParticleFlow_cff::phiExtra, l1ParticleFlow_cff::phiSlices, g4SimHits_cfi::Region, regions_, AlCaHLTBitMon_QueryRunRegistry::string, l1ParticleFlow_cff::trackRegionMode, trackRegionMode_, and useRelativeRegionalCoordinates_.
void RegionMapper::addCalo | ( | const l1t::PFCluster & | t | ) |
Definition at line 153 of file RegionMapper.cc.
References L1TowerCalibrationProducer_cfi::calo, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and regions_.
Referenced by addCalo(), and L1TPFProducer::produce().
void RegionMapper::addCalo | ( | const l1t::PFCluster & | t, |
l1t::PFClusterRef | ref | ||
) |
Definition at line 164 of file RegionMapper.cc.
References addCalo(), clusterRefMap_, and AlCaHLTBitMon_ParallelJobs::p.
void RegionMapper::addEmCalo | ( | const l1t::PFCluster & | t | ) |
Definition at line 169 of file RegionMapper.cc.
References L1TowerCalibrationProducer_cfi::calo, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and regions_.
Referenced by addEmCalo(), and L1TPFProducer::produce().
void RegionMapper::addEmCalo | ( | const l1t::PFCluster & | t, |
l1t::PFClusterRef | ref | ||
) |
Definition at line 180 of file RegionMapper.cc.
References addEmCalo(), clusterRefMap_, and AlCaHLTBitMon_ParallelJobs::p.
void RegionMapper::addMuon | ( | const l1t::Muon & | t | ) |
Definition at line 124 of file RegionMapper.cc.
References amptDefaultParameters_cff::mu, alignCSCRings::r, and regions_.
Referenced by addMuon(), and L1TPFProducer::produce().
void RegionMapper::addMuon | ( | const l1t::Muon & | t, |
l1t::PFCandidate::MuonRef | ref | ||
) |
Definition at line 148 of file RegionMapper.cc.
References addMuon(), amptDefaultParameters_cff::mu, and muonRefMap_.
void RegionMapper::addMuon | ( | const l1t::TkMuon & | t | ) |
Definition at line 136 of file RegionMapper.cc.
References amptDefaultParameters_cff::mu, alignCSCRings::r, and regions_.
void RegionMapper::addTrack | ( | const l1t::PFTrack & | t | ) |
Definition at line 86 of file RegionMapper.cc.
References any, atCalo, atVertex, l1tpf_impl::InputTrack::hwChi2, l1tpf_impl::InputTrack::hwStubs, alignCSCRings::r, regions_, OrderedSet::t, and trackRegionMode_.
Referenced by addTrack(), and L1TPFProducer::produce().
void RegionMapper::addTrack | ( | const l1t::PFTrack & | t, |
l1t::PFTrackRef | ref | ||
) |
Definition at line 119 of file RegionMapper.cc.
References addTrack(), OrderedSet::t, and trackRefMap_.
void RegionMapper::clear | ( | void | ) |
Definition at line 78 of file RegionMapper.cc.
References clusterRefMap_, muonRefMap_, alignCSCRings::r, regions_, and trackRefMap_.
Referenced by L1TPFProducer::produce().
std::unique_ptr< l1t::PFCandidateCollection > RegionMapper::fetch | ( | bool | puppi = true , |
float | ptMin = 0.01 |
||
) | const |
Definition at line 185 of file RegionMapper.cc.
References any, atCalo, atVertex, clusterRefMap_, Exception, f, match(), muonRefMap_, AlCaHLTBitMon_ParallelJobs::p, p4, ptMin, alignCSCRings::r, regions_, runTheMatrix::ret, trackRefMap_, and trackRegionMode_.
Referenced by L1TPFProducer::produce().
std::unique_ptr< l1t::PFCandidateCollection > RegionMapper::fetchCalo | ( | float | ptMin = 0.01 , |
bool | emcalo = false |
||
) | const |
Definition at line 239 of file RegionMapper.cc.
References clusterRefMap_, Exception, f, CalibrationSummaryClient_cfi::kind, match(), l1t::PFCandidate::NeutralHadron, AlCaHLTBitMon_ParallelJobs::p, p4, l1t::PFCandidate::Photon, ptMin, alignCSCRings::r, regions_, and runTheMatrix::ret.
Referenced by L1TPFProducer::produce().
std::unique_ptr< l1t::PFCandidateCollection > RegionMapper::fetchTracks | ( | float | ptMin = 0.01 , |
bool | fromPV = false |
||
) | const |
Definition at line 264 of file RegionMapper.cc.
References any, atCalo, atVertex, l1t::PFCandidate::ChargedHadron, Exception, f, isotracks_cff::fromPV, CalibrationSummaryClient_cfi::kind, match(), l1t::PFCandidate::Muon, AlCaHLTBitMon_ParallelJobs::p, p4, ptMin, alignCSCRings::r, regions_, runTheMatrix::ret, trackRefMap_, and trackRegionMode_.
Referenced by L1TPFProducer::produce().
|
inline |
Definition at line 34 of file RegionMapper.h.
References regions_.
Referenced by L1TPFProducer::produce().
std::pair< unsigned, unsigned > RegionMapper::totAndMaxInput | ( | int | type | ) | const |
Definition at line 304 of file RegionMapper.cc.
References SiStripPI::max, alignCSCRings::r, and regions_.
Referenced by L1TPFProducer::produce().
std::pair< unsigned, unsigned > RegionMapper::totAndMaxOutput | ( | int | type, |
bool | puppi | ||
) | const |
Definition at line 323 of file RegionMapper.cc.
References SiStripPI::max, alignCSCRings::r, and regions_.
Referenced by L1TPFProducer::produce().
std::unique_ptr< std::vector< unsigned > > RegionMapper::vecInput | ( | int | type | ) | const |
Definition at line 314 of file RegionMapper.cc.
References alignCSCRings::r, regions_, and findQualityFiles::v.
Referenced by L1TPFProducer::produce().
std::unique_ptr< std::vector< unsigned > > RegionMapper::vecOutput | ( | int | type, |
bool | puppi | ||
) | const |
Definition at line 333 of file RegionMapper.cc.
References alignCSCRings::r, regions_, and findQualityFiles::v.
Referenced by L1TPFProducer::produce().
|
protected |
Definition at line 51 of file RegionMapper.h.
Referenced by addCalo(), addEmCalo(), clear(), fetch(), and fetchCalo().
|
protected |
Definition at line 53 of file RegionMapper.h.
|
protected |
Definition at line 46 of file RegionMapper.h.
Referenced by addCalo(), addEmCalo(), addMuon(), addTrack(), clear(), fetch(), fetchCalo(), fetchTracks(), RegionMapper(), regions(), totAndMaxInput(), totAndMaxOutput(), vecInput(), and vecOutput().
|
protected |
Definition at line 52 of file RegionMapper.h.
Referenced by addTrack(), clear(), fetch(), and fetchTracks().
|
protected |
Referenced by addTrack(), fetch(), fetchTracks(), and RegionMapper().
|
protected |
Definition at line 47 of file RegionMapper.h.
Referenced by RegionMapper().