CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
reco::ME0Muon Class Reference

#include <DataFormats/MuonReco/interface/ME0Muon.h>

Inheritance diagram for reco::ME0Muon:
reco::RecoCandidate reco::LeafCandidate reco::Candidate

Public Member Functions

const AlgebraicSymMatrix66globalTrackCov () const
 
const GlobalVectorglobalTrackMomAtSurface () const
 
const GlobalPointglobalTrackPosAtSurface () const
 
TrackRef innerTrack () const
 reference to Track reconstructed in the tracker only More...
 
const AlgebraicSymMatrix55localTrackCov () const
 
const LocalVectorlocalTrackMomAtSurface () const
 
const LocalPointlocalTrackPosAtSurface () const
 
 ME0Muon ()
 
 ME0Muon (const TrackRef &t, const ME0Segment &s, const int v, const double c)
 
int me0segid () const
 
const ME0Segmentme0segment () const
 
void setGlobalTrackCov (const AlgebraicSymMatrix66 &trackCov)
 
void setGlobalTrackMomAtSurface (const GlobalVector &globalTrackMomAtSurface)
 
void setGlobalTrackPosAtSurface (const GlobalPoint &globalTrackPosAtSurface)
 
void setInnerTrack (const TrackRef &t)
 set reference to Track More...
 
void setLocalTrackCov (const AlgebraicSymMatrix55 &trackCov)
 
void setLocalTrackMomAtSurface (const LocalVector &localTrackMomAtSurface)
 
void setLocalTrackPosAtSurface (const LocalPoint &localTrackPosAtSurface)
 
void setme0segid (const int v)
 
void setME0Segment (const ME0Segment &s)
 set reference to our new ME0Segment type More...
 
void setTrack (const TrackRef &t)
 
void setTrackCharge (const int &trackCharge)
 
TrackRef track () const override
 reference to a Track More...
 
int trackCharge () const
 
 ~ME0Muon () override
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const override
 best track pointer More...
 
virtual TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
RecoCandidateclone () const override
 returns a clone of the Candidate object More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
float dxyError () const override
 uncertainty on dxy More...
 
float dzError () const override
 uncertainty on dz More...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
template<typename P4 >
 RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
virtual reco::TrackRef standAloneMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::SuperClusterRef superCluster () const
 reference to a SuperCluster More...
 
virtual reco::TrackRef track (size_t) const
 reference to one of multiple Tracks More...
 
 ~RecoCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
 Candidate ()
 default constructor More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

bool overlap (const Candidate &) const override
 check overlap with another candidate More...
 

Private Attributes

AlgebraicSymMatrix66 globalTrackCov_
 
GlobalVector globalTrackMomAtSurface_
 
GlobalPoint globalTrackPosAtSurface_
 
TrackRef innerTrack_
 reference to Track reconstructed in the tracker only More...
 
AlgebraicSymMatrix55 localTrackCov_
 
LocalVector localTrackMomAtSurface_
 
LocalPoint localTrackPosAtSurface_
 
int me0segid_
 
ME0Segment me0Segment_
 
int trackCharge_
 

Additional Inherited Members

- Public Types inherited from reco::RecoCandidate
enum  TrackType { noTrackType, recoTrackType, gsfTrackType }
 track type More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 

Detailed Description

Author
David Nash NEU

Definition at line 21 of file ME0Muon.h.

Constructor & Destructor Documentation

ME0Muon::ME0Muon ( )

Definition at line 9 of file ME0Muon.cc.

9 {}
reco::ME0Muon::ME0Muon ( const TrackRef t,
const ME0Segment s,
const int  v,
const double  c 
)
inline

Definition at line 25 of file ME0Muon.h.

References HltBtagPostValidation_cff::c, innerTrack_, me0segid_, me0Segment_, alignCSCRings::s, OrderedSet::t, trackCharge_, and findQualityFiles::v.

25  {
26  innerTrack_ = t;
27  me0Segment_ = s;
28  me0segid_ = v;
29  trackCharge_ = c;
30  }
int trackCharge_
Definition: ME0Muon.h:87
ME0Segment me0Segment_
Definition: ME0Muon.h:79
int me0segid_
Definition: ME0Muon.h:80
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: ME0Muon.h:78
reco::ME0Muon::~ME0Muon ( )
inlineoverride

Definition at line 31 of file ME0Muon.h.

31 {}

Member Function Documentation

const AlgebraicSymMatrix66& reco::ME0Muon::globalTrackCov ( ) const
inline

Definition at line 54 of file ME0Muon.h.

References globalTrackCov_.

54 { return globalTrackCov_; }
AlgebraicSymMatrix66 globalTrackCov_
Definition: ME0Muon.h:88
const GlobalVector& reco::ME0Muon::globalTrackMomAtSurface ( ) const
inline

Definition at line 49 of file ME0Muon.h.

References globalTrackMomAtSurface_.

Referenced by setGlobalTrackMomAtSurface().

49 { return globalTrackMomAtSurface_; }
GlobalVector globalTrackMomAtSurface_
Definition: ME0Muon.h:83
const GlobalPoint& reco::ME0Muon::globalTrackPosAtSurface ( ) const
inline

Definition at line 48 of file ME0Muon.h.

References globalTrackPosAtSurface_.

Referenced by setGlobalTrackPosAtSurface().

48 { return globalTrackPosAtSurface_; }
GlobalPoint globalTrackPosAtSurface_
Definition: ME0Muon.h:82
TrackRef reco::ME0Muon::innerTrack ( ) const
inline

reference to Track reconstructed in the tracker only

Definition at line 34 of file ME0Muon.h.

References innerTrack_.

Referenced by Lepton.Lepton::lostInner(), Muon.Muon::muonID(), and track().

34 { return innerTrack_; }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: ME0Muon.h:78
const AlgebraicSymMatrix55& reco::ME0Muon::localTrackCov ( ) const
inline

Definition at line 55 of file ME0Muon.h.

References localTrackCov_.

Referenced by muon::isGoodMuon().

55 { return localTrackCov_; }
AlgebraicSymMatrix55 localTrackCov_
Definition: ME0Muon.h:89
const LocalVector& reco::ME0Muon::localTrackMomAtSurface ( ) const
inline

Definition at line 51 of file ME0Muon.h.

References localTrackMomAtSurface_.

Referenced by muon::isGoodMuon(), and setLocalTrackMomAtSurface().

51 { return localTrackMomAtSurface_; }
LocalVector localTrackMomAtSurface_
Definition: ME0Muon.h:86
const LocalPoint& reco::ME0Muon::localTrackPosAtSurface ( ) const
inline

Definition at line 50 of file ME0Muon.h.

References localTrackPosAtSurface_.

Referenced by muon::isGoodMuon(), and setLocalTrackPosAtSurface().

50 { return localTrackPosAtSurface_; }
LocalPoint localTrackPosAtSurface_
Definition: ME0Muon.h:85
int reco::ME0Muon::me0segid ( ) const
inline

Definition at line 46 of file ME0Muon.h.

References me0segid_.

46 { return me0segid_; }
int me0segid_
Definition: ME0Muon.h:80
const ME0Segment& reco::ME0Muon::me0segment ( ) const
inline

Definition at line 42 of file ME0Muon.h.

References me0Segment_.

Referenced by muon::isGoodMuon().

42 { return me0Segment_; }
ME0Segment me0Segment_
Definition: ME0Muon.h:79
bool ME0Muon::overlap ( const Candidate c) const
overrideprivatevirtual

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 11 of file ME0Muon.cc.

References HltBtagPostValidation_cff::c, reco::RecoCandidate::checkOverlap(), EcalTangentSkim_cfg::o, track(), and reco::RecoCandidate::track().

Referenced by setLocalTrackCov().

11  {
12  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
13  return (o != nullptr && (checkOverlap(track(), o->track())));
14 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
virtual reco::TrackRef track() const
reference to a Track
TrackRef track() const override
reference to a Track
Definition: ME0Muon.h:35
void reco::ME0Muon::setGlobalTrackCov ( const AlgebraicSymMatrix66 trackCov)
inline

Definition at line 70 of file ME0Muon.h.

References globalTrackCov_.

Referenced by ME0SegmentMatcher::produce().

70 { globalTrackCov_ = trackCov; }
AlgebraicSymMatrix66 globalTrackCov_
Definition: ME0Muon.h:88
void reco::ME0Muon::setGlobalTrackMomAtSurface ( const GlobalVector globalTrackMomAtSurface)
inline

Definition at line 60 of file ME0Muon.h.

References globalTrackMomAtSurface(), and globalTrackMomAtSurface_.

Referenced by ME0SegmentMatcher::produce().

60  {
62  }
const GlobalVector & globalTrackMomAtSurface() const
Definition: ME0Muon.h:49
GlobalVector globalTrackMomAtSurface_
Definition: ME0Muon.h:83
void reco::ME0Muon::setGlobalTrackPosAtSurface ( const GlobalPoint globalTrackPosAtSurface)
inline

Definition at line 57 of file ME0Muon.h.

References globalTrackPosAtSurface(), and globalTrackPosAtSurface_.

Referenced by ME0SegmentMatcher::produce().

57  {
59  }
const GlobalPoint & globalTrackPosAtSurface() const
Definition: ME0Muon.h:48
GlobalPoint globalTrackPosAtSurface_
Definition: ME0Muon.h:82
void reco::ME0Muon::setInnerTrack ( const TrackRef t)
inline

set reference to Track

Definition at line 37 of file ME0Muon.h.

References innerTrack_, and OrderedSet::t.

Referenced by setTrack().

37 { innerTrack_ = t; }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: ME0Muon.h:78
void reco::ME0Muon::setLocalTrackCov ( const AlgebraicSymMatrix55 trackCov)
inline

Definition at line 71 of file ME0Muon.h.

References localTrackCov_, and overlap().

Referenced by ME0SegmentMatcher::produce().

71 { localTrackCov_ = trackCov; }
AlgebraicSymMatrix55 localTrackCov_
Definition: ME0Muon.h:89
void reco::ME0Muon::setLocalTrackMomAtSurface ( const LocalVector localTrackMomAtSurface)
inline

Definition at line 66 of file ME0Muon.h.

References localTrackMomAtSurface(), and localTrackMomAtSurface_.

Referenced by ME0SegmentMatcher::produce().

66  {
68  }
const LocalVector & localTrackMomAtSurface() const
Definition: ME0Muon.h:51
LocalVector localTrackMomAtSurface_
Definition: ME0Muon.h:86
void reco::ME0Muon::setLocalTrackPosAtSurface ( const LocalPoint localTrackPosAtSurface)
inline

Definition at line 63 of file ME0Muon.h.

References localTrackPosAtSurface(), and localTrackPosAtSurface_.

Referenced by ME0SegmentMatcher::produce().

63  {
65  }
const LocalPoint & localTrackPosAtSurface() const
Definition: ME0Muon.h:50
LocalPoint localTrackPosAtSurface_
Definition: ME0Muon.h:85
void reco::ME0Muon::setme0segid ( const int  v)
inline

Definition at line 45 of file ME0Muon.h.

References me0segid_, and findQualityFiles::v.

void reco::ME0Muon::setME0Segment ( const ME0Segment s)
inline

set reference to our new ME0Segment type

Definition at line 40 of file ME0Muon.h.

References me0Segment_, and alignCSCRings::s.

40 { me0Segment_ = s; }
ME0Segment me0Segment_
Definition: ME0Muon.h:79
void reco::ME0Muon::setTrack ( const TrackRef t)
inline

Definition at line 38 of file ME0Muon.h.

References setInnerTrack().

38 { setInnerTrack(t); }
void setInnerTrack(const TrackRef &t)
set reference to Track
Definition: ME0Muon.h:37
void reco::ME0Muon::setTrackCharge ( const int &  trackCharge)
inline

Definition at line 69 of file ME0Muon.h.

References trackCharge(), and trackCharge_.

int trackCharge() const
Definition: ME0Muon.h:53
int trackCharge_
Definition: ME0Muon.h:87
TrackRef reco::ME0Muon::track ( ) const
inlineoverridevirtual

reference to a Track

Reimplemented from reco::RecoCandidate.

Definition at line 35 of file ME0Muon.h.

References innerTrack().

Referenced by overlap().

35 { return innerTrack(); }
TrackRef innerTrack() const
reference to Track reconstructed in the tracker only
Definition: ME0Muon.h:34
int reco::ME0Muon::trackCharge ( ) const
inline

Definition at line 53 of file ME0Muon.h.

References trackCharge_.

Referenced by setTrackCharge().

53 { return trackCharge_; }
int trackCharge_
Definition: ME0Muon.h:87

Member Data Documentation

AlgebraicSymMatrix66 reco::ME0Muon::globalTrackCov_
private

Definition at line 88 of file ME0Muon.h.

Referenced by globalTrackCov(), and setGlobalTrackCov().

GlobalVector reco::ME0Muon::globalTrackMomAtSurface_
private

Definition at line 83 of file ME0Muon.h.

Referenced by globalTrackMomAtSurface(), and setGlobalTrackMomAtSurface().

GlobalPoint reco::ME0Muon::globalTrackPosAtSurface_
private

Definition at line 82 of file ME0Muon.h.

Referenced by globalTrackPosAtSurface(), and setGlobalTrackPosAtSurface().

TrackRef reco::ME0Muon::innerTrack_
private

reference to Track reconstructed in the tracker only

Definition at line 78 of file ME0Muon.h.

Referenced by innerTrack(), ME0Muon(), and setInnerTrack().

AlgebraicSymMatrix55 reco::ME0Muon::localTrackCov_
private

Definition at line 89 of file ME0Muon.h.

Referenced by localTrackCov(), and setLocalTrackCov().

LocalVector reco::ME0Muon::localTrackMomAtSurface_
private

Definition at line 86 of file ME0Muon.h.

Referenced by localTrackMomAtSurface(), and setLocalTrackMomAtSurface().

LocalPoint reco::ME0Muon::localTrackPosAtSurface_
private

Definition at line 85 of file ME0Muon.h.

Referenced by localTrackPosAtSurface(), and setLocalTrackPosAtSurface().

int reco::ME0Muon::me0segid_
private

Definition at line 80 of file ME0Muon.h.

Referenced by ME0Muon(), me0segid(), and setme0segid().

ME0Segment reco::ME0Muon::me0Segment_
private

Definition at line 79 of file ME0Muon.h.

Referenced by ME0Muon(), me0segment(), and setME0Segment().

int reco::ME0Muon::trackCharge_
private

Definition at line 87 of file ME0Muon.h.

Referenced by ME0Muon(), setTrackCharge(), and trackCharge().