CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::KMTFTrack Class Reference

#include <KMTFTrack.h>

Inheritance diagram for l1t::KMTFTrack:
reco::LeafCandidate reco::Candidate

Public Member Functions

void addStub (const l1t::MuonStubRef &stub)
 
int approxDispChi2 () const
 
int approxDispErrChi2 () const
 
int approxPromptChi2 () const
 
int approxPromptErrChi2 () const
 
int bendingAngle () const
 
int bx () const
 
int coarseEta () const
 
const std::vector< double > & covariance () const
 
int curvature () const
 
int curvatureAtMuon () const
 
int curvatureAtVertex () const
 
reco::LeafCandidate::PolarLorentzVector displacedP4 () const
 
int dxy () const
 
int fineEta () const
 
bool hasFineEta () const
 
int hitPattern () const
 
int id () const
 
const std::vector< float > & kalmanGain (unsigned int step) const
 
 KMTFTrack ()
 
 KMTFTrack (const l1t::MuonStubRef &seed, int phi, int phiB)
 
bool operator== (const KMTFTrack &t2) const
 
bool overlapTrack (const KMTFTrack &other) const
 
int phiAtMuon () const
 
int phiAtVertex () const
 
int phiBAtMuon () const
 
int positionAngle () const
 
int ptDisplaced () const
 
int ptPrompt () const
 
int quality () const
 
int rankDisp () const
 
int rankPrompt () const
 
int residual (uint i) const
 
int sector () const
 
void setApproxChi2 (int chi, int chiErr, bool prompt)
 
void setCoarseEta (int eta)
 
void setCoordinates (int step, int curv, int phi, int phiB)
 
void setCoordinatesAtMuon (int curv, int phi, int phiB)
 
void setCoordinatesAtVertex (int curv, int phi, int dxy)
 
void setCovariance (const CovarianceMatrix &c)
 
void setFineEta (int eta)
 
void setHitPattern (int pattern)
 
void setIDFlag (bool passPrompt, bool passDisp)
 
void setKalmanGain (unsigned int step, unsigned int K, float a1, float a2, float a3=0, float a4=0, float a5=0, float a6=0)
 
void setPt (int ptC, int ptU)
 
void setPtEtaPhi (double pt, double eta, double phi)
 
void setPtEtaPhiDisplaced (double pt, double eta, double phi)
 
void setRank (int rank, bool vertex)
 
void setResidual (uint i, int val)
 
void setStubs (const l1t::MuonStubRefVector &stubs)
 
int step () const
 
const l1t::MuonStubRefVectorstubs () const
 
int wheel () const
 
 ~KMTFTrack () override=default
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
LeafCandidateclone () const override
 returns a clone of the Candidate object 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...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz 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 Attributes

int approxDispChi2_
 
int approxDispErrChi2_
 
int approxPromptChi2_
 
int approxPromptErrChi2_
 
int bx_
 
int coarseEta_
 
std::vector< double > covariance_
 
int curv_
 
int curvMuon_
 
int curvVertex_
 
int dxy_
 
int fineEta_
 
bool hasFineEta_
 
int hitPattern_
 
int idFlag_
 
std::vector< float > kalmanGain0_
 
std::vector< float > kalmanGain1_
 
std::vector< float > kalmanGain2_
 
std::vector< float > kalmanGain3_
 
int phi_
 
int phiB_
 
int phiBMuon_
 
int phiMuon_
 
int phiVertex_
 
int ptC_
 
int ptU_
 
int quality_
 
int rankDisp_
 
int rankPrompt_
 
std::vector< int > residuals_
 
int sector_
 
int step_
 
l1t::MuonStubRefVector stubs_
 
reco::LeafCandidate::PolarLorentzVector unconstrainedP4_
 
int wheel_
 

Additional Inherited Members

- 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...
 

Detailed Description

Definition at line 14 of file KMTFTrack.h.

Constructor & Destructor Documentation

◆ KMTFTrack() [1/2]

l1t::KMTFTrack::KMTFTrack ( )
inline

Definition at line 16 of file KMTFTrack.h.

19  covariance_(std::vector<double>(6, 0.0)),
20  curvVertex_(0),
21  ptC_(0),
22  phiVertex_(0),
23  dxy_(0),
24  curvMuon_(0),
25  ptU_(0),
26  phiMuon_(0),
27  phiBMuon_(0),
28  curv_(0),
29  phi_(0),
30  phiB_(0),
31  coarseEta_(0),
34  approxDispChi2_(0),
36  hitPattern_(0),
37  step_(1),
38  sector_(0),
39  wheel_(0),
40  quality_(0),
41  hasFineEta_(false),
42  bx_(0),
43  rankPrompt_(0),
44  rankDisp_(0),
45  idFlag_(0) {}
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
std::vector< double > covariance_
Definition: KMTFTrack.h:331
int approxDispErrChi2_
Definition: KMTFTrack.h:357
reco::LeafCandidate::PolarLorentzVector unconstrainedP4_
Definition: KMTFTrack.h:328
int approxPromptChi2_
Definition: KMTFTrack.h:354
int approxDispChi2_
Definition: KMTFTrack.h:356
int approxPromptErrChi2_
Definition: KMTFTrack.h:355
bool hasFineEta_
Definition: KMTFTrack.h:377

◆ ~KMTFTrack()

l1t::KMTFTrack::~KMTFTrack ( )
overridedefault

◆ KMTFTrack() [2/2]

l1t::KMTFTrack::KMTFTrack ( const l1t::MuonStubRef seed,
int  phi,
int  phiB 
)
inline

Definition at line 49 of file KMTFTrack.h.

References residuals_, fileCollector::seed, and stubs_.

52  covariance_(std::vector<double>(6, 0.0)),
53  curvVertex_(0),
54  ptC_(0),
55  phiVertex_(0),
56  dxy_(0),
57  curvMuon_(0),
58  ptU_(0),
59  phiMuon_(0),
60  phiBMuon_(0),
61  curv_(0),
62  phi_(phi),
63  phiB_(phiB),
64  coarseEta_(0),
67  approxDispChi2_(0),
69  hitPattern_(0),
70  step_(seed->depthRegion()),
71  sector_(seed->phiRegion()),
72  wheel_(seed->etaRegion()),
73  quality_(seed->quality()),
74  hasFineEta_(false),
75  bx_(seed->bxNum()),
76  rankPrompt_(0),
77  rankDisp_(0),
78  idFlag_(0) {
79  stubs_.push_back(seed);
80  residuals_.push_back(0);
81  residuals_.push_back(0);
82  residuals_.push_back(0);
83  }
l1t::MuonStubRefVector stubs_
Definition: KMTFTrack.h:332
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
std::vector< double > covariance_
Definition: KMTFTrack.h:331
int approxDispErrChi2_
Definition: KMTFTrack.h:357
reco::LeafCandidate::PolarLorentzVector unconstrainedP4_
Definition: KMTFTrack.h:328
int approxPromptChi2_
Definition: KMTFTrack.h:354
int approxDispChi2_
Definition: KMTFTrack.h:356
int approxPromptErrChi2_
Definition: KMTFTrack.h:355
std::vector< int > residuals_
Definition: KMTFTrack.h:395
double phi() const final
momentum azimuthal angle
bool hasFineEta_
Definition: KMTFTrack.h:377

Member Function Documentation

◆ addStub()

void l1t::KMTFTrack::addStub ( const l1t::MuonStubRef stub)
inline

Definition at line 239 of file KMTFTrack.h.

References quality_, and stubs_.

239  {
240  if (stub->quality() < quality_)
241  quality_ = stub->quality();
242  stubs_.push_back(stub);
243  }
l1t::MuonStubRefVector stubs_
Definition: KMTFTrack.h:332

◆ approxDispChi2()

int l1t::KMTFTrack::approxDispChi2 ( ) const
inline

Definition at line 115 of file KMTFTrack.h.

References approxDispChi2_.

115 { return approxDispChi2_; }
int approxDispChi2_
Definition: KMTFTrack.h:356

◆ approxDispErrChi2()

int l1t::KMTFTrack::approxDispErrChi2 ( ) const
inline

Definition at line 116 of file KMTFTrack.h.

References approxDispErrChi2_.

116 { return approxDispErrChi2_; }
int approxDispErrChi2_
Definition: KMTFTrack.h:357

◆ approxPromptChi2()

int l1t::KMTFTrack::approxPromptChi2 ( ) const
inline

Definition at line 113 of file KMTFTrack.h.

References approxPromptChi2_.

113 { return approxPromptChi2_; }
int approxPromptChi2_
Definition: KMTFTrack.h:354

◆ approxPromptErrChi2()

int l1t::KMTFTrack::approxPromptErrChi2 ( ) const
inline

Definition at line 114 of file KMTFTrack.h.

References approxPromptErrChi2_.

114 { return approxPromptErrChi2_; }
int approxPromptErrChi2_
Definition: KMTFTrack.h:355

◆ bendingAngle()

int l1t::KMTFTrack::bendingAngle ( ) const
inline

Definition at line 109 of file KMTFTrack.h.

References phiB_.

109 { return phiB_; }

◆ bx()

int l1t::KMTFTrack::bx ( ) const
inline

Definition at line 133 of file KMTFTrack.h.

References bx_.

133 { return bx_; }

◆ coarseEta()

int l1t::KMTFTrack::coarseEta ( ) const
inline

Definition at line 111 of file KMTFTrack.h.

References coarseEta_.

111 { return coarseEta_; }

◆ covariance()

const std::vector<double>& l1t::KMTFTrack::covariance ( void  ) const
inline

Definition at line 160 of file KMTFTrack.h.

References covariance_.

160 { return covariance_; }
std::vector< double > covariance_
Definition: KMTFTrack.h:331

◆ curvature()

int l1t::KMTFTrack::curvature ( ) const
inline

Definition at line 105 of file KMTFTrack.h.

References curv_.

105 { return curv_; }

◆ curvatureAtMuon()

int l1t::KMTFTrack::curvatureAtMuon ( ) const
inline

Definition at line 90 of file KMTFTrack.h.

References curvMuon_.

90 { return curvMuon_; }

◆ curvatureAtVertex()

int l1t::KMTFTrack::curvatureAtVertex ( ) const
inline

Definition at line 99 of file KMTFTrack.h.

References curvVertex_.

99 { return curvVertex_; }

◆ displacedP4()

reco::LeafCandidate::PolarLorentzVector l1t::KMTFTrack::displacedP4 ( ) const
inline

Definition at line 85 of file KMTFTrack.h.

References unconstrainedP4_.

85 { return unconstrainedP4_; }
reco::LeafCandidate::PolarLorentzVector unconstrainedP4_
Definition: KMTFTrack.h:328

◆ dxy()

int l1t::KMTFTrack::dxy ( ) const
inline

Definition at line 103 of file KMTFTrack.h.

References dxy_.

Referenced by Electron.Electron::cutBasedId(), ntupleDataFormat.Track::dxyPull(), and setCoordinatesAtVertex().

103 { return dxy_; }

◆ fineEta()

int l1t::KMTFTrack::fineEta ( ) const
inline

Definition at line 129 of file KMTFTrack.h.

References fineEta_.

129 { return fineEta_; }

◆ hasFineEta()

bool l1t::KMTFTrack::hasFineEta ( ) const
inline

Definition at line 130 of file KMTFTrack.h.

References hasFineEta_.

130 { return hasFineEta_; }
bool hasFineEta_
Definition: KMTFTrack.h:377

◆ hitPattern()

int l1t::KMTFTrack::hitPattern ( ) const
inline

Definition at line 118 of file KMTFTrack.h.

References hitPattern_.

118 { return hitPattern_; }

◆ id()

int l1t::KMTFTrack::id ( ) const
inline

Definition at line 139 of file KMTFTrack.h.

References idFlag_.

Referenced by Phase2L1GMT::KMTF::swap().

139 { return idFlag_; }

◆ kalmanGain()

const std::vector<float>& l1t::KMTFTrack::kalmanGain ( unsigned int  step) const
inline

Definition at line 145 of file KMTFTrack.h.

References kalmanGain0_, kalmanGain1_, kalmanGain2_, and kalmanGain3_.

145  {
146  switch (step) {
147  case 3:
148  return kalmanGain3_;
149  case 2:
150  return kalmanGain2_;
151  case 1:
152  return kalmanGain1_;
153  case 0:
154  return kalmanGain0_;
155  }
156  return kalmanGain0_;
157  }
std::vector< float > kalmanGain3_
Definition: KMTFTrack.h:393
std::vector< float > kalmanGain1_
Definition: KMTFTrack.h:391
std::vector< float > kalmanGain0_
Definition: KMTFTrack.h:390
std::vector< float > kalmanGain2_
Definition: KMTFTrack.h:392
step
Definition: StallMonitor.cc:83

◆ operator==()

bool l1t::KMTFTrack::operator== ( const KMTFTrack t2) const
inline

Definition at line 177 of file KMTFTrack.h.

References mps_fire::i, edm::Ref< C, T, F >::id(), reco::Candidate::size, stubs(), and RandomServiceHelper::t2.

177  {
178  if (this->stubs().size() != t2.stubs().size())
179  return false;
180  for (unsigned int i = 0; i < this->stubs().size(); ++i) {
181  const l1t::MuonStubRef& s1 = this->stubs()[i];
182  const l1t::MuonStubRef& s2 = t2.stubs()[i];
183  if (s1->phiRegion() != s2->phiRegion() || s1->etaRegion() != s2->etaRegion() ||
184  s1->depthRegion() != s2->depthRegion() || s1->id() != s2->id() || s1->tfLayer() != s2->tfLayer())
185  return false;
186  }
187  return true;
188  }
ProductID id() const
Accessor for product ID.
Definition: Ref.h:244
const l1t::MuonStubRefVector & stubs() const
Definition: KMTFTrack.h:142

◆ overlapTrack()

bool l1t::KMTFTrack::overlapTrack ( const KMTFTrack other) const
inline

Definition at line 166 of file KMTFTrack.h.

References trackingPlots::other, and stubs_.

166  {
167  for (const auto& s1 : stubs_) {
168  for (const auto& s2 : other.stubs()) {
169  if (s1->phiRegion() == s2->phiRegion() && s1->etaRegion() == s2->etaRegion() &&
170  s1->depthRegion() == s2->depthRegion() && s1->id() == s2->id())
171  return true;
172  }
173  }
174  return false;
175  }
l1t::MuonStubRefVector stubs_
Definition: KMTFTrack.h:332

◆ phiAtMuon()

int l1t::KMTFTrack::phiAtMuon ( ) const
inline

Definition at line 92 of file KMTFTrack.h.

References phiMuon_.

92 { return phiMuon_; }

◆ phiAtVertex()

int l1t::KMTFTrack::phiAtVertex ( ) const
inline

Definition at line 101 of file KMTFTrack.h.

References phiVertex_.

101 { return phiVertex_; }

◆ phiBAtMuon()

int l1t::KMTFTrack::phiBAtMuon ( ) const
inline

Definition at line 94 of file KMTFTrack.h.

References phiBMuon_.

94 { return phiBMuon_; }

◆ positionAngle()

int l1t::KMTFTrack::positionAngle ( ) const
inline

Definition at line 107 of file KMTFTrack.h.

References phi_.

107 { return phi_; }

◆ ptDisplaced()

int l1t::KMTFTrack::ptDisplaced ( ) const
inline

Definition at line 88 of file KMTFTrack.h.

References ptU_.

Referenced by Phase2L1GMT::KMTF::swap().

88 { return ptU_; }

◆ ptPrompt()

int l1t::KMTFTrack::ptPrompt ( ) const
inline

Definition at line 97 of file KMTFTrack.h.

References ptC_.

Referenced by Phase2L1GMT::KMTF::swap().

97 { return ptC_; }

◆ quality()

int l1t::KMTFTrack::quality ( ) const
inline

Definition at line 126 of file KMTFTrack.h.

References quality_.

126 { return quality_; }

◆ rankDisp()

int l1t::KMTFTrack::rankDisp ( ) const
inline

Definition at line 137 of file KMTFTrack.h.

References rankDisp_.

137 { return rankDisp_; }

◆ rankPrompt()

int l1t::KMTFTrack::rankPrompt ( ) const
inline

Definition at line 136 of file KMTFTrack.h.

References rankPrompt_.

136 { return rankPrompt_; }

◆ residual()

int l1t::KMTFTrack::residual ( uint  i) const
inline

Definition at line 163 of file KMTFTrack.h.

References mps_fire::i, and residuals_.

163 { return residuals_[i]; }
std::vector< int > residuals_
Definition: KMTFTrack.h:395

◆ sector()

int l1t::KMTFTrack::sector ( ) const
inline

Definition at line 122 of file KMTFTrack.h.

References sector_.

Referenced by geometryXMLparser.DTAlignable::index().

122 { return sector_; }

◆ setApproxChi2()

void l1t::KMTFTrack::setApproxChi2 ( int  chi,
int  chiErr,
bool  prompt 
)
inline

Definition at line 219 of file KMTFTrack.h.

References approxDispChi2_, approxDispErrChi2_, approxPromptChi2_, and approxPromptErrChi2_.

219  {
220  if (prompt) {
221  approxPromptChi2_ = chi;
222  approxPromptErrChi2_ = chiErr;
223  } else {
224  approxDispChi2_ = chi;
225  approxDispErrChi2_ = chiErr;
226  }
227  }
int approxDispErrChi2_
Definition: KMTFTrack.h:357
int approxPromptChi2_
Definition: KMTFTrack.h:354
int approxDispChi2_
Definition: KMTFTrack.h:356
int approxPromptErrChi2_
Definition: KMTFTrack.h:355

◆ setCoarseEta()

void l1t::KMTFTrack::setCoarseEta ( int  eta)
inline

Definition at line 215 of file KMTFTrack.h.

References coarseEta_, and reco::LeafCandidate::eta().

215 { coarseEta_ = eta; }
double eta() const final
momentum pseudorapidity

◆ setCoordinates()

void l1t::KMTFTrack::setCoordinates ( int  step,
int  curv,
int  phi,
int  phiB 
)
inline

Definition at line 191 of file KMTFTrack.h.

References curv_, reco::LeafCandidate::phi(), phi_, phiB_, step(), and step_.

191  {
192  step_ = step;
193  curv_ = curv;
194  phiB_ = phiB;
195  phi_ = phi;
196  }
double phi() const final
momentum azimuthal angle
int step() const
Definition: KMTFTrack.h:120

◆ setCoordinatesAtMuon()

void l1t::KMTFTrack::setCoordinatesAtMuon ( int  curv,
int  phi,
int  phiB 
)
inline

Definition at line 204 of file KMTFTrack.h.

References curvMuon_, reco::LeafCandidate::phi(), phiBMuon_, and phiMuon_.

204  {
205  curvMuon_ = curv;
206  phiMuon_ = phi;
207  phiBMuon_ = phiB;
208  }
double phi() const final
momentum azimuthal angle

◆ setCoordinatesAtVertex()

void l1t::KMTFTrack::setCoordinatesAtVertex ( int  curv,
int  phi,
int  dxy 
)
inline

Definition at line 198 of file KMTFTrack.h.

References curvVertex_, dxy(), dxy_, reco::LeafCandidate::phi(), and phiVertex_.

198  {
199  curvVertex_ = curv;
200  phiVertex_ = phi;
201  dxy_ = dxy;
202  }
int dxy() const
Definition: KMTFTrack.h:103
double phi() const final
momentum azimuthal angle

◆ setCovariance()

void l1t::KMTFTrack::setCovariance ( const CovarianceMatrix c)
inline

Definition at line 309 of file KMTFTrack.h.

References DummyCfis::c, and covariance_.

309  {
310  covariance_[0] = c(0, 0);
311  covariance_[1] = c(0, 1);
312  covariance_[2] = c(1, 1);
313  covariance_[3] = c(0, 2);
314  covariance_[4] = c(1, 2);
315  covariance_[5] = c(2, 2);
316  }
std::vector< double > covariance_
Definition: KMTFTrack.h:331

◆ setFineEta()

void l1t::KMTFTrack::setFineEta ( int  eta)
inline

Definition at line 319 of file KMTFTrack.h.

References reco::LeafCandidate::eta(), fineEta_, and hasFineEta_.

319  {
320  fineEta_ = eta;
321  hasFineEta_ = true;
322  }
bool hasFineEta_
Definition: KMTFTrack.h:377
double eta() const final
momentum pseudorapidity

◆ setHitPattern()

void l1t::KMTFTrack::setHitPattern ( int  pattern)
inline

◆ setIDFlag()

void l1t::KMTFTrack::setIDFlag ( bool  passPrompt,
bool  passDisp 
)
inline

Definition at line 254 of file KMTFTrack.h.

References idFlag_, and LaserDQM_cfg::p1.

Referenced by Phase2L1GMT::KMTF::sort().

254  {
255  unsigned p0 = 0;
256  unsigned p1 = 0;
257 
258  if (passPrompt)
259  p0 = 1;
260  if (passDisp)
261  p1 = 2;
262 
263  idFlag_ = p0 | p1;
264  }

◆ setKalmanGain()

void l1t::KMTFTrack::setKalmanGain ( unsigned int  step,
unsigned int  K,
float  a1,
float  a2,
float  a3 = 0,
float  a4 = 0,
float  a5 = 0,
float  a6 = 0 
)
inline

Definition at line 266 of file KMTFTrack.h.

References testProducerWithPsetDescEmpty_cfi::a2, Exception, kalmanGain0_, kalmanGain1_, kalmanGain2_, and kalmanGain3_.

267  {
268  switch (step) {
269  case 3:
270  kalmanGain3_.push_back(K);
271  kalmanGain3_.push_back(a1);
272  kalmanGain3_.push_back(a2);
273  kalmanGain3_.push_back(a3);
274  kalmanGain3_.push_back(a4);
275  kalmanGain3_.push_back(a5);
276  kalmanGain3_.push_back(a6);
277  break;
278  case 2:
279  kalmanGain2_.push_back(K);
280  kalmanGain2_.push_back(a1);
281  kalmanGain2_.push_back(a2);
282  kalmanGain2_.push_back(a3);
283  kalmanGain2_.push_back(a4);
284  kalmanGain2_.push_back(a5);
285  kalmanGain2_.push_back(a6);
286  break;
287  case 1:
288  kalmanGain1_.push_back(K);
289  kalmanGain1_.push_back(a1);
290  kalmanGain1_.push_back(a2);
291  kalmanGain1_.push_back(a3);
292  kalmanGain1_.push_back(a4);
293  kalmanGain1_.push_back(a5);
294  kalmanGain1_.push_back(a6);
295  break;
296  case 0:
297  kalmanGain0_.push_back(K);
298  kalmanGain0_.push_back(a1);
299  kalmanGain0_.push_back(a2);
300  kalmanGain0_.push_back(a3);
301  break;
302 
303  default:
304  throw cms::Exception("WrongCondition") << "Critical ERROR on setting the Kalman gain\n";
305  }
306  }
std::vector< float > kalmanGain3_
Definition: KMTFTrack.h:393
std::vector< float > kalmanGain1_
Definition: KMTFTrack.h:391
std::vector< float > kalmanGain0_
Definition: KMTFTrack.h:390
std::vector< float > kalmanGain2_
Definition: KMTFTrack.h:392
step
Definition: StallMonitor.cc:83

◆ setPt()

void l1t::KMTFTrack::setPt ( int  ptC,
int  ptU 
)
inline

Definition at line 210 of file KMTFTrack.h.

References ptC_, and ptU_.

210  {
211  ptC_ = ptC;
212  ptU_ = ptU;
213  }

◆ setPtEtaPhi()

void l1t::KMTFTrack::setPtEtaPhi ( double  pt,
double  eta,
double  phi 
)
inline

Definition at line 229 of file KMTFTrack.h.

References reco::LeafCandidate::eta(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::LeafCandidate::setP4(), and findQualityFiles::v.

Referenced by Phase2L1GMT::KMTF::sort().

229  {
230  PolarLorentzVector v(pt, eta, phi, 0.105);
231  setP4(v);
232  }
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
double phi() const final
momentum azimuthal angle
void setP4(const LorentzVector &p4) final
set 4-momentum
double eta() const final
momentum pseudorapidity

◆ setPtEtaPhiDisplaced()

void l1t::KMTFTrack::setPtEtaPhiDisplaced ( double  pt,
double  eta,
double  phi 
)
inline

Definition at line 233 of file KMTFTrack.h.

References reco::LeafCandidate::eta(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), and unconstrainedP4_.

233  {
234  unconstrainedP4_.SetPt(pt);
235  unconstrainedP4_.SetEta(eta);
236  unconstrainedP4_.SetPhi(phi);
237  }
double pt() const final
transverse momentum
reco::LeafCandidate::PolarLorentzVector unconstrainedP4_
Definition: KMTFTrack.h:328
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity

◆ setRank()

void l1t::KMTFTrack::setRank ( int  rank,
bool  vertex 
)
inline

Definition at line 247 of file KMTFTrack.h.

References rankDisp_, rankPrompt_, and reco::LeafCandidate::vertex().

Referenced by Phase2L1GMT::KMTF::sort().

247  {
248  if (vertex)
249  rankPrompt_ = rank;
250  else
251  rankDisp_ = rank;
252  }
const Point & vertex() const override
vertex position (overwritten by PF...)

◆ setResidual()

void l1t::KMTFTrack::setResidual ( uint  i,
int  val 
)
inline

Definition at line 325 of file KMTFTrack.h.

References mps_fire::i, residuals_, and heppy_batch::val.

325 { residuals_[i] = val; }
std::vector< int > residuals_
Definition: KMTFTrack.h:395

◆ setStubs()

void l1t::KMTFTrack::setStubs ( const l1t::MuonStubRefVector stubs)
inline

Definition at line 245 of file KMTFTrack.h.

References stubs(), and stubs_.

245 { stubs_ = stubs; }
l1t::MuonStubRefVector stubs_
Definition: KMTFTrack.h:332
const l1t::MuonStubRefVector & stubs() const
Definition: KMTFTrack.h:142

◆ step()

int l1t::KMTFTrack::step ( ) const
inline

Definition at line 120 of file KMTFTrack.h.

References step_.

Referenced by setCoordinates().

120 { return step_; }

◆ stubs()

const l1t::MuonStubRefVector& l1t::KMTFTrack::stubs ( ) const
inline

Definition at line 142 of file KMTFTrack.h.

References stubs_.

Referenced by operator==(), and setStubs().

142 { return stubs_; }
l1t::MuonStubRefVector stubs_
Definition: KMTFTrack.h:332

◆ wheel()

int l1t::KMTFTrack::wheel ( ) const
inline

Definition at line 124 of file KMTFTrack.h.

References wheel_.

Referenced by geometryXMLparser.DTAlignable::index().

124 { return wheel_; }

Member Data Documentation

◆ approxDispChi2_

int l1t::KMTFTrack::approxDispChi2_
private

Definition at line 356 of file KMTFTrack.h.

Referenced by approxDispChi2(), and setApproxChi2().

◆ approxDispErrChi2_

int l1t::KMTFTrack::approxDispErrChi2_
private

Definition at line 357 of file KMTFTrack.h.

Referenced by approxDispErrChi2(), and setApproxChi2().

◆ approxPromptChi2_

int l1t::KMTFTrack::approxPromptChi2_
private

Definition at line 354 of file KMTFTrack.h.

Referenced by approxPromptChi2(), and setApproxChi2().

◆ approxPromptErrChi2_

int l1t::KMTFTrack::approxPromptErrChi2_
private

Definition at line 355 of file KMTFTrack.h.

Referenced by approxPromptErrChi2(), and setApproxChi2().

◆ bx_

int l1t::KMTFTrack::bx_
private

Definition at line 380 of file KMTFTrack.h.

Referenced by bx().

◆ coarseEta_

int l1t::KMTFTrack::coarseEta_
private

Definition at line 351 of file KMTFTrack.h.

Referenced by coarseEta(), and setCoarseEta().

◆ covariance_

std::vector<double> l1t::KMTFTrack::covariance_
private

Definition at line 331 of file KMTFTrack.h.

Referenced by covariance(), and setCovariance().

◆ curv_

int l1t::KMTFTrack::curv_
private

Definition at line 347 of file KMTFTrack.h.

Referenced by curvature(), and setCoordinates().

◆ curvMuon_

int l1t::KMTFTrack::curvMuon_
private

Definition at line 341 of file KMTFTrack.h.

Referenced by curvatureAtMuon(), and setCoordinatesAtMuon().

◆ curvVertex_

int l1t::KMTFTrack::curvVertex_
private

Definition at line 335 of file KMTFTrack.h.

Referenced by curvatureAtVertex(), and setCoordinatesAtVertex().

◆ dxy_

int l1t::KMTFTrack::dxy_
private

Definition at line 338 of file KMTFTrack.h.

Referenced by dxy(), and setCoordinatesAtVertex().

◆ fineEta_

int l1t::KMTFTrack::fineEta_
private

Definition at line 374 of file KMTFTrack.h.

Referenced by fineEta(), and setFineEta().

◆ hasFineEta_

bool l1t::KMTFTrack::hasFineEta_
private

Definition at line 377 of file KMTFTrack.h.

Referenced by hasFineEta(), and setFineEta().

◆ hitPattern_

int l1t::KMTFTrack::hitPattern_
private

Definition at line 360 of file KMTFTrack.h.

Referenced by hitPattern(), and setHitPattern().

◆ idFlag_

int l1t::KMTFTrack::idFlag_
private

Definition at line 387 of file KMTFTrack.h.

Referenced by id(), and setIDFlag().

◆ kalmanGain0_

std::vector<float> l1t::KMTFTrack::kalmanGain0_
private

Definition at line 390 of file KMTFTrack.h.

Referenced by kalmanGain(), and setKalmanGain().

◆ kalmanGain1_

std::vector<float> l1t::KMTFTrack::kalmanGain1_
private

Definition at line 391 of file KMTFTrack.h.

Referenced by kalmanGain(), and setKalmanGain().

◆ kalmanGain2_

std::vector<float> l1t::KMTFTrack::kalmanGain2_
private

Definition at line 392 of file KMTFTrack.h.

Referenced by kalmanGain(), and setKalmanGain().

◆ kalmanGain3_

std::vector<float> l1t::KMTFTrack::kalmanGain3_
private

Definition at line 393 of file KMTFTrack.h.

Referenced by kalmanGain(), and setKalmanGain().

◆ phi_

int l1t::KMTFTrack::phi_
private

Definition at line 348 of file KMTFTrack.h.

Referenced by positionAngle(), and setCoordinates().

◆ phiB_

int l1t::KMTFTrack::phiB_
private

Definition at line 349 of file KMTFTrack.h.

Referenced by bendingAngle(), and setCoordinates().

◆ phiBMuon_

int l1t::KMTFTrack::phiBMuon_
private

Definition at line 344 of file KMTFTrack.h.

Referenced by phiBAtMuon(), and setCoordinatesAtMuon().

◆ phiMuon_

int l1t::KMTFTrack::phiMuon_
private

Definition at line 343 of file KMTFTrack.h.

Referenced by phiAtMuon(), and setCoordinatesAtMuon().

◆ phiVertex_

int l1t::KMTFTrack::phiVertex_
private

Definition at line 337 of file KMTFTrack.h.

Referenced by phiAtVertex(), and setCoordinatesAtVertex().

◆ ptC_

int l1t::KMTFTrack::ptC_
private

Definition at line 336 of file KMTFTrack.h.

Referenced by ptPrompt(), and setPt().

◆ ptU_

int l1t::KMTFTrack::ptU_
private

Definition at line 342 of file KMTFTrack.h.

Referenced by ptDisplaced(), and setPt().

◆ quality_

int l1t::KMTFTrack::quality_
private

Definition at line 371 of file KMTFTrack.h.

Referenced by addStub(), and quality().

◆ rankDisp_

int l1t::KMTFTrack::rankDisp_
private

Definition at line 384 of file KMTFTrack.h.

Referenced by rankDisp(), and setRank().

◆ rankPrompt_

int l1t::KMTFTrack::rankPrompt_
private

Definition at line 383 of file KMTFTrack.h.

Referenced by rankPrompt(), and setRank().

◆ residuals_

std::vector<int> l1t::KMTFTrack::residuals_
private

Definition at line 395 of file KMTFTrack.h.

Referenced by KMTFTrack(), residual(), and setResidual().

◆ sector_

int l1t::KMTFTrack::sector_
private

Definition at line 366 of file KMTFTrack.h.

Referenced by sector().

◆ step_

int l1t::KMTFTrack::step_
private

Definition at line 363 of file KMTFTrack.h.

Referenced by setCoordinates(), and step().

◆ stubs_

l1t::MuonStubRefVector l1t::KMTFTrack::stubs_
private

Definition at line 332 of file KMTFTrack.h.

Referenced by addStub(), KMTFTrack(), overlapTrack(), setStubs(), and stubs().

◆ unconstrainedP4_

reco::LeafCandidate::PolarLorentzVector l1t::KMTFTrack::unconstrainedP4_
private

Definition at line 328 of file KMTFTrack.h.

Referenced by displacedP4(), and setPtEtaPhiDisplaced().

◆ wheel_

int l1t::KMTFTrack::wheel_
private

Definition at line 368 of file KMTFTrack.h.

Referenced by wheel().