Classes | |
struct | SelectionTypeStringToEnum |
a lightweight "map" for selection type string label and enum value More... | |
Enumerations | |
enum | AlgorithmType { TMLastStation, TM2DCompatibility, TMOneStation } |
enum | SelectionType { All = 0, AllGlobalMuons = 1, AllStandAloneMuons = 2, AllTrackerMuons = 3, TrackerMuonArbitrated = 4, AllArbitrated = 5, GlobalMuonPromptTight = 6, TMLastStationLoose = 7, TMLastStationTight = 8, TM2DCompatibilityLoose = 9, TM2DCompatibilityTight = 10, TMOneStationLoose = 11, TMOneStationTight = 12, TMLastStationOptimizedLowPtLoose = 13, TMLastStationOptimizedLowPtTight = 14, GMTkChiCompatibility = 15, GMStaChiCompatibility = 16, GMTkKinkTight = 17, TMLastStationAngLoose = 18, TMLastStationAngTight = 19, TMOneStationAngLoose = 20, TMOneStationAngTight = 21, TMLastStationOptimizedBarrelLowPtLoose = 22, TMLastStationOptimizedBarrelLowPtTight = 23 } |
Selector type. More... | |
Functions | |
float | caloCompatibility (const reco::Muon &muon) |
bool | cocktailInputIsOK (const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const reco::TrackRef &tpfmsTrack, const reco::TrackRef &pickyTrack) |
bool | cocktailInputIsOK (const reco::Muon &muon) |
reco::TrackRef | getTevRefitTrack (const reco::TrackRef &combinedTrack, const reco::TrackToTrackMap &map) |
bool | isGoodMuon (const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) |
main GoodMuon wrapper call More... | |
bool | isGoodMuon (const reco::Muon &muon, AlgorithmType type, double minCompatibility, reco::Muon::ArbitrationType arbitrationType) |
bool | isGoodMuon (const reco::Muon &muon, AlgorithmType type, int minNumberOfMatches, double maxAbsDx, double maxAbsPullX, double maxAbsDy, double maxAbsPullY, double maxChamberDist, double maxChamberDistPull, reco::Muon::ArbitrationType arbitrationType, bool syncMinNMatchesNRequiredStationsInBarrelOnly=true, bool applyAlsoAngularCuts=false) |
bool | isHighPtMuon (const reco::Muon &, const reco::Vertex &, reco::TunePType) |
bool | isLooseMuon (const reco::Muon &) |
bool | isSoftMuon (const reco::Muon &, const reco::Vertex &) |
bool | isTightMuon (const reco::Muon &, const reco::Vertex &) |
reco::Muon::MuonTrackTypePair | muonBestTrack (const reco::Muon &muon, reco::TunePType tunePType) |
bool | overlap (const reco::Muon &muon1, const reco::Muon &muon2, double pullX=1.0, double pullY=1.0, bool checkAdjacentChambers=false) |
unsigned int | RequiredStationMask (const reco::Muon &muon, double maxChamberDist, double maxChamberDistPull, reco::Muon::ArbitrationType arbitrationType) |
float | segmentCompatibility (const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) |
SelectionType | selectionTypeFromString (const std::string &label) |
int | sharedSegments (const reco::Muon &muon1, const reco::Muon &muon2, unsigned int segmentArbitrationMask=reco::MuonSegmentMatch::BestInChamberByDR) |
reco::Muon::MuonTrackTypePair | sigmaSwitch (const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const double nSigma=2., const double ptThreshold=200.) |
reco::Muon::MuonTrackTypePair | sigmaSwitch (const reco::Muon &muon, const double nSigma=2., const double ptThreshold=200.) |
reco::Muon::MuonTrackTypePair | tevOptimized (const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const reco::TrackRef &tpfmsTrack, const reco::TrackRef &pickyTrack, const double ptThreshold=200., const double tune1=4., const double tune2=6., const double dptcut=-1.) |
reco::Muon::MuonTrackTypePair | tevOptimized (const reco::Muon &muon, const double ptThreshold=200., const double tune1=4., const double tune2=6., const double dptcut=-1.) |
reco::Muon::MuonTrackTypePair | tevOptimized (const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const reco::TrackToTrackMap &tevMap1, const reco::TrackToTrackMap &tevMap2, const reco::TrackToTrackMap &tevMap3, const double ptThreshold=200., const double tune1=4., const double tune2=6., const double dptcut=-1.) |
reco::Muon::MuonTrackTypePair | tevOptimized (const reco::Muon &muon, const reco::TrackToTrackMap &tevMap1, const reco::TrackToTrackMap &tevMap2, const reco::TrackToTrackMap &tevMap3) |
reco::Muon::MuonTrackTypePair | TMR (const reco::TrackRef &trackerTrack, const reco::TrackRef &fmsTrack, const double tune=4.) |
double | trackProbability (const reco::TrackRef track) |
enum muon::AlgorithmType |
Enumerator | |
---|---|
TMLastStation | |
TM2DCompatibility | |
TMOneStation |
Definition at line 64 of file MuonSelectors.h.
enum muon::SelectionType |
Selector type.
Definition at line 19 of file MuonSelectors.h.
float muon::caloCompatibility | ( | const reco::Muon & | muon | ) |
Definition at line 69 of file MuonSelectors.cc.
References reco::Muon::caloCompatibility().
Referenced by CSCEfficiency::filter(), isGoodMuon(), and pat::MuonSelector::muIdSelection_().
|
inline |
Definition at line 111 of file MuonCocktails.h.
References edm::Ref< C, T, F >::isNonnull().
Referenced by cocktailInputIsOK(), and muonBestTrack().
|
inline |
Definition at line 119 of file MuonCocktails.h.
References cocktailInputIsOK(), reco::Muon::globalTrack(), reco::Muon::innerTrack(), reco::Muon::pickyTrack(), and reco::Muon::tpfmsTrack().
reco::TrackRef muon::getTevRefitTrack | ( | const reco::TrackRef & | combinedTrack, |
const reco::TrackToTrackMap & | map | ||
) |
Definition at line 109 of file MuonCocktails.cc.
References edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), and edm::helpers::KeyVal< K, V >::val.
Referenced by MuonIdProducer::makeMuon(), and tevOptimized().
bool muon::isGoodMuon | ( | const reco::Muon & | muon, |
SelectionType | type, | ||
reco::Muon::ArbitrationType | arbitrationType = reco::Muon::SegmentAndTrackArbitration |
||
) |
main GoodMuon wrapper call
Definition at line 534 of file MuonSelectors.cc.
References All, AllArbitrated, AllGlobalMuons, AllStandAloneMuons, AllTrackerMuons, reco::Muon::combinedQuality(), reco::LeafCandidate::eta(), GlobalMuonPromptTight, reco::Muon::globalTrack(), GMStaChiCompatibility, GMTkChiCompatibility, GMTkKinkTight, reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), reco::Muon::isQualityValid(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), reco::Muon::numberOfMatches(), reco::Muon::outerTrack(), reco::LeafCandidate::pt(), reco::MuonQuality::staRelChi2, TM2DCompatibility, TM2DCompatibilityLoose, TM2DCompatibilityTight, TMLastStation, TMLastStationAngLoose, TMLastStationAngTight, TMLastStationLoose, TMLastStationOptimizedBarrelLowPtLoose, TMLastStationOptimizedBarrelLowPtTight, TMLastStationOptimizedLowPtLoose, TMLastStationOptimizedLowPtTight, TMLastStationTight, TMOneStation, TMOneStationAngLoose, TMOneStationAngTight, TMOneStationLoose, TMOneStationTight, TrackerMuonArbitrated, reco::MuonQuality::trkKink, and reco::MuonQuality::trkRelChi2.
Referenced by BPhysicsOniaDQM::analyze(), TrackEfficiencyMonitor::analyze(), HiggsDQM::analyze(), MuonIdVal::analyze(), MuonCosmicCompatibilityFiller::checkMuonID(), PFRecoTauDiscriminationAgainstMuon::discriminate(), WMuNuValidator::filter(), WMuNuSelector::filter(), HLTDiMuonGlbTrkFilter::hltFilter(), PFMuonAlgo::isGlobalLooseMuon(), PFMuonAlgo::isGlobalTightMuon(), SoftPFMuonTagInfoProducer::isSoftMuon(), isSoftMuon(), isTightMuon(), PFMuonAlgo::isTightMuonPOG(), PFMuonAlgo::isTrackerLooseMuon(), PFMuonAlgo::isTrackerTightMuon(), JetPlusTrackCorrector::matchMuons(), pat::MuonSelector::muIdSelection_(), pat::Muon::muonID(), PFMuonAlgo::printMuonProperties(), MuonTrackProducer::produce(), MuonSelectionTypeValueMapProducer::produce(), MuonRefProducer::produce(), SoftLepton::produce(), and FourVectorHLTOffline::selectMuons().
bool muon::isGoodMuon | ( | const reco::Muon & | muon, |
AlgorithmType | type, | ||
double | minCompatibility, | ||
reco::Muon::ArbitrationType | arbitrationType | ||
) |
Definition at line 287 of file MuonSelectors.cc.
References caloCompatibility(), reco::Muon::isMatchesValid(), segmentCompatibility(), and TM2DCompatibility.
bool muon::isGoodMuon | ( | const reco::Muon & | muon, |
AlgorithmType | type, | ||
int | minNumberOfMatches, | ||
double | maxAbsDx, | ||
double | maxAbsPullX, | ||
double | maxAbsDy, | ||
double | maxAbsPullY, | ||
double | maxChamberDist, | ||
double | maxChamberDistPull, | ||
reco::Muon::ArbitrationType | arbitrationType, | ||
bool | syncMinNMatchesNRequiredStationsInBarrelOnly = true , |
||
bool | applyAlsoAngularCuts = false |
||
) |
Definition at line 309 of file MuonSelectors.cc.
References reco::Muon::dX(), reco::Muon::dY(), reco::LeafCandidate::eta(), reco::Muon::isMatchesValid(), reco::Muon::pullDxDz(), reco::Muon::pullDyDz(), reco::Muon::pullX(), reco::Muon::pullY(), RequiredStationMask(), relativeConstraints::station, reco::Muon::stationMask(), TMLastStation, and TMOneStation.
bool muon::isHighPtMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx, | ||
reco::TunePType | tunePType | ||
) |
Definition at line 743 of file MuonSelectors.cc.
References reco::defaultTuneP, first, reco::Muon::globalTrack(), reco::improvedTuneP, reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), reco::Muon::numberOfMatchedStations(), reco::Vertex::position(), and tevOptimized().
Referenced by pat::Muon::isHighPtMuon().
bool muon::isLooseMuon | ( | const reco::Muon & | muon | ) |
Definition at line 725 of file MuonSelectors.cc.
References reco::Muon::isGlobalMuon(), reco::Muon::isPFMuon(), and reco::Muon::isTrackerMuon().
Referenced by pat::Muon::isLooseMuon().
bool muon::isSoftMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx | ||
) |
Definition at line 729 of file MuonSelectors.cc.
References reco::Muon::innerTrack(), isGoodMuon(), reco::Vertex::position(), and TMOneStationTight.
Referenced by pat::Muon::isSoftMuon().
bool muon::isTightMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx | ||
) |
Definition at line 709 of file MuonSelectors.cc.
References GlobalMuonPromptTight, reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), isGoodMuon(), reco::Muon::isPFMuon(), reco::Muon::muonBestTrack(), reco::Muon::numberOfMatchedStations(), and reco::Vertex::position().
Referenced by RecoMuonValidator::analyze(), and pat::Muon::isTightMuon().
reco::Muon::MuonTrackTypePair muon::muonBestTrack | ( | const reco::Muon & | muon, |
reco::TunePType | tunePType | ||
) |
Definition at line 167 of file MuonCocktails.cc.
References cocktailInputIsOK(), reco::Muon::combinedMuon(), reco::defaultTuneP, reco::improvedTuneP, reco::Muon::InnerTrack, reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), reco::Muon::OuterTrack, reco::Muon::outerTrack(), sigmaSwitch(), and tevOptimized().
Referenced by pat::PATMuonProducer::fillMuon(), pat::Muon::improvedMuonBestTrack(), pat::Muon::muonBestTrack(), and pat::PATMuonProducer::produce().
bool muon::overlap | ( | const reco::Muon & | muon1, |
const reco::Muon & | muon2, | ||
double | pullX = 1.0 , |
||
double | pullY = 1.0 , |
||
bool | checkAdjacentChambers = false |
||
) |
Definition at line 640 of file MuonSelectors.cc.
References abs, CSCDetId::chamber(), MuonSubdetId::CSC, CSCDetId::endcap(), reco::Muon::matches(), reco::Muon::numberOfMatches(), reco::LeafCandidate::pt(), CSCDetId::ring(), reco::Muon::SegmentAndTrackArbitration, mathSSE::sqrt(), and CSCDetId::station().
Referenced by CSCCFEBData::digis(), TopDiLeptonOffline::MonitorEnsemble::fill(), ggPFClusters::getPFSuperclusterOverlap(), main(), IsolationProducerForTracks::produce(), MatchedProbeMaker< T >::produce(), CSCEventData::selfTest(), CMSMidpointAlgorithm::splitAndMerge(), edm::EventSelector::testSelectionOverlap(), and PFBlockAlgo::testSuperClusterPFCluster().
unsigned int muon::RequiredStationMask | ( | const reco::Muon & | muon, |
double | maxChamberDist, | ||
double | maxChamberDistPull, | ||
reco::Muon::ArbitrationType | arbitrationType | ||
) |
Definition at line 52 of file MuonSelectors.cc.
References reco::Muon::trackDist(), and reco::Muon::trackDistErr().
Referenced by isGoodMuon().
float muon::segmentCompatibility | ( | const reco::Muon & | muon, |
reco::Muon::ArbitrationType | arbitrationType = reco::Muon::SegmentAndTrackArbitration |
||
) |
Definition at line 74 of file MuonSelectors.cc.
References reco::Muon::dX(), reco::Muon::dY(), i, siStripFEDMonitor_P5_cff::Max, reco::Muon::pullX(), reco::Muon::pullY(), reco::Muon::segmentX(), and reco::Muon::trackDist().
Referenced by HiggsDQM::analyze(), MuonIdVal::analyze(), MuonCosmicCompatibilityFiller::checkMuonSegments(), PFRecoTauDiscriminationAgainstMuon::discriminate(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), isGoodMuon(), pat::MuonSelector::muIdSelection_(), and pat::Muon::segmentCompatibility().
SelectionType muon::selectionTypeFromString | ( | const std::string & | label | ) |
Definition at line 8 of file MuonSelectors.cc.
References All, AllArbitrated, AllGlobalMuons, AllStandAloneMuons, AllTrackerMuons, edm::hlt::Exception, newFWLiteAna::found, GlobalMuonPromptTight, GMStaChiCompatibility, GMTkChiCompatibility, GMTkKinkTight, i, muon::SelectionTypeStringToEnum::label, TM2DCompatibilityLoose, TM2DCompatibilityTight, TMLastStationAngLoose, TMLastStationAngTight, TMLastStationLoose, TMLastStationOptimizedBarrelLowPtLoose, TMLastStationOptimizedBarrelLowPtTight, TMLastStationOptimizedLowPtLoose, TMLastStationOptimizedLowPtTight, TMLastStationTight, TMOneStationAngLoose, TMOneStationAngTight, TMOneStationLoose, TMOneStationTight, TrackerMuonArbitrated, relativeConstraints::value, and muon::SelectionTypeStringToEnum::value.
Referenced by pat::Muon::muonID(), MuonSelectionTypeValueMapProducer::MuonSelectionTypeValueMapProducer(), and MuonTrackProducer::produce().
int muon::sharedSegments | ( | const reco::Muon & | muon1, |
const reco::Muon & | muon2, | ||
unsigned int | segmentArbitrationMask = reco::MuonSegmentMatch::BestInChamberByDR |
||
) |
Determine the number of shared segments between two muons. Comparison is done using the segment references in the reco::Muon object.
Definition at line 780 of file MuonSelectors.cc.
References reco::Muon::matches(), and run_regression::ret.
reco::Muon::MuonTrackTypePair muon::sigmaSwitch | ( | const reco::TrackRef & | combinedTrack, |
const reco::TrackRef & | trackerTrack, | ||
const double | nSigma = 2. , |
||
const double | ptThreshold = 200. |
||
) |
Definition at line 119 of file MuonCocktails.cc.
References reco::Muon::CombinedTrack, delta, reco::Muon::InnerTrack, and dtDQMClient_cfg::threshold.
Referenced by MuonIdProducer::makeMuon(), muonBestTrack(), and sigmaSwitch().
|
inline |
Definition at line 94 of file MuonCocktails.h.
References reco::Muon::globalTrack(), reco::Muon::innerTrack(), and sigmaSwitch().
reco::Muon::MuonTrackTypePair muon::tevOptimized | ( | const reco::TrackRef & | combinedTrack, |
const reco::TrackRef & | trackerTrack, | ||
const reco::TrackRef & | tpfmsTrack, | ||
const reco::TrackRef & | pickyTrack, | ||
const double | ptThreshold = 200. , |
||
const double | tune1 = 4. , |
||
const double | tune2 = 6. , |
||
const double | dptcut = -1. |
||
) |
Definition at line 9 of file MuonCocktails.cc.
References reco::Muon::CombinedTrack, first, i, reco::Muon::InnerTrack, reco::Muon::Picky, reco::Muon::TPFMS, trackProbability(), and TrackValidation_HighPurity_cff::valid.
Referenced by isHighPtMuon(), MuonIdProducer::makeMuon(), muonBestTrack(), MuonsFromRefitTracksProducer::produce(), and tevOptimized().
|
inline |
Definition at line 32 of file MuonCocktails.h.
References reco::Muon::globalTrack(), reco::Muon::innerTrack(), reco::Muon::pickyTrack(), tevOptimized(), and reco::Muon::tpfmsTrack().
|
inline |
Definition at line 57 of file MuonCocktails.h.
References getTevRefitTrack(), and tevOptimized().
|
inline |
Definition at line 76 of file MuonCocktails.h.
References reco::Muon::combinedMuon(), getTevRefitTrack(), tevOptimized(), and reco::Muon::track().
reco::Muon::MuonTrackTypePair muon::TMR | ( | const reco::TrackRef & | trackerTrack, |
const reco::TrackRef & | fmsTrack, | ||
const double | tune = 4. |
||
) |
Definition at line 139 of file MuonCocktails.cc.
References reco::Muon::InnerTrack, edm::Ref< C, T, F >::isNonnull(), reco::Muon::None, reco::Muon::TPFMS, and trackProbability().
double muon::trackProbability | ( | const reco::TrackRef | track | ) |
Definition at line 98 of file MuonCocktails.cc.
References create_public_lumi_plots::log.
Referenced by HistogramProbabilityEstimator::probability(), tevOptimized(), tevOptimizedTMR(), and TMR().