CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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::MatchingResult ( )
inline

Definition at line 53 of file CandidateSimMuonMatcher.h.

53 {}
MatchingResult::MatchingResult ( const SimTrack simTrack)
inline

Definition at line 55 of file CandidateSimMuonMatcher.h.

References genEta, genPhi, genPt, CoreSimTrack::momentum(), pdgId, 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  }
int type() const
particle type (HEP PDT convension)
Definition: CoreSimTrack.h:22
const math::XYZTLorentzVectorD & momentum() const
Definition: CoreSimTrack.h:19
const SimTrack * simTrack
MatchingResult::MatchingResult ( const TrackingParticle trackingParticle)
inline

Definition at line 62 of file CandidateSimMuonMatcher.h.

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

62  : trackingParticle(&trackingParticle) {
63  pdgId = trackingParticle.pdgId();
64  genPt = trackingParticle.pt();
65  genEta = trackingParticle.momentum().eta();
66  genPhi = trackingParticle.momentum().phi();
67  }
Vector momentum() const
spatial momentum vector
int pdgId() const
PDG ID.
double pt() const
Transverse momentum. Note this is taken from the first SimTrack only.
const TrackingParticle * trackingParticle

Member Data Documentation

double MatchingResult::deltaEta = 0

Definition at line 72 of file CandidateSimMuonMatcher.h.

Referenced by CandidateSimMuonMatcher::match().

double MatchingResult::deltaPhi = 0

Definition at line 71 of file CandidateSimMuonMatcher.h.

Referenced by CandidateSimMuonMatcher::match().

double MatchingResult::genEta = 0

Definition at line 85 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

double MatchingResult::genPhi = 0

Definition at line 86 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

double MatchingResult::genPt = 0

Definition at line 84 of file CandidateSimMuonMatcher.h.

Referenced by MatchingResult().

double MatchingResult::matchingLikelihood = 0
const l1t::RegionalMuonCand* MatchingResult::muonCand = nullptr
double MatchingResult::pdgId = 0

Definition at line 83 of file CandidateSimMuonMatcher.h.

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

AlgoMuonPtr MatchingResult::procMuon
double MatchingResult::propagatedEta = 0

Definition at line 75 of file CandidateSimMuonMatcher.h.

Referenced by CandidateSimMuonMatcher::match().

double MatchingResult::propagatedPhi = 0

Definition at line 74 of file CandidateSimMuonMatcher.h.

Referenced by CandidateSimMuonMatcher::match().

ResultType MatchingResult::result = ResultType::notMatched

Definition at line 69 of file CandidateSimMuonMatcher.h.

Referenced by CandidateSimMuonMatcher::match().

const SimTrack* MatchingResult::simTrack = nullptr

Definition at line 88 of file CandidateSimMuonMatcher.h.

const TrackingParticle* MatchingResult::trackingParticle = nullptr

Definition at line 89 of file CandidateSimMuonMatcher.h.