#include <PFMuonAlgo.h>
Classes | |
class | IndexPtComparator |
class | TrackMETComparator |
class | TrackPtErrorSorter |
Static Public Member Functions | |
static bool | isGlobalLooseMuon (const reco::PFBlockElement &elt) |
static bool | isGlobalLooseMuon (const reco::MuonRef &muonRef) |
static bool | isGlobalTightMuon (const reco::PFBlockElement &elt) |
static bool | isGlobalTightMuon (const reco::MuonRef &muonRef) |
static bool | isIsolatedMuon (const reco::PFBlockElement &elt) |
static bool | isIsolatedMuon (const reco::MuonRef &muonRef) |
static bool | isLooseMuon (const reco::PFBlockElement &elt) |
static bool | isLooseMuon (const reco::MuonRef &muonRef) |
static bool | isMuon (const reco::PFBlockElement &elt) |
static bool | isMuon (const reco::MuonRef &muonRef) |
static bool | isTightMuonPOG (const reco::MuonRef &muonRef) |
static bool | isTrackerLooseMuon (const reco::PFBlockElement &elt) |
static bool | isTrackerLooseMuon (const reco::MuonRef &muonRef) |
static bool | isTrackerTightMuon (const reco::PFBlockElement &elt) |
static bool | isTrackerTightMuon (const reco::MuonRef &muonRef) |
static void | printMuonProperties (const reco::MuonRef &muonRef) |
Private Types | |
typedef reco::Muon::MuonTrackType | MuonTrackType |
typedef reco::Muon::MuonTrackTypePair | MuonTrackTypePair |
Private Member Functions | |
bool | cleanMismeasured (reco::PFCandidate &, unsigned int) |
bool | cleanPunchThroughAndFakes (reco::PFCandidate &, reco::PFCandidateCollection *, unsigned int) |
void | estimateEventQuantities (const reco::PFCandidateCollection *) |
std::pair< double, double > | getMinMaxMET2 (const reco::PFCandidate &) |
MuonTrackTypePair | getTrackWithSmallestError (const std::vector< MuonTrackTypePair > &) |
std::vector < reco::Muon::MuonTrackTypePair > | goodMuonTracks (const reco::MuonRef &muon, bool includeSA=false) |
std::vector < reco::Muon::MuonTrackTypePair > | muonTracks (const reco::MuonRef &muon, bool includeSA=false, double dpt=1e+9) |
void | removeDeadCandidates (reco::PFCandidateCollection *, const std::vector< unsigned int > &) |
std::vector< MuonTrackTypePair > | tracksPointingAtMET (const std::vector< MuonTrackTypePair > &) |
std::vector< MuonTrackTypePair > | tracksWithBetterMET (const std::vector< MuonTrackTypePair > &, const reco::PFCandidate &) |
Definition at line 12 of file PFMuonAlgo.h.
|
private |
Definition at line 15 of file PFMuonAlgo.h.
|
private |
Definition at line 14 of file PFMuonAlgo.h.
PFMuonAlgo::PFMuonAlgo | ( | ) |
constructor
Definition at line 17 of file PFMuonAlgo.cc.
|
inlinevirtual |
void PFMuonAlgo::addMissingMuons | ( | edm::Handle< reco::MuonCollection > | muons, |
reco::PFCandidateCollection * | cands | ||
) |
Definition at line 953 of file PFMuonAlgo.cc.
References RecoTauCleanerPlugins::charge, dPhi(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, i, edm::Ref< C, T, F >::isNonnull(), reco::PFCandidate::mu, reco::PFCandidate::muonRef(), mathSSE::sqrt(), reco::PFCandidate::trackRef(), and testEve_cfg::tracks.
Referenced by PFAlgo::reconstructParticles().
void PFMuonAlgo::changeTrack | ( | reco::PFCandidate & | candidate, |
const MuonTrackTypePair & | track | ||
) |
Definition at line 792 of file PFMuonAlgo.cc.
References reco::Muon::CombinedTrack, reco::Muon::DYT, relval_parameters_module::energy, reco::Muon::InnerTrack, reco::PFCandidate::mu, reco::Muon::Picky, dt_dqm_sourceclient_common_cff::reco, reco::LeafCandidate::setCharge(), reco::PFCandidate::setMuonTrackType(), reco::LeafCandidate::setP4(), reco::PFCandidate::setParticleType(), reco::PFCandidate::setVertexSource(), mathSSE::sqrt(), and reco::Muon::TPFMS.
|
private |
Definition at line 1061 of file PFMuonAlgo.cc.
References reco::PFCandidate::muonRef(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), dt_dqm_sourceclient_common_cff::reco, mathSSE::sqrt(), and testEve_cfg::tracks.
|
private |
Definition at line 1172 of file PFMuonAlgo.cc.
References reco::PFCandidate::elementsInBlocks(), reco::LeafCandidate::eta(), V0MonitoringClient_cfi::factor, reco::PFCandidate::h, reco::PFCandidate::h0, i, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), bookConverter::max, reco::PFCandidate::muonRef(), reco::LeafCandidate::p(), reco::PFCandidate::particleId(), reco::LeafCandidate::pt(), reco::PFCandidate::rawEcalEnergy(), reco::PFCandidate::rawHcalEnergy(), dt_dqm_sourceclient_common_cff::reco, and edm::second().
|
private |
|
private |
Definition at line 1041 of file PFMuonAlgo.cc.
References i, reco::PFCandidate::muonRef(), funct::pow(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and testEve_cfg::tracks.
|
private |
|
private |
Definition at line 649 of file PFMuonAlgo.cc.
bool PFMuonAlgo::hasValidTrack | ( | const reco::MuonRef & | muonRef, |
bool | loose = false |
||
) |
Definition at line 502 of file PFMuonAlgo.cc.
|
static |
Definition at line 201 of file PFMuonAlgo.cc.
References assert(), and reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 344 of file PFMuonAlgo.cc.
References muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), min(), HLT_25ns10e33_v2_cff::quality, mps_fire::result, and muon::TMLastStationAngTight.
|
static |
Definition at line 188 of file PFMuonAlgo.cc.
References assert(), and reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 253 of file PFMuonAlgo.cc.
References muon::GlobalMuonPromptTight, muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), min(), HLT_25ns10e33_v2_cff::quality, mps_fire::result, and muon::TM2DCompatibilityTight.
|
static |
Definition at line 227 of file PFMuonAlgo.cc.
References assert(), and reco::PFBlockElementTrack::muonRef().
Referenced by GreedyMuonPFCandidateFilter::filter(), and PFAlgo::processBlock().
|
static |
Definition at line 435 of file PFMuonAlgo.cc.
References edm::Ref< C, T, F >::isNonnull(), and objects.IsoTrackAnalyzer::relIso.
|
static |
Definition at line 168 of file PFMuonAlgo.cc.
References assert(), muon::isLooseMuon(), and reco::PFBlockElementTrack::muonRef().
Referenced by GeneralTracksImporter::importToBlock(), and PFAlgo::processBlock().
|
static |
Definition at line 246 of file PFMuonAlgo.cc.
|
static |
Definition at line 155 of file PFMuonAlgo.cc.
References assert(), reco::isMuon(), and reco::PFBlockElementTrack::muonRef().
Referenced by GeneralTracksImporter::importToBlock(), PFEGammaAlgo::isAMuon(), PFAlgo::processBlock(), and PFElectronAlgo::SetLinks().
|
static |
Definition at line 240 of file PFMuonAlgo.cc.
|
static |
Definition at line 479 of file PFMuonAlgo.cc.
References muon::GlobalMuonPromptTight, and muon::isGoodMuon().
|
static |
|
static |
Definition at line 413 of file PFMuonAlgo.cc.
References muon::AllArbitrated, muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), HLT_25ns10e33_v2_cff::quality, and muon::TMLastStationAngTight.
|
static |
Definition at line 214 of file PFMuonAlgo.cc.
References assert(), and reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 316 of file PFMuonAlgo.cc.
References muon::AllArbitrated, reco::TrackBase::hitPattern(), muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), reco::HitPattern::numberOfValidTrackerHits(), and muon::TM2DCompatibilityTight.
|
private |
Definition at line 655 of file PFMuonAlgo.cc.
References reco::Muon::CombinedTrack, reco::Muon::DYT, reco::Muon::InnerTrack, edm::Ref< C, T, F >::isNonnull(), GenerateHcalLaserBadRunList::out, reco::Muon::OuterTrack, reco::Muon::Picky, and reco::Muon::TPFMS.
void PFMuonAlgo::postClean | ( | reco::PFCandidateCollection * | cands | ) |
Definition at line 849 of file PFMuonAlgo.cc.
References ecal_dqm_sourceclient-live_cfg::cosmics, i, reco::PFCandidate::mu, reco::PFCandidate::muonRef(), patZpeak::muons, reco::PFCandidate::particleId(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and dt_dqm_sourceclient_common_cff::reco.
Referenced by PFAlgo::reconstructParticles().
|
static |
Definition at line 512 of file PFMuonAlgo.cc.
References runregparse::combined, gather_cfg::cout, delta, reco::TrackBase::hitPattern(), muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), bookConverter::max, min(), reco::HitPattern::numberOfValidTrackerHits(), mathSSE::sqrt(), muon::TM2DCompatibilityLoose, muon::TM2DCompatibilityTight, muon::TMLastStationAngLoose, muon::TMLastStationAngTight, muon::TMLastStationLoose, muon::TMLastStationOptimizedBarrelLowPtLoose, muon::TMLastStationOptimizedBarrelLowPtTight, muon::TMLastStationOptimizedLowPtLoose, muon::TMLastStationOptimizedLowPtTight, muon::TMLastStationTight, muon::TMOneStationLoose, muon::TMOneStationTight, and patCandidatesForDimuonsSequences_cff::tracker.
bool PFMuonAlgo::reconstructMuon | ( | reco::PFCandidate & | candidate, |
const reco::MuonRef & | muon, | ||
bool | allowLoose = false |
||
) |
Definition at line 717 of file PFMuonAlgo.cc.
References reco::Muon::InnerTrack, muon::isLooseMuon(), reco::isMuon(), edm::Ref< C, T, F >::isNonnull(), dt_dqm_sourceclient_common_cff::reco, reco::PFCandidate::setMuonRef(), and muon::tevOptimized().
Referenced by PFAlgo::reconstructTrack().
|
private |
Definition at line 1265 of file PFMuonAlgo.cc.
void PFMuonAlgo::setInputsForCleaning | ( | const reco::VertexCollection * | vertices | ) |
Definition at line 1168 of file PFMuonAlgo.cc.
References HLT_25ns10e33_v2_cff::vertices.
Referenced by PFAlgo::setPFVertexParameters().
void PFMuonAlgo::setParameters | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 29 of file PFMuonAlgo.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), reco::TrackBase::qualityByName(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by PFAlgo::setPFMuonAndFakeParameters().
|
private |
|
private |
Definition at line 1120 of file PFMuonAlgo.cc.
References i, funct::pow(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and mathSSE::sqrt().
|
inline |
Definition at line 106 of file PFMuonAlgo.h.
References pfAddedMuonCandidates_.
|
inline |
Definition at line 86 of file PFMuonAlgo.h.
References pfCosmicsMuonCleanedCandidates_.
|
inline |
Definition at line 94 of file PFMuonAlgo.h.
References pfFakeMuonCleanedCandidates_.
|
inline |
Definition at line 90 of file PFMuonAlgo.h.
References pfCleanedTrackerAndGlobalMuonCandidates_.
|
inline |
Definition at line 102 of file PFMuonAlgo.h.
References pfPunchThroughHadronCleanedCandidates_.
|
inline |
Definition at line 98 of file PFMuonAlgo.h.
References pfPunchThroughMuonCleanedCandidates_.
|
private |
Definition at line 183 of file PFMuonAlgo.h.
|
private |
Definition at line 167 of file PFMuonAlgo.h.
|
private |
Definition at line 164 of file PFMuonAlgo.h.
|
private |
Definition at line 170 of file PFMuonAlgo.h.
|
private |
Definition at line 165 of file PFMuonAlgo.h.
|
private |
Definition at line 174 of file PFMuonAlgo.h.
|
private |
Definition at line 150 of file PFMuonAlgo.h.
|
private |
Definition at line 159 of file PFMuonAlgo.h.
|
private |
Definition at line 173 of file PFMuonAlgo.h.
|
private |
Definition at line 178 of file PFMuonAlgo.h.
|
private |
Definition at line 176 of file PFMuonAlgo.h.
|
private |
Definition at line 175 of file PFMuonAlgo.h.
|
private |
Definition at line 171 of file PFMuonAlgo.h.
|
private |
Definition at line 172 of file PFMuonAlgo.h.
|
private |
Definition at line 186 of file PFMuonAlgo.h.
|
private |
Definition at line 187 of file PFMuonAlgo.h.
|
private |
Definition at line 161 of file PFMuonAlgo.h.
|
private |
Definition at line 169 of file PFMuonAlgo.h.
|
private |
Definition at line 180 of file PFMuonAlgo.h.
|
private |
Definition at line 179 of file PFMuonAlgo.h.
|
private |
Definition at line 160 of file PFMuonAlgo.h.
|
private |
the collection of added muon candidates
Definition at line 148 of file PFMuonAlgo.h.
Referenced by transferAddedMuonCandidates().
|
private |
the collection of tracker/global cleaned muon candidates
Definition at line 140 of file PFMuonAlgo.h.
Referenced by transferCleanedTrackerAndGlobalCandidates().
|
private |
the collection of cosmics cleaned muon candidates
Definition at line 138 of file PFMuonAlgo.h.
Referenced by transferCleanedCosmicCandidates().
|
private |
the collection of fake cleaned muon candidates
Definition at line 142 of file PFMuonAlgo.h.
Referenced by transferCleanedFakeCandidates().
|
private |
the collection of punch-through cleaned neutral hadron candidates
Definition at line 146 of file PFMuonAlgo.h.
Referenced by transferPunchThroughCleanedHadronCandidates().
|
private |
the collection of punch-through cleaned muon candidates
Definition at line 144 of file PFMuonAlgo.h.
Referenced by transferPunchThroughCleanedMuonCandidates().
|
private |
Definition at line 168 of file PFMuonAlgo.h.
|
private |
Definition at line 177 of file PFMuonAlgo.h.
|
private |
Definition at line 181 of file PFMuonAlgo.h.
|
private |
Definition at line 182 of file PFMuonAlgo.h.
|
private |
Definition at line 185 of file PFMuonAlgo.h.
|
private |
Definition at line 166 of file PFMuonAlgo.h.
|
private |
Definition at line 162 of file PFMuonAlgo.h.
|
private |
Definition at line 154 of file PFMuonAlgo.h.