19 embeddedMuonBestTrack_(
false),
20 embeddedImprovedMuonBestTrack_(
false),
21 improvedMuonBestTrackType_(
reco::
Muon::None),
22 embeddedTrack_(
false),
23 embeddedStandAloneMuon_(
false),
24 embeddedCombinedMuon_(
false),
25 embeddedTCMETMuonCorrs_(
false),
26 embeddedCaloMETMuonCorrs_(
false),
27 embeddedPickyMuon_(
false),
28 embeddedTpfmsMuon_(
false),
29 embeddedDytMuon_(
false),
30 embeddedPFCandidate_(
false),
32 cachedNormChi2_(
false),
34 cachedNumberOfValidHits_(0),
46 embeddedMuonBestTrack_(
false),
47 embeddedImprovedMuonBestTrack_(
false),
48 improvedMuonBestTrackType_(
reco::
Muon::None),
49 embeddedTrack_(
false),
50 embeddedStandAloneMuon_(
false),
51 embeddedCombinedMuon_(
false),
52 embeddedTCMETMuonCorrs_(
false),
53 embeddedCaloMETMuonCorrs_(
false),
54 embeddedPickyMuon_(
false),
55 embeddedTpfmsMuon_(
false),
56 embeddedDytMuon_(
false),
57 embeddedPFCandidate_(
false),
59 cachedNormChi2_(
false),
61 cachedNumberOfValidHits_(0),
73 embeddedMuonBestTrack_(
false),
74 embeddedImprovedMuonBestTrack_(
false),
75 improvedMuonBestTrackType_(
reco::
Muon::None),
76 embeddedTrack_(
false),
77 embeddedStandAloneMuon_(
false),
78 embeddedCombinedMuon_(
false),
79 embeddedTCMETMuonCorrs_(
false),
80 embeddedCaloMETMuonCorrs_(
false),
81 embeddedPickyMuon_(
false),
82 embeddedTpfmsMuon_(
false),
83 embeddedDytMuon_(
false),
84 embeddedPFCandidate_(
false),
86 cachedNormChi2_(
false),
88 cachedNumberOfValidHits_(0),
100 embeddedMuonBestTrack_(
false),
101 embeddedImprovedMuonBestTrack_(
false),
102 improvedMuonBestTrackType_(
reco::
Muon::None),
103 embeddedTrack_(
false),
104 embeddedStandAloneMuon_(
false),
105 embeddedCombinedMuon_(
false),
106 embeddedTCMETMuonCorrs_(
false),
107 embeddedCaloMETMuonCorrs_(
false),
108 embeddedPickyMuon_(
false),
109 embeddedTpfmsMuon_(
false),
110 embeddedDytMuon_(
false),
111 embeddedPFCandidate_(
false),
113 cachedNormChi2_(
false),
115 cachedNumberOfValidHits_(0),
119 numberOfValidHits_(0)
133 out <<
"\tpat::Muon: ";
134 out << std::setiosflags(std::ios::right);
135 out << std::setiosflags(std::ios::fixed);
136 out << std::setprecision(3);
137 out <<
" E/pT/eta/phi "
147 for (
int i_ = 0; i_<5; ++i_){
216 return newBestTrack.first;
226 return newBestTrack.first;
267 edm::LogError(
"PATMuon|embedImprovedMuonBestTrack") <<
"Orphan best track this must not happend!";
368 return t->chi2() / t->ndof();
381 return t->numberOfValidHits();
double normChi2() const
Norm chi2 gives the normalized chi2 of the global track.
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) ...
reco::Muon::MuonTrackTypePair muonBestTrack(const reco::Muon &muon, reco::TunePType tunePType)
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
bool embeddedImprovedMuonBestTrack_
best muon track, after new tuneP
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
std::vector< reco::Track > improvedMuonBestTrack_
reco::TrackRef improvedMuonBestTrack() const
reference to the Best Track reconstructed in both tracked and muon detector (reimplemented from reco:...
Muon()
default constructor
virtual double eta() const
momentum pseudorapidity
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.
reco::CandidatePtr sourceCandidatePtr(size_type i) const
get the candidate pointer with index i
virtual double energy() const
energy
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
bool isHighPtMuon(const reco::Vertex &, reco::TunePType) const
reco::TrackRef combinedMuon() const
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
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_
reco::TrackRef muonBestTrack() const
reference to the Best Track reconstructed in both tracked and muon detector (reimplemented from reco:...
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...
virtual double pt() const
transverse momentum
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?
void embedImprovedMuonBestTrack()
set reference to Track selected to be the best measurement of the muon parameters (reimplemented from...
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...
bool isHighPtMuon(const reco::Muon &, const reco::Vertex &, reco::TunePType)
double dB_
globalTrack->chi2() / globalTrack->ndof()
ProductID id() const
Accessor for product ID.
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
std::pair< TrackRef, Muon::MuonTrackType > MuonTrackTypePair
T const * get() const
Returns C++ pointer to the item.
virtual double phi() const
momentum azimuthal angle
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)