CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
MatchingResult Class Reference

#include <CandidateSimMuonMatcher.h>

Public Types

enum  ResultType : short { ResultType::propagationFailed = -1, ResultType::notMatched = 0, ResultType::matched = 1, ResultType::duplicate = 2 }
 

Public Member Functions

 MatchingResult ()
 
 MatchingResult (const SimTrack &simTrack)
 
 MatchingResult (const TrackingParticle &trackingParticle)
 

Public Attributes

double deltaEta = 0
 
double deltaPhi = 0
 
double genEta = 0
 
double genPhi = 0
 
double genPt = 0
 
double matchingLikelihood = 0
 
const l1t::RegionalMuonCandmuonCand = nullptr
 
double pdgId = 0
 
AlgoMuonPtr procMuon
 
double propagatedEta = 0
 
double propagatedPhi = 0
 
ResultType result = ResultType::notMatched
 
const SimTracksimTrack = nullptr
 
const TrackingParticletrackingParticle = nullptr
 

Detailed Description

Definition at line 49 of file CandidateSimMuonMatcher.h.

Member Enumeration Documentation

◆ ResultType

enum MatchingResult::ResultType : short
strong
Enumerator
propagationFailed 
notMatched 
matched 
duplicate 

Definition at line 51 of file CandidateSimMuonMatcher.h.

51 : short { propagationFailed = -1, notMatched = 0, matched = 1, duplicate = 2 };

Constructor & Destructor Documentation

◆ MatchingResult() [1/3]

MatchingResult::MatchingResult ( )
inline

Definition at line 53 of file CandidateSimMuonMatcher.h.

53 {}

◆ MatchingResult() [2/3]

MatchingResult::MatchingResult ( const SimTrack simTrack)
inline

Definition at line 55 of file CandidateSimMuonMatcher.h.

References genEta, genPhi, genPt, CoreSimTrack::momentum(), pdgId, simTrack, and CoreSimTrack::type().

55  : simTrack(&simTrack) {
56  pdgId = simTrack.type();
57  genPt = simTrack.momentum().pt();
58  genEta = simTrack.momentum().eta();
59  genPhi = simTrack.momentum().phi();
60  }
const math::XYZTLorentzVectorD & momentum() const
Definition: CoreSimTrack.h:19
int type() const
particle type (HEP PDT convension)
Definition: CoreSimTrack.h:22
const SimTrack * simTrack

◆ MatchingResult() [3/3]

MatchingResult::MatchingResult ( const TrackingParticle trackingParticle)
inline

Definition at line 62 of file CandidateSimMuonMatcher.h.

References genEta, genPhi, genPt, TrackingParticle::momentum(), TrackingParticle::pdgId(), pdgId, TrackingParticle::pt(), and trackingParticle.

67  }
int pdgId() const
PDG ID.
Vector momentum() const
spatial momentum vector
const TrackingParticle * trackingParticle
double pt() const
Transverse momentum. Note this is taken from the first SimTrack only.

Member Data Documentation

◆ deltaEta

double MatchingResult::deltaEta = 0

Definition at line 72 of file CandidateSimMuonMatcher.h.

◆ deltaPhi

double MatchingResult::deltaPhi = 0

Definition at line 71 of file CandidateSimMuonMatcher.h.

◆ genEta

double MatchingResult::genEta = 0

Definition at line 85 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

◆ genPhi

double MatchingResult::genPhi = 0

Definition at line 86 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

◆ genPt

double MatchingResult::genPt = 0

Definition at line 84 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

◆ matchingLikelihood

double MatchingResult::matchingLikelihood = 0

Definition at line 77 of file CandidateSimMuonMatcher.h.

◆ muonCand

const l1t::RegionalMuonCand* MatchingResult::muonCand = nullptr

Definition at line 79 of file CandidateSimMuonMatcher.h.

◆ pdgId

double MatchingResult::pdgId = 0

Definition at line 83 of file CandidateSimMuonMatcher.h.

Referenced by Particle.Particle::__str__(), and MatchingResult().

◆ procMuon

AlgoMuonPtr MatchingResult::procMuon

Definition at line 80 of file CandidateSimMuonMatcher.h.

◆ propagatedEta

double MatchingResult::propagatedEta = 0

Definition at line 75 of file CandidateSimMuonMatcher.h.

◆ propagatedPhi

double MatchingResult::propagatedPhi = 0

Definition at line 74 of file CandidateSimMuonMatcher.h.

◆ result

ResultType MatchingResult::result = ResultType::notMatched

Definition at line 69 of file CandidateSimMuonMatcher.h.

◆ simTrack

const SimTrack* MatchingResult::simTrack = nullptr

Definition at line 88 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

◆ trackingParticle

const TrackingParticle* MatchingResult::trackingParticle = nullptr

Definition at line 89 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().