#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::TkMuon &t) |
void | addMuon (const l1t::Muon &t, l1t::PFCandidate::MuonRef ref) |
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 |
Enumerator | |
---|---|
atVertex | |
atCalo | |
any |
Definition at line 48 of file RegionMapper.h.
RegionMapper::RegionMapper | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 5 of file RegionMapper.cc.
References any, atCalo, atVertex, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), M_PI, neta, edm::preg, regions_, AlCaHLTBitMon_QueryRunRegistry::string, trackRegionMode_, and useRelativeRegionalCoordinates_.
void RegionMapper::addCalo | ( | const l1t::PFCluster & | t | ) |
Definition at line 153 of file RegionMapper.cc.
References l1t::PFCluster::emEt(), reco::LeafCandidate::eta(), l1t::PFCluster::isEM(), AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), l1t::PFCluster::ptError(), 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 l1t::PFCluster::emEt(), reco::LeafCandidate::eta(), l1t::PFCluster::isEM(), AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), l1t::PFCluster::ptError(), 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 reco::LeafCandidate::charge(), reco::LeafCandidate::eta(), l1t::L1Candidate::hwQual(), RPCpg::mu, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), alignCSCRings::r, and regions_.
Referenced by addMuon(), and L1TPFProducer::produce().
void RegionMapper::addMuon | ( | const l1t::TkMuon & | t | ) |
Definition at line 136 of file RegionMapper.cc.
References reco::LeafCandidate::charge(), reco::LeafCandidate::eta(), l1t::L1Candidate::hwQual(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), alignCSCRings::r, and regions_.
void RegionMapper::addMuon | ( | const l1t::Muon & | t, |
l1t::PFCandidate::MuonRef | ref | ||
) |
Definition at line 148 of file RegionMapper.cc.
References addMuon(), RPCpg::mu, and muonRefMap_.
void RegionMapper::addTrack | ( | const l1t::PFTrack & | t | ) |
Definition at line 86 of file RegionMapper.cc.
References any, atCalo, atVertex, l1t::PFTrack::caloEta(), l1t::PFTrack::caloPhi(), l1t::PFTrack::caloPtError(), reco::LeafCandidate::charge(), l1t::PFTrack::chi2(), reco::LeafCandidate::eta(), l1tpf_impl::InputTrack::hwChi2, l1tpf_impl::InputTrack::hwStubs, l1t::PFTrack::isMuon(), l1t::PFTrack::nStubs(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), l1t::PFTrack::quality(), alignCSCRings::r, regions_, submitPVValidationJobs::t, trackRegionMode_, l1t::PFTrack::trkPtError(), and reco::LeafCandidate::vertex().
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(), submitPVValidationJobs::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, validate-o2o-wbm::f, match(), muonRefMap_, AlCaHLTBitMon_ParallelJobs::p, 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, validate-o2o-wbm::f, class-composition::kind, match(), l1t::PFCandidate::NeutralHadron, AlCaHLTBitMon_ParallelJobs::p, 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, validate-o2o-wbm::f, l1tpf_impl::PropagatedTrack::fromPV, class-composition::kind, match(), l1t::PFCandidate::Muon, l1tpf_impl::PropagatedTrack::muonLink, AlCaHLTBitMon_ParallelJobs::p, ptMin, alignCSCRings::r, regions_, runTheMatrix::ret, l1tpf_impl::InputTrack::src, 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, gpuPixelDoublets::ntot, 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, gpuPixelDoublets::ntot, 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().