CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
tmtt::KFTrackletTrack Class Reference

#include <KFTrackletTrack.h>

Public Member Functions

bool accepted () const
 
float charge () const
 
float charge_bcon () const
 
float chi2 () const
 
float chi2_bcon () const
 
float chi2dof () const
 
float chi2dof_bcon () const
 
float chi2rphi () const
 
float chi2rphi_bcon () const
 
float chi2rz () const
 
float d0 () const
 
float d0_bcon () const
 
const DigitalTrackdigitaltrack () const
 
void digitizeTrack (const std::string &fitterName)
 
bool done_bcon () const
 
float eta () const
 
unsigned int hitPattern () const
 
unsigned int iEtaReg () const
 
void infoKF (unsigned int &nSkippedLayers, unsigned int &numUpdateCalls) const
 
float invPt () const
 
float invPt_bcon () const
 
unsigned int iPhiSec () const
 
 KFTrackletTrack (const L1track3D *l1track3D, const std::vector< const Stub *> &stubs, unsigned int hitPattern, float qOverPt, float d0, float phi0, float z0, float tanLambda, float chi2rphi, float chi2rz, unsigned int nHelixParam, unsigned int iPhiSec, unsigned int iEtaReg, bool accepted=true, bool done_bcon=false, float qOverPt_bcon=0., float d0_bcon=0., float phi0_bcon=0., float chi2rphi_bcon=0.)
 
const L1track3Dl1track3D () const
 
float nHelixParam () const
 
unsigned int numDOF () const
 
unsigned int numDOF_bcon () const
 
unsigned int numDOFrphi () const
 
unsigned int numDOFrphi_bcon () const
 
unsigned int numDOFrz () const
 
unsigned int numKilledStubs () const
 
unsigned int numLayers () const
 
unsigned int numStubs () const
 
unsigned int optoLinkID () const
 
float phi0 () const
 
float phi0_bcon () const
 
float phiAtChosenR (bool beamConstraint) const
 
float pt () const
 
float pt_bcon () const
 
float qOverPt () const
 
float qOverPt_bcon () const
 
void setInfoKF (unsigned int nSkippedLayers, unsigned int numUpdateCalls)
 
const std::vector< const Stub * > & stubs () const
 
float tanLambda () const
 
float theta () const
 
float z0 () const
 
float zAtChosenR () const
 

Private Attributes

bool accepted_
 
float chi2rphi_
 
float chi2rphi_bcon_
 
float chi2rz_
 
float d0_
 
float d0_bcon_
 
std::shared_ptr< DigitalTrackdigitalTrack_
 
bool done_bcon_
 
unsigned int hitPattern_
 
unsigned int iEtaReg_
 
unsigned int iPhiSec_
 
const L1track3Dl1track3D_
 
std::string lostMatchingState_
 
std::vector< const Stub * > matchedStubs_
 
const TPmatchedTP_
 
unsigned int nHelixParam_
 
unsigned int nLayers_
 
unsigned int nMatchedLayers_
 
unsigned int nSkippedLayers_
 
int numIterations_
 
unsigned int numUpdateCalls_
 
unsigned int optoLinkID_
 
float phi0_
 
float phi0_bcon_
 
float qOverPt_
 
float qOverPt_bcon_
 
const Settingssettings_
 
std::unordered_map< std::string, int > stateCalls_
 
std::vector< const Stub * > stubs_
 
float tanLambda_
 
float z0_
 

Detailed Description

Definition at line 27 of file KFTrackletTrack.h.

Constructor & Destructor Documentation

◆ KFTrackletTrack()

tmtt::KFTrackletTrack::KFTrackletTrack ( const L1track3D l1track3D,
const std::vector< const Stub *> &  stubs,
unsigned int  hitPattern,
float  qOverPt,
float  d0,
float  phi0,
float  z0,
float  tanLambda,
float  chi2rphi,
float  chi2rz,
unsigned int  nHelixParam,
unsigned int  iPhiSec,
unsigned int  iEtaReg,
bool  accepted = true,
bool  done_bcon = false,
float  qOverPt_bcon = 0.,
float  d0_bcon = 0.,
float  phi0_bcon = 0.,
float  chi2rphi_bcon = 0. 
)
inline

Definition at line 35 of file KFTrackletTrack.h.

55  stubs_(stubs),
58  d0_(d0),
59  phi0_(phi0),
60  z0_(z0),
63  chi2rz_(chi2rz),
73  nSkippedLayers_(0),
74  numUpdateCalls_(0),
75  numIterations_(0),
const std::vector< const Stub * > & stubs() const
unsigned int iPhiSec() const
std::vector< const Stub * > stubs_
unsigned int hitPattern() const
unsigned int nSkippedLayers_
float nHelixParam() const
unsigned int iEtaReg() const
const L1track3D * l1track3D_
const L1track3D * l1track3D() const
unsigned int optoLinkID() const override
Definition: L1track3D.h:178
unsigned int numUpdateCalls_
float chi2rphi_bcon() const
float qOverPt_bcon() const

Member Function Documentation

◆ accepted()

bool tmtt::KFTrackletTrack::accepted ( ) const
inline

Definition at line 180 of file KFTrackletTrack.h.

References accepted_.

180 { return accepted_; }

◆ charge()

float tmtt::KFTrackletTrack::charge ( void  ) const
inline

Definition at line 108 of file KFTrackletTrack.h.

References qOverPt_.

108 { return (qOverPt_ > 0 ? 1 : -1); }

◆ charge_bcon()

float tmtt::KFTrackletTrack::charge_bcon ( ) const
inline

Definition at line 127 of file KFTrackletTrack.h.

References qOverPt_bcon_.

127 { return (qOverPt_bcon_ > 0 ? 1 : -1); }

◆ chi2()

float tmtt::KFTrackletTrack::chi2 ( void  ) const
inline

Definition at line 160 of file KFTrackletTrack.h.

References chi2rphi_, and chi2rz_.

Referenced by chi2dof().

◆ chi2_bcon()

float tmtt::KFTrackletTrack::chi2_bcon ( ) const
inline

Definition at line 168 of file KFTrackletTrack.h.

References chi2rphi_bcon_, and chi2rz_.

Referenced by chi2dof_bcon().

◆ chi2dof()

float tmtt::KFTrackletTrack::chi2dof ( ) const
inline

Definition at line 161 of file KFTrackletTrack.h.

References chi2(), and numDOF().

161 { return (this->chi2()) / this->numDOF(); }
unsigned int numDOF() const

◆ chi2dof_bcon()

float tmtt::KFTrackletTrack::chi2dof_bcon ( ) const
inline

Definition at line 169 of file KFTrackletTrack.h.

References chi2_bcon(), and numDOF_bcon().

169 { return (this->chi2_bcon()) / this->numDOF_bcon(); }
unsigned int numDOF_bcon() const

◆ chi2rphi()

float tmtt::KFTrackletTrack::chi2rphi ( ) const
inline

Definition at line 158 of file KFTrackletTrack.h.

References chi2rphi_.

158 { return chi2rphi_; }

◆ chi2rphi_bcon()

float tmtt::KFTrackletTrack::chi2rphi_bcon ( ) const
inline

Definition at line 167 of file KFTrackletTrack.h.

References chi2rphi_bcon_.

167 { return chi2rphi_bcon_; }

◆ chi2rz()

float tmtt::KFTrackletTrack::chi2rz ( ) const
inline

Definition at line 159 of file KFTrackletTrack.h.

References chi2rz_.

159 { return chi2rz_; }

◆ d0()

float tmtt::KFTrackletTrack::d0 ( ) const
inline

Definition at line 115 of file KFTrackletTrack.h.

References d0_.

115 { return d0_; }

◆ d0_bcon()

float tmtt::KFTrackletTrack::d0_bcon ( ) const
inline

Definition at line 131 of file KFTrackletTrack.h.

References d0_bcon_.

131 { return d0_bcon_; }

◆ digitaltrack()

const DigitalTrack* tmtt::KFTrackletTrack::digitaltrack ( ) const
inline

Definition at line 186 of file KFTrackletTrack.h.

References digitalTrack_.

186 { return digitalTrack_.get(); }
std::shared_ptr< DigitalTrack > digitalTrack_

◆ digitizeTrack()

void tmtt::KFTrackletTrack::digitizeTrack ( const std::string &  fitterName)

◆ done_bcon()

bool tmtt::KFTrackletTrack::done_bcon ( ) const
inline

Definition at line 125 of file KFTrackletTrack.h.

References done_bcon_.

125 { return done_bcon_; } // Was beam-spot constraint aplied?

◆ eta()

float tmtt::KFTrackletTrack::eta ( void  ) const
inline

Definition at line 120 of file KFTrackletTrack.h.

References dqm-mbProfile::log, funct::tan(), and theta().

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

120 { return -log(tan(0.5 * this->theta())); }
Tan< T >::type tan(const T &t)
Definition: Tan.h:22

◆ hitPattern()

unsigned int tmtt::KFTrackletTrack::hitPattern ( ) const
inline

Definition at line 103 of file KFTrackletTrack.h.

References hitPattern_.

103 { return hitPattern_; }

◆ iEtaReg()

unsigned int tmtt::KFTrackletTrack::iEtaReg ( ) const
inline

Definition at line 173 of file KFTrackletTrack.h.

References iEtaReg_.

173 { return iEtaReg_; }

◆ infoKF()

void tmtt::KFTrackletTrack::infoKF ( unsigned int &  nSkippedLayers,
unsigned int &  numUpdateCalls 
) const
inline

Definition at line 86 of file KFTrackletTrack.h.

References nSkippedLayers_, and numUpdateCalls_.

86  {
87  nSkippedLayers = nSkippedLayers_;
88  numUpdateCalls = numUpdateCalls_;
89  }
unsigned int nSkippedLayers_
unsigned int numUpdateCalls_

◆ invPt()

float tmtt::KFTrackletTrack::invPt ( ) const
inline

Definition at line 109 of file KFTrackletTrack.h.

References funct::abs(), and qOverPt_.

Referenced by pt().

109 { return std::abs(qOverPt_); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ invPt_bcon()

float tmtt::KFTrackletTrack::invPt_bcon ( ) const
inline

Definition at line 128 of file KFTrackletTrack.h.

References funct::abs(), and qOverPt_bcon_.

Referenced by pt_bcon().

128 { return std::abs(qOverPt_bcon_); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ iPhiSec()

unsigned int tmtt::KFTrackletTrack::iPhiSec ( ) const
inline

Definition at line 172 of file KFTrackletTrack.h.

References iPhiSec_.

172 { return iPhiSec_; }

◆ l1track3D()

const L1track3D* tmtt::KFTrackletTrack::l1track3D ( ) const
inline

Definition at line 91 of file KFTrackletTrack.h.

References l1track3D_.

91 { return l1track3D_; }
const L1track3D * l1track3D_

◆ nHelixParam()

float tmtt::KFTrackletTrack::nHelixParam ( ) const
inline

Definition at line 152 of file KFTrackletTrack.h.

References nHelixParam_.

152 { return nHelixParam_; }

◆ numDOF()

unsigned int tmtt::KFTrackletTrack::numDOF ( ) const
inline

Definition at line 155 of file KFTrackletTrack.h.

References nHelixParam_, and numStubs().

Referenced by chi2dof(), and numDOF_bcon().

155 { return 2 * this->numStubs() - nHelixParam_; }
unsigned int numStubs() const

◆ numDOF_bcon()

unsigned int tmtt::KFTrackletTrack::numDOF_bcon ( ) const
inline

Definition at line 165 of file KFTrackletTrack.h.

References numDOF().

Referenced by chi2dof_bcon().

165 { return (this->numDOF() - 1); }
unsigned int numDOF() const

◆ numDOFrphi()

unsigned int tmtt::KFTrackletTrack::numDOFrphi ( ) const
inline

Definition at line 156 of file KFTrackletTrack.h.

References nHelixParam_, and numStubs().

Referenced by numDOFrphi_bcon().

156 { return this->numStubs() - (nHelixParam_ - 2); }
unsigned int numStubs() const

◆ numDOFrphi_bcon()

unsigned int tmtt::KFTrackletTrack::numDOFrphi_bcon ( ) const
inline

Definition at line 166 of file KFTrackletTrack.h.

References numDOFrphi().

166 { return (this->numDOFrphi() - 1); }
unsigned int numDOFrphi() const

◆ numDOFrz()

unsigned int tmtt::KFTrackletTrack::numDOFrz ( ) const
inline

Definition at line 157 of file KFTrackletTrack.h.

References numStubs().

157 { return this->numStubs() - 2; }
unsigned int numStubs() const

◆ numKilledStubs()

unsigned int tmtt::KFTrackletTrack::numKilledStubs ( ) const
inline

Definition at line 100 of file KFTrackletTrack.h.

References l1track3D_, numStubs(), and tmtt::L1track3D::numStubs().

100 { return l1track3D_->numStubs() - this->numStubs(); }
unsigned int numStubs() const
const L1track3D * l1track3D_
unsigned int numStubs() const override
Definition: L1track3D.h:97

◆ numLayers()

unsigned int tmtt::KFTrackletTrack::numLayers ( ) const
inline

Definition at line 98 of file KFTrackletTrack.h.

References nLayers_.

98 { return nLayers_; }

◆ numStubs()

unsigned int tmtt::KFTrackletTrack::numStubs ( ) const
inline

Definition at line 96 of file KFTrackletTrack.h.

References stubs_.

Referenced by numDOF(), numDOFrphi(), numDOFrz(), and numKilledStubs().

96 { return stubs_.size(); }
std::vector< const Stub * > stubs_

◆ optoLinkID()

unsigned int tmtt::KFTrackletTrack::optoLinkID ( ) const
inline

Definition at line 176 of file KFTrackletTrack.h.

References optoLinkID_.

176 { return optoLinkID_; }

◆ phi0()

float tmtt::KFTrackletTrack::phi0 ( ) const
inline

Definition at line 116 of file KFTrackletTrack.h.

References phi0_.

116 { return phi0_; }

◆ phi0_bcon()

float tmtt::KFTrackletTrack::phi0_bcon ( ) const
inline

Definition at line 130 of file KFTrackletTrack.h.

References phi0_bcon_.

130 { return phi0_bcon_; }

◆ phiAtChosenR()

float tmtt::KFTrackletTrack::phiAtChosenR ( bool  beamConstraint) const
inline

Definition at line 135 of file KFTrackletTrack.h.

References tmtt::Settings::chosenRofPhi(), d0_, d0_bcon_, reco::deltaPhi(), tmtt::Settings::invPtToDphi(), phi0_, phi0_bcon_, qOverPt_, qOverPt_bcon_, and settings_.

135  {
136  if (beamConstraint) {
137  return reco::deltaPhi(phi0_bcon_ -
140  0.);
141  } else {
143  d0_ / (settings_->chosenRofPhi()),
144  0.);
145  }
146  }
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
double invPtToDphi() const
Definition: Settings.h:397
double chosenRofPhi() const
Definition: Settings.h:112
const Settings * settings_

◆ pt()

float tmtt::KFTrackletTrack::pt ( ) const
inline

◆ pt_bcon()

float tmtt::KFTrackletTrack::pt_bcon ( ) const
inline

Definition at line 129 of file KFTrackletTrack.h.

References invPt_bcon().

129 { return 1. / (1.0e-6 + this->invPt_bcon()); }
float invPt_bcon() const

◆ qOverPt()

float tmtt::KFTrackletTrack::qOverPt ( ) const
inline

Definition at line 107 of file KFTrackletTrack.h.

References qOverPt_.

107 { return qOverPt_; }

◆ qOverPt_bcon()

float tmtt::KFTrackletTrack::qOverPt_bcon ( ) const
inline

Definition at line 126 of file KFTrackletTrack.h.

References qOverPt_bcon_.

126 { return qOverPt_bcon_; }

◆ setInfoKF()

void tmtt::KFTrackletTrack::setInfoKF ( unsigned int  nSkippedLayers,
unsigned int  numUpdateCalls 
)
inline

Definition at line 81 of file KFTrackletTrack.h.

References nSkippedLayers_, and numUpdateCalls_.

81  {
82  nSkippedLayers_ = nSkippedLayers;
83  numUpdateCalls_ = numUpdateCalls;
84  }
unsigned int nSkippedLayers_
unsigned int numUpdateCalls_

◆ stubs()

const std::vector<const Stub*>& tmtt::KFTrackletTrack::stubs ( ) const
inline

Definition at line 94 of file KFTrackletTrack.h.

References stubs_.

94 { return stubs_; }
std::vector< const Stub * > stubs_

◆ tanLambda()

float tmtt::KFTrackletTrack::tanLambda ( ) const
inline

Definition at line 118 of file KFTrackletTrack.h.

References tanLambda_.

118 { return tanLambda_; }

◆ theta()

float tmtt::KFTrackletTrack::theta ( void  ) const
inline

Definition at line 119 of file KFTrackletTrack.h.

References tanLambda_.

Referenced by eta(), and Tau.Tau::zImpact().

119 { return atan2(1., tanLambda_); } // Use atan2 to ensure 0 < theta < pi.

◆ z0()

float tmtt::KFTrackletTrack::z0 ( ) const
inline

Definition at line 117 of file KFTrackletTrack.h.

References z0_.

117 { return z0_; }

◆ zAtChosenR()

float tmtt::KFTrackletTrack::zAtChosenR ( ) const
inline

Definition at line 147 of file KFTrackletTrack.h.

References tmtt::Settings::chosenRofZ(), settings_, tanLambda_, and z0_.

147  {
148  return (z0_ + (settings_->chosenRofZ()) * tanLambda_);
149  } // neglects transverse impact parameter & track curvature.
double chosenRofZ() const
Definition: Settings.h:127
const Settings * settings_

Member Data Documentation

◆ accepted_

bool tmtt::KFTrackletTrack::accepted_
private

Definition at line 243 of file KFTrackletTrack.h.

Referenced by accepted().

◆ chi2rphi_

float tmtt::KFTrackletTrack::chi2rphi_
private

Definition at line 208 of file KFTrackletTrack.h.

Referenced by chi2(), and chi2rphi().

◆ chi2rphi_bcon_

float tmtt::KFTrackletTrack::chi2rphi_bcon_
private

Definition at line 216 of file KFTrackletTrack.h.

Referenced by chi2_bcon(), and chi2rphi_bcon().

◆ chi2rz_

float tmtt::KFTrackletTrack::chi2rz_
private

Definition at line 209 of file KFTrackletTrack.h.

Referenced by chi2(), chi2_bcon(), and chi2rz().

◆ d0_

float tmtt::KFTrackletTrack::d0_
private

Definition at line 204 of file KFTrackletTrack.h.

Referenced by d0(), and phiAtChosenR().

◆ d0_bcon_

float tmtt::KFTrackletTrack::d0_bcon_
private

Definition at line 214 of file KFTrackletTrack.h.

Referenced by d0_bcon(), and phiAtChosenR().

◆ digitalTrack_

std::shared_ptr<DigitalTrack> tmtt::KFTrackletTrack::digitalTrack_
private

Definition at line 240 of file KFTrackletTrack.h.

Referenced by digitaltrack().

◆ done_bcon_

bool tmtt::KFTrackletTrack::done_bcon_
private

Definition at line 212 of file KFTrackletTrack.h.

Referenced by done_bcon().

◆ hitPattern_

unsigned int tmtt::KFTrackletTrack::hitPattern_
private

Definition at line 200 of file KFTrackletTrack.h.

Referenced by hitPattern().

◆ iEtaReg_

unsigned int tmtt::KFTrackletTrack::iEtaReg_
private

Definition at line 223 of file KFTrackletTrack.h.

Referenced by iEtaReg().

◆ iPhiSec_

unsigned int tmtt::KFTrackletTrack::iPhiSec_
private

Definition at line 222 of file KFTrackletTrack.h.

Referenced by iPhiSec().

◆ l1track3D_

const L1track3D* tmtt::KFTrackletTrack::l1track3D_
private

Definition at line 193 of file KFTrackletTrack.h.

Referenced by l1track3D(), and numKilledStubs().

◆ lostMatchingState_

std::string tmtt::KFTrackletTrack::lostMatchingState_
private

Definition at line 237 of file KFTrackletTrack.h.

◆ matchedStubs_

std::vector<const Stub*> tmtt::KFTrackletTrack::matchedStubs_
private

Definition at line 229 of file KFTrackletTrack.h.

◆ matchedTP_

const TP* tmtt::KFTrackletTrack::matchedTP_
private

Definition at line 228 of file KFTrackletTrack.h.

◆ nHelixParam_

unsigned int tmtt::KFTrackletTrack::nHelixParam_
private

Definition at line 219 of file KFTrackletTrack.h.

Referenced by nHelixParam(), numDOF(), and numDOFrphi().

◆ nLayers_

unsigned int tmtt::KFTrackletTrack::nLayers_
private

Definition at line 197 of file KFTrackletTrack.h.

Referenced by numLayers().

◆ nMatchedLayers_

unsigned int tmtt::KFTrackletTrack::nMatchedLayers_
private

Definition at line 230 of file KFTrackletTrack.h.

◆ nSkippedLayers_

unsigned int tmtt::KFTrackletTrack::nSkippedLayers_
private

Definition at line 233 of file KFTrackletTrack.h.

Referenced by infoKF(), and setInfoKF().

◆ numIterations_

int tmtt::KFTrackletTrack::numIterations_
private

Definition at line 236 of file KFTrackletTrack.h.

◆ numUpdateCalls_

unsigned int tmtt::KFTrackletTrack::numUpdateCalls_
private

Definition at line 234 of file KFTrackletTrack.h.

Referenced by infoKF(), and setInfoKF().

◆ optoLinkID_

unsigned int tmtt::KFTrackletTrack::optoLinkID_
private

Definition at line 225 of file KFTrackletTrack.h.

Referenced by optoLinkID().

◆ phi0_

float tmtt::KFTrackletTrack::phi0_
private

Definition at line 205 of file KFTrackletTrack.h.

Referenced by phi0(), and phiAtChosenR().

◆ phi0_bcon_

float tmtt::KFTrackletTrack::phi0_bcon_
private

Definition at line 215 of file KFTrackletTrack.h.

Referenced by phi0_bcon(), and phiAtChosenR().

◆ qOverPt_

float tmtt::KFTrackletTrack::qOverPt_
private

Definition at line 203 of file KFTrackletTrack.h.

Referenced by charge(), invPt(), phiAtChosenR(), and qOverPt().

◆ qOverPt_bcon_

float tmtt::KFTrackletTrack::qOverPt_bcon_
private

Definition at line 213 of file KFTrackletTrack.h.

Referenced by charge_bcon(), invPt_bcon(), phiAtChosenR(), and qOverPt_bcon().

◆ settings_

const Settings* tmtt::KFTrackletTrack::settings_
private

Definition at line 190 of file KFTrackletTrack.h.

Referenced by phiAtChosenR(), and zAtChosenR().

◆ stateCalls_

std::unordered_map<std::string, int> tmtt::KFTrackletTrack::stateCalls_
private

Definition at line 238 of file KFTrackletTrack.h.

◆ stubs_

std::vector<const Stub*> tmtt::KFTrackletTrack::stubs_
private

Definition at line 196 of file KFTrackletTrack.h.

Referenced by numStubs(), and stubs().

◆ tanLambda_

float tmtt::KFTrackletTrack::tanLambda_
private

Definition at line 207 of file KFTrackletTrack.h.

Referenced by tanLambda(), theta(), and zAtChosenR().

◆ z0_

float tmtt::KFTrackletTrack::z0_
private

Definition at line 206 of file KFTrackletTrack.h.

Referenced by z0(), and zAtChosenR().