Classes | |
struct | SelectionTypeStringToEnum |
a lightweight "map" for selection type string label and enum value More... | |
Enumerations | |
enum | AlgorithmType { TMLastStation, TM2DCompatibility, TMOneStation, RPCMu } |
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, RPCMuLoose = 24 } |
Selector type. More... | |
Functions | |
float | caloCompatibility (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 &) |
bool | isLooseMuon (const reco::Muon &) |
bool | isSoftMuon (const reco::Muon &, const reco::Vertex &) |
bool | isTightMuon (const reco::Muon &, const reco::Vertex &) |
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=17., const double tune2=40., const double dptcut=0.25) |
reco::Muon::MuonTrackTypePair | tevOptimized (const reco::Muon &muon, const double ptThreshold=200., const double tune1=17., const double tune2=40., const double dptcut=0.25) |
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=17., const double tune2=40., const double dptcut=0.25) |
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 | |
RPCMu |
Definition at line 63 of file MuonSelectors.h.
enum muon::SelectionType |
Selector type.
Definition at line 17 of file MuonSelectors.h.
float muon::caloCompatibility | ( | const reco::Muon & | muon | ) |
Definition at line 71 of file MuonSelectors.cc.
References reco::Muon::caloCompatibility().
Referenced by CSCEfficiency::filter(), isGoodMuon(), and pat::MuonSelector::muIdSelection_().
reco::TrackRef muon::getTevRefitTrack | ( | const reco::TrackRef & | combinedTrack, |
const reco::TrackToTrackMap & | map | ||
) |
Definition at line 109 of file MuonCocktails.cc.
References edm::AssociationMap< edm::OneToOne< reco::TrackCollection, reco::TrackCollection > >::const_iterator, edm::AssociationMap< Tag >::end(), and edm::AssociationMap< Tag >::find().
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 567 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::isRPCMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), reco::Muon::numberOfMatches(), reco::Muon::outerTrack(), reco::LeafCandidate::pt(), RPCMu, RPCMuLoose, 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 ExampleMuonAnalyzer::analyze(), 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(), MuonRefProducer::produce(), MuonSelectionTypeValueMapProducer::produce(), SoftLepton::produce(), and FourVectorHLTOffline::selectMuons().
bool muon::isGoodMuon | ( | const reco::Muon & | muon, |
AlgorithmType | type, | ||
double | minCompatibility, | ||
reco::Muon::ArbitrationType | arbitrationType | ||
) |
Definition at line 289 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 311 of file MuonSelectors.cc.
References reco::Muon::dX(), reco::Muon::dY(), reco::LeafCandidate::eta(), reco::Muon::isMatchesValid(), reco::Muon::matches(), or, reco::Muon::pullDxDz(), reco::Muon::pullDyDz(), reco::Muon::pullX(), reco::Muon::pullY(), RequiredStationMask(), RPCMu, relativeConstraints::station, reco::Muon::stationMask(), TMLastStation, and TMOneStation.
bool muon::isHighPtMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx | ||
) |
Definition at line 785 of file MuonSelectors.cc.
References reco::Muon::bestTrack(), reco::TrackBase::dz(), reco::Muon::globalTrack(), reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), reco::Muon::muonBestTrack(), reco::Muon::numberOfMatchedStations(), and reco::Vertex::position().
Referenced by MuonKinVsEtaAnalyzer::analyze(), and pat::Muon::isHighPtMuon().
bool muon::isLooseMuon | ( | const reco::Muon & | muon | ) |
Definition at line 762 of file MuonSelectors.cc.
References reco::Muon::isGlobalMuon(), reco::Muon::isPFMuon(), and reco::Muon::isTrackerMuon().
Referenced by MuonKinVsEtaAnalyzer::analyze(), PFMuonAlgo::isLooseMuon(), pat::Muon::isLooseMuon(), and PFMuonAlgo::reconstructMuon().
bool muon::isSoftMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx | ||
) |
Definition at line 767 of file MuonSelectors.cc.
References reco::Muon::innerTrack(), isGoodMuon(), LayerTriplets::layers(), reco::Vertex::position(), and TMOneStationTight.
Referenced by DiMuonHistograms::analyze(), MuonKinVsEtaAnalyzer::analyze(), and pat::Muon::isSoftMuon().
bool muon::isTightMuon | ( | const reco::Muon & | muon, |
const reco::Vertex & | vtx | ||
) |
Definition at line 745 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(), DiMuonHistograms::analyze(), MuonKinVsEtaAnalyzer::analyze(), EfficiencyAnalyzer::analyze(), MuonPFAnalyzer::analyze(), MuonRecoOneHLT::analyze(), L1TEfficiencyMuons_Offline::getTightMuons(), and pat::Muon::isTightMuon().
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 676 of file MuonSelectors.cc.
References funct::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(), 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 54 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 76 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 ExampleMuonAnalyzer::analyze(), 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 9 of file MuonSelectors.cc.
References All, AllArbitrated, AllGlobalMuons, AllStandAloneMuons, AllTrackerMuons, edm::hlt::Exception, newFWLiteAna::found, GlobalMuonPromptTight, GMStaChiCompatibility, GMTkChiCompatibility, GMTkKinkTight, i, muon::SelectionTypeStringToEnum::label, RPCMuLoose, TM2DCompatibilityLoose, TM2DCompatibilityTight, TMLastStationAngLoose, TMLastStationAngTight, TMLastStationLoose, TMLastStationOptimizedBarrelLowPtLoose, TMLastStationOptimizedBarrelLowPtTight, TMLastStationOptimizedLowPtLoose, TMLastStationOptimizedLowPtTight, TMLastStationTight, TMOneStationAngLoose, TMOneStationAngTight, TMOneStationLoose, TMOneStationTight, TrackerMuonArbitrated, muon::SelectionTypeStringToEnum::value, and relativeConstraints::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 800 of file MuonSelectors.cc.
References reco::Muon::matches(), and run_regression::ret.
Referenced by modules::MuonCleanerBySegmentsT< T >::produce().
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(), and sigmaSwitch().
|
inline |
Definition at line 91 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 = 17. , |
||
const double | tune2 = 40. , |
||
const double | dptcut = 0.25 |
||
) |
Definition at line 9 of file MuonCocktails.cc.
References reco::Muon::CombinedTrack, first, i, reco::Muon::InnerTrack, reco::Muon::Picky, mix_2012_Summer_inTimeOnly_cff::prob, reco::Muon::TPFMS, trackProbability(), and TrackValidation_HighPurity_cff::valid.
Referenced by MuonIdProducer::makeMuon(), MuonsFromRefitTracksProducer::produce(), PFMuonAlgo::reconstructMuon(), and tevOptimized().
|
inline |
Definition at line 29 of file MuonCocktails.h.
References reco::Muon::globalTrack(), reco::Muon::innerTrack(), reco::Muon::pickyTrack(), tevOptimized(), and reco::Muon::tpfmsTrack().
|
inline |
Definition at line 54 of file MuonCocktails.h.
References getTevRefitTrack(), and tevOptimized().
|
inline |
Definition at line 73 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().