#include <PFMuonAlgo.h>
Classes | |
class | IndexPtComparator |
class | TrackMETComparator |
class | TrackPtErrorSorter |
Static Public Member Functions | |
static bool | hasValidTracks (const reco::MuonRef &) |
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 948 of file PFMuonAlgo.cc.
References DeDxDiscriminatorTools::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 754 of file PFMuonAlgo.cc.
References reco::Muon::CombinedTrack, 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 1056 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 1167 of file PFMuonAlgo.cc.
References reco::PFCandidate::elementsInBlocks(), reco::LeafCandidate::eta(), reco::PFCandidate::h, reco::PFCandidate::h0, i, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), max(), reco::PFCandidate::muonRef(), reco::LeafCandidate::p(), reco::PFCandidate::particleId(), reco::LeafCandidate::pt(), reco::PFCandidate::rawEcalEnergy(), reco::PFCandidate::rawHcalEnergy(), and dt_dqm_sourceclient_common_cff::reco.
|
private |
Definition at line 790 of file PFMuonAlgo.cc.
References funct::abs(), and i.
|
private |
Definition at line 1036 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 633 of file PFMuonAlgo.cc.
|
static |
|
static |
Definition at line 198 of file PFMuonAlgo.cc.
References reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 341 of file PFMuonAlgo.cc.
References muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), bookConverter::min, query::result, and muon::TMLastStationAngTight.
|
static |
Definition at line 185 of file PFMuonAlgo.cc.
References reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 250 of file PFMuonAlgo.cc.
References muon::GlobalMuonPromptTight, muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), bookConverter::min, query::result, and muon::TM2DCompatibilityTight.
|
static |
Definition at line 224 of file PFMuonAlgo.cc.
References reco::PFBlockElementTrack::muonRef().
Referenced by GreedyMuonPFCandidateFilter::filter(), and PFAlgo::processBlock().
|
static |
|
static |
Definition at line 166 of file PFMuonAlgo.cc.
References muon::isLooseMuon(), and reco::PFBlockElementTrack::muonRef().
Referenced by GeneralTracksImporter::importToBlock(), and PFAlgo::processBlock().
|
static |
Definition at line 243 of file PFMuonAlgo.cc.
|
static |
Definition at line 153 of file PFMuonAlgo.cc.
References reco::isMuon(), and reco::PFBlockElementTrack::muonRef().
Referenced by GeneralTracksImporter::importToBlock(), PFEGammaAlgo::isAMuon(), PFAlgo::processBlock(), and PFElectronAlgo::SetLinks().
|
static |
Definition at line 237 of file PFMuonAlgo.cc.
|
static |
Definition at line 474 of file PFMuonAlgo.cc.
References muon::GlobalMuonPromptTight, and muon::isGoodMuon().
|
static |
|
static |
Definition at line 410 of file PFMuonAlgo.cc.
References muon::AllArbitrated, muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), and muon::TMLastStationAngTight.
|
static |
Definition at line 211 of file PFMuonAlgo.cc.
References reco::PFBlockElementTrack::muonRef().
|
static |
Definition at line 313 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 639 of file PFMuonAlgo.cc.
References reco::Muon::CombinedTrack, reco::Muon::InnerTrack, edm::Ref< C, T, F >::isNonnull(), dbtoconf::out, reco::Muon::OuterTrack, reco::Muon::Picky, and reco::Muon::TPFMS.
void PFMuonAlgo::postClean | ( | reco::PFCandidateCollection * | cands | ) |
Definition at line 846 of file PFMuonAlgo.cc.
References i, reco::PFCandidate::mu, reco::PFCandidate::muonRef(), patZpeak::muons, reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), dt_dqm_sourceclient_common_cff::reco, and python.multivaluedict::sort().
Referenced by PFAlgo::reconstructParticles().
|
static |
Definition at line 496 of file PFMuonAlgo.cc.
References runregparse::combined, gather_cfg::cout, delta, reco::TrackBase::hitPattern(), muon::isGoodMuon(), edm::Ref< C, T, F >::isNonnull(), max(), bookConverter::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 685 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 1262 of file PFMuonAlgo.cc.
void PFMuonAlgo::setInputsForCleaning | ( | const reco::VertexCollection * | vertices | ) |
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 1115 of file PFMuonAlgo.cc.
References i, funct::pow(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and mathSSE::sqrt().
|
inline |
Definition at line 101 of file PFMuonAlgo.h.
References pfAddedMuonCandidates_.
|
inline |
Definition at line 81 of file PFMuonAlgo.h.
References pfCosmicsMuonCleanedCandidates_.
|
inline |
Definition at line 89 of file PFMuonAlgo.h.
References pfFakeMuonCleanedCandidates_.
|
inline |
Definition at line 85 of file PFMuonAlgo.h.
References pfCleanedTrackerAndGlobalMuonCandidates_.
|
inline |
Definition at line 97 of file PFMuonAlgo.h.
References pfPunchThroughHadronCleanedCandidates_.
|
inline |
Definition at line 93 of file PFMuonAlgo.h.
References pfPunchThroughMuonCleanedCandidates_.
|
private |
Definition at line 178 of file PFMuonAlgo.h.
|
private |
Definition at line 162 of file PFMuonAlgo.h.
|
private |
Definition at line 159 of file PFMuonAlgo.h.
|
private |
Definition at line 165 of file PFMuonAlgo.h.
|
private |
Definition at line 160 of file PFMuonAlgo.h.
|
private |
Definition at line 169 of file PFMuonAlgo.h.
|
private |
Definition at line 145 of file PFMuonAlgo.h.
|
private |
Definition at line 154 of file PFMuonAlgo.h.
|
private |
Definition at line 168 of file PFMuonAlgo.h.
|
private |
Definition at line 173 of file PFMuonAlgo.h.
|
private |
Definition at line 171 of file PFMuonAlgo.h.
|
private |
Definition at line 170 of file PFMuonAlgo.h.
|
private |
Definition at line 166 of file PFMuonAlgo.h.
|
private |
Definition at line 167 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 156 of file PFMuonAlgo.h.
|
private |
Definition at line 164 of file PFMuonAlgo.h.
|
private |
Definition at line 175 of file PFMuonAlgo.h.
|
private |
Definition at line 174 of file PFMuonAlgo.h.
|
private |
Definition at line 155 of file PFMuonAlgo.h.
|
private |
the collection of added muon candidates
Definition at line 143 of file PFMuonAlgo.h.
Referenced by transferAddedMuonCandidates().
|
private |
the collection of tracker/global cleaned muon candidates
Definition at line 135 of file PFMuonAlgo.h.
Referenced by transferCleanedTrackerAndGlobalCandidates().
|
private |
the collection of cosmics cleaned muon candidates
Definition at line 133 of file PFMuonAlgo.h.
Referenced by transferCleanedCosmicCandidates().
|
private |
the collection of fake cleaned muon candidates
Definition at line 137 of file PFMuonAlgo.h.
Referenced by transferCleanedFakeCandidates().
|
private |
the collection of punch-through cleaned neutral hadron candidates
Definition at line 141 of file PFMuonAlgo.h.
Referenced by transferPunchThroughCleanedHadronCandidates().
|
private |
the collection of punch-through cleaned muon candidates
Definition at line 139 of file PFMuonAlgo.h.
Referenced by transferPunchThroughCleanedMuonCandidates().
|
private |
Definition at line 163 of file PFMuonAlgo.h.
|
private |
Definition at line 172 of file PFMuonAlgo.h.
|
private |
Definition at line 176 of file PFMuonAlgo.h.
|
private |
Definition at line 177 of file PFMuonAlgo.h.
|
private |
Definition at line 180 of file PFMuonAlgo.h.
|
private |
Definition at line 161 of file PFMuonAlgo.h.
|
private |
Definition at line 157 of file PFMuonAlgo.h.
|
private |
Definition at line 149 of file PFMuonAlgo.h.