16 embeddedTrack_(
false),
17 embeddedStandAloneMuon_(
false),
18 embeddedCombinedMuon_(
false),
19 embeddedTCMETMuonCorrs_(
false),
20 embeddedCaloMETMuonCorrs_(
false),
21 embeddedPickyMuon_(
false),
22 embeddedTpfmsMuon_(
false),
23 embeddedDytMuon_(
false),
24 embeddedPFCandidate_(
false),
26 cachedNormChi2_(
false),
28 cachedNumberOfValidHits_(0),
40 embeddedTrack_(
false),
41 embeddedStandAloneMuon_(
false),
42 embeddedCombinedMuon_(
false),
43 embeddedTCMETMuonCorrs_(
false),
44 embeddedCaloMETMuonCorrs_(
false),
45 embeddedPickyMuon_(
false),
46 embeddedTpfmsMuon_(
false),
47 embeddedDytMuon_(
false),
48 embeddedPFCandidate_(
false),
50 cachedNormChi2_(
false),
52 cachedNumberOfValidHits_(0),
64 embeddedTrack_(
false),
65 embeddedStandAloneMuon_(
false),
66 embeddedCombinedMuon_(
false),
67 embeddedTCMETMuonCorrs_(
false),
68 embeddedCaloMETMuonCorrs_(
false),
69 embeddedPickyMuon_(
false),
70 embeddedTpfmsMuon_(
false),
71 embeddedDytMuon_(
false),
72 embeddedPFCandidate_(
false),
74 cachedNormChi2_(
false),
76 cachedNumberOfValidHits_(0),
88 embeddedTrack_(
false),
89 embeddedStandAloneMuon_(
false),
90 embeddedCombinedMuon_(
false),
91 embeddedTCMETMuonCorrs_(
false),
92 embeddedCaloMETMuonCorrs_(
false),
93 embeddedPickyMuon_(
false),
94 embeddedTpfmsMuon_(
false),
95 embeddedDytMuon_(
false),
96 embeddedPFCandidate_(
false),
98 cachedNormChi2_(
false),
100 cachedNumberOfValidHits_(0),
104 numberOfValidHits_(0)
118 out <<
"\tpat::Muon: ";
119 out << std::setiosflags(std::ios::right);
120 out << std::setiosflags(std::ios::fixed);
121 out << std::setprecision(3);
122 out <<
" E/pT/eta/phi "
132 for (
int i_ = 0; i_<5; ++i_){
322 return t->chi2() / t->ndof();
335 return t->numberOfValidHits();
double normChi2() const
Norm chi2 gives the normalized chi2 of the global track.
virtual double energy() const GCC11_FINAL
energy
void embedStandAloneMuon()
set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) ...
reco::PFCandidateRef pfCandidateRef_
unsigned int numberOfValidHits() const
numberOfValidHits returns the number of valid hits on the global track.
reco::TrackRef innerTrack() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
void embedPFCandidate()
embed the IsolatedPFCandidate pointed to by pfCandidateRef_
bool muonID(const std::string &name) const
unsigned int numberOfValidHits_
virtual TrackRef innerTrack() const
unsigned int type_
muon type mask
bool embeddedTrack_
track of inner track detector
std::vector< reco::MuonMETCorrectionData > tcMETMuonCorrs_
bool cachedNumberOfValidHits_
has the dB been cached?
double segmentCompatibility(reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) const
Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/M...
bool embeddedStandAloneMuon_
track of muon system
virtual TrackRef tpfmsTrack() const
Muon()
default constructor
void embedPickyMuon()
embed reference to the above picky Track
bool isLooseMuon(const reco::Muon &)
void embedCombinedMuon()
set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon...
SelectionType
Selector type.
bool isSoftMuon(const reco::Muon &, const reco::Vertex &)
std::vector< reco::Track > pickyMuon_
void embedCaloMETMuonCorrs(const reco::MuonMETCorrectionData &t)
embed the MuonMETCorrectionData for muon corrected caloMET
bool isNonnull() const
Checks for non-null.
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
reco::CandidatePtr sourceCandidatePtr(size_type i) const
get the candidate pointer with index i
reco::PFCandidateRef pfCandidateRef() const
reference to the source IsolatedPFCandidates
std::vector< reco::MuonMETCorrectionData > caloMETMuonCorrs_
reco::PFCandidateCollection pfCandidate_
virtual TrackRef muonBestTrack() const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
std::vector< reco::Track > dytMuon_
double normChi2_
has the numberOfValidHits been cached?
const T & max(const T &a, const T &b)
enum pat::Muon::IPTYPE IpType
void embedTrack()
set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
ArbitrationType
define arbitration schemes
void embedTcMETMuonCorrs(const reco::MuonMETCorrectionData &t)
embed the MuonMETCorrectionData for tcMET
Analysis-level lepton class.
virtual TrackRef pickyTrack() const
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
std::vector< bool > cachedIP_
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
double dB(IpType type=None) const
reco::TrackRef tpfmsTrack() const
reference to Track reconstructed using hits in the tracker + info from the first muon station that ha...
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
reco::TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
reco::TrackRef combinedMuon() const
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
bool isHighPtMuon(const reco::Vertex &) const
reco::TrackRef standAloneMuon() const
reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) ...
bool isTightMuon(const reco::Vertex &) const
void embedTpfmsMuon()
embed reference to the above tpfms Track
std::vector< double > ip_
bool isHighPtMuon(const reco::Muon &, const reco::Vertex &)
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
bool embeddedCombinedMuon_
track of combined fit
bool isSoftMuon(const reco::Vertex &) const
void embedDytMuon()
embed reference to the above dyt Track
double edB(IpType type=None) const
std::vector< double > eip_
SelectionType selectionTypeFromString(const std::string &label)
void embedMuonBestTrack()
set reference to Track selected to be the best measurement of the muon parameters (reimplemented from...
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
key_type key() const
Accessor for product key.
bool cachedDB_
has the normalized chi2 been cached?
std::vector< reco::Track > muonBestTrack_
reco::TrackRef dytTrack() const
reference to Track reconstructed using DYT algorithm
virtual TrackRef dytTrack() const
std::vector< reco::Track > track_
std::vector< reco::Track > combinedMuon_
std::vector< reco::Track > standAloneMuon_
virtual ~Muon()
destructor
double edB_
dB and edB are the impact parameter at the primary vertex,
reco::TrackRef pickyTrack() const
reference to Track reconstructed using hits in the tracker + "good" muon hits (reimplemented from rec...
double dB_
globalTrack->chi2() / globalTrack->ndof()
ProductID id() const
Accessor for product ID.
volatile std::atomic< bool > shutdown_flag false
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
T const * get() const
Returns C++ pointer to the item.
virtual float pt() const GCC11_FINAL
transverse momentum
Analysis-level muon class.
bool embeddedMuonBestTrack_
best muon track
reco::TrackRef track() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
std::vector< reco::Track > tpfmsMuon_
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
void initImpactParameters(void)