CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
tmtt::L1fittedTrack Class Reference

#include <L1fittedTrack.h>

Inheritance diagram for tmtt::L1fittedTrack:
tmtt::L1trackBase

Public Member Functions

bool accepted () const
 
std::pair< unsigned int, unsigned int > cellLocationFit () const
 
std::pair< unsigned int, unsigned int > cellLocationHT () const override
 
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
 
bool consistentHTcell () const
 
bool consistentSector () const
 
float d0 () 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 override
 
void infoCHI2 () const
 
void infoKF (unsigned int &nSkippedLayers, unsigned int &numUpdateCalls) const
 
void infoLR (int &numIterations, std::string &lostMatchingState, std::unordered_map< std::string, int > &stateCalls) const
 
float invPt () const
 
float invPt_bcon () const
 
unsigned int iPhiSec () const override
 
 L1fittedTrack ()
 
 L1fittedTrack (const Settings *settings, const L1track3D *l1track3D, const std::vector< Stub * > &stubs, unsigned int hitPattern, float qOverPt, float d0, float phi0, float z0, float tanLambda, float chi2rphi, float chi2rz, unsigned int nHelixParam, bool accepted=true)
 
const L1track3Dl1track3D () const
 
const std::vector< const Stub * > & matchedStubs () const override
 
const TPmatchedTP () const override
 
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 numKilledMatchedStubs () const
 
unsigned int numKilledStubs () const
 
unsigned int numLayers () const override
 
unsigned int numMatchedLayers () const override
 
unsigned int numMatchedStubs () const override
 
unsigned int numStubs () const override
 
unsigned int optoLinkID () const override
 
float phi0 () const override
 
float phi0_bcon () const
 
float phiAtChosenR (bool beamConstraint) const
 
float pt () const
 
float pt_bcon () const
 
float purity () const
 
float qOverPt () const override
 
float qOverPt_bcon () const
 
KFTrackletTrack returnKFTrackletTrack ()
 
void setBeamConstr (float qOverPt_bcon, float phi0_bcon, float chi2rphi_bcon)
 
void setConsistentHTcell ()
 
void setInfoCHI2 ()
 
void setInfoKF (unsigned int nSkippedLayers, unsigned int numUpdateCalls)
 
void setInfoLR (int numIterations, std::string lostMatchingState, std::unordered_map< std::string, int > stateCalls)
 
const std::vector< Stub * > & stubs () const override
 
const std::vector< const Stub * > & stubsConst () const override
 
float tanLambda () const
 
float theta () const
 
float z0 () const
 
float zAtChosenR () const
 
 ~L1fittedTrack () override=default
 
- Public Member Functions inherited from tmtt::L1trackBase
 L1trackBase ()
 
virtual ~L1trackBase ()=default
 

Private Attributes

bool accepted_
 
float chi2rphi_
 
float chi2rphi_bcon_
 
float chi2rz_
 
bool consistentCell_
 
float d0_
 
float d0_bcon_
 
std::shared_ptr< DigitalTrackdigitalTrack_
 
bool done_bcon_
 
unsigned int hitPattern_
 
std::shared_ptr< HTrphihtRphiTmp_
 
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_
 
std::shared_ptr< SectorsecTmp_
 
const Settingssettings_
 
std::unordered_map< std::string, int > stateCalls_
 
std::vector< Stub * > stubs_
 
std::vector< const Stub * > stubsConst_
 
float tanLambda_
 
float z0_
 

Static Private Attributes

static const std::vector< Stub * > noStubs_
 

Detailed Description

Definition at line 30 of file L1fittedTrack.h.

Constructor & Destructor Documentation

◆ L1fittedTrack() [1/2]

tmtt::L1fittedTrack::L1fittedTrack ( const Settings settings,
const L1track3D l1track3D,
const std::vector< Stub * > &  stubs,
unsigned int  hitPattern,
float  qOverPt,
float  d0,
float  phi0,
float  z0,
float  tanLambda,
float  chi2rphi,
float  chi2rz,
unsigned int  nHelixParam,
bool  accepted = true 
)
inline

Definition at line 37 of file L1fittedTrack.h.

50  : L1trackBase(),
51  settings_(settings),
53  stubs_(stubs),
54  stubsConst_(stubs_.begin(), stubs_.end()),
57  d0_(d0),
58  phi0_(phi0),
59  z0_(z0),
62  chi2rz_(chi2rz),
63  done_bcon_(false),
65  d0_bcon_(d0),
69  nSkippedLayers_(0),
70  numUpdateCalls_(0),
71  numIterations_(0),
73  if (l1track3D != nullptr) {
77  } else { // Rejected track
78  iPhiSec_ = 0;
79  iEtaReg_ = 0;
80  optoLinkID_ = 0;
81  }
82  if (settings != nullptr) {
83  // Count tracker layers these stubs are in
85  // Find associated truth particle & calculate info about match.
87  } else { // Rejected track
88  nLayers_ = 0;
89  matchedTP_ = nullptr;
90  }
91  // Set d0 = 0 for 4 param fit, in case fitter didn't do it.
92  if (nHelixParam == 4) {
93  d0_ = 0.;
94  d0_bcon_ = 0.;
95  }
96  if (settings != nullptr && not settings->hybrid()) {
97  //Sector class used to check if fitted track trajectory is in expected sector.
98  secTmp_ = std::make_shared<Sector>(settings, iPhiSec_, iEtaReg_);
99  // HT class used to identify HT cell that corresponds to fitted helix parameters.
100  htRphiTmp_ = std::make_shared<HTrphi>(
101  settings, iPhiSec_, iEtaReg_, secTmp_->etaMin(), secTmp_->etaMax(), secTmp_->phiCentre());
102  this->setConsistentHTcell();
103  } else {
104  consistentCell_ = false;
105  }
106  }

References consistentCell_, tmtt::Utility::countLayers(), d0_, d0_bcon_, htRphiTmp_, tmtt::Settings::hybrid(), tmtt::L1track3D::iEtaReg(), iEtaReg_, tmtt::L1track3D::iPhiSec(), iPhiSec_, l1track3D(), matchedStubs_, matchedTP_, tmtt::Utility::matchingTP(), nHelixParam(), nLayers_, nMatchedLayers_, tmtt::L1track3D::optoLinkID(), optoLinkID_, secTmp_, setConsistentHTcell(), and stubs_.

◆ L1fittedTrack() [2/2]

tmtt::L1fittedTrack::L1fittedTrack ( )
inline

Definition at line 109 of file L1fittedTrack.h.

109 : L1fittedTrack(nullptr, nullptr, noStubs_, 0, 0., 0., 0., 0., 0., 0., 0., 0, false) {}

◆ ~L1fittedTrack()

tmtt::L1fittedTrack::~L1fittedTrack ( )
overridedefault

Member Function Documentation

◆ accepted()

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

◆ cellLocationFit()

std::pair<unsigned int, unsigned int> tmtt::L1fittedTrack::cellLocationFit ( ) const
inline

Definition at line 189 of file L1fittedTrack.h.

189 { return htRphiTmp_->cell(this); }

References htRphiTmp_.

Referenced by tmtt::SimpleLR4::fit(), and setConsistentHTcell().

◆ cellLocationHT()

std::pair<unsigned int, unsigned int> tmtt::L1fittedTrack::cellLocationHT ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 191 of file L1fittedTrack.h.

191 { return l1track3D_->cellLocationHT(); }

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

Referenced by tmtt::SimpleLR4::fit(), and setConsistentHTcell().

◆ charge()

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

Definition at line 223 of file L1fittedTrack.h.

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

References qOverPt_.

◆ charge_bcon()

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

Definition at line 242 of file L1fittedTrack.h.

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

References qOverPt_bcon_.

◆ chi2()

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

Definition at line 277 of file L1fittedTrack.h.

277 { return chi2rphi_ + chi2rz_; }

References chi2rphi_, and chi2rz_.

Referenced by chi2dof().

◆ chi2_bcon()

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

Definition at line 285 of file L1fittedTrack.h.

285 { return chi2rphi_bcon_ + chi2rz_; }

References chi2rphi_bcon_, and chi2rz_.

Referenced by chi2dof_bcon().

◆ chi2dof()

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

Definition at line 278 of file L1fittedTrack.h.

278 { return (this->chi2()) / this->numDOF(); }

References chi2(), and numDOF().

◆ chi2dof_bcon()

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

Definition at line 286 of file L1fittedTrack.h.

286 { return (this->chi2_bcon()) / this->numDOF_bcon(); }

References chi2_bcon(), and numDOF_bcon().

◆ chi2rphi()

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

Definition at line 275 of file L1fittedTrack.h.

275 { return chi2rphi_; }

References chi2rphi_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ chi2rphi_bcon()

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

Definition at line 284 of file L1fittedTrack.h.

284 { return chi2rphi_bcon_; }

References chi2rphi_bcon_.

Referenced by setBeamConstr().

◆ chi2rz()

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

Definition at line 276 of file L1fittedTrack.h.

276 { return chi2rz_; }

References chi2rz_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ consistentHTcell()

bool tmtt::L1fittedTrack::consistentHTcell ( ) const
inline

Definition at line 302 of file L1fittedTrack.h.

302 { return consistentCell_; }

References consistentCell_.

◆ consistentSector()

bool tmtt::L1fittedTrack::consistentSector ( ) const
inline

Definition at line 328 of file L1fittedTrack.h.

328  {
329  bool insidePhi =
330  (std::abs(reco::deltaPhi(this->phiAtChosenR(done_bcon_), secTmp_->phiCentre())) < secTmp_->sectorHalfWidth());
331  bool insideEta =
332  (this->zAtChosenR() > secTmp_->zAtChosenR_Min() && this->zAtChosenR() < secTmp_->zAtChosenR_Max());
333  return (insidePhi && insideEta);
334  }

References funct::abs(), reco::deltaPhi(), done_bcon_, phiAtChosenR(), secTmp_, and zAtChosenR().

◆ d0()

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

Definition at line 230 of file L1fittedTrack.h.

230 { return d0_; }

References d0_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ digitaltrack()

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

Definition at line 340 of file L1fittedTrack.h.

340 { return digitalTrack_.get(); }

References digitalTrack_.

Referenced by tmtt::SimpleLR4::fit().

◆ digitizeTrack()

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

Definition at line 12 of file L1fittedTrack.cc.

12  {
13  if (settings_->enableDigitize()) {
14  if (not digitalTrack_) {
15  // Create & run digitizer.
16  digitalTrack_ = std::make_shared<DigitalTrack>(settings_, fitterName, this);
17 
18  // Convert digitized track params back to floating point with degraded resolution.
19  qOverPt_ = digitalTrack_->qOverPt();
20  if (nHelixParam_ == 5)
21  d0_ = digitalTrack_->d0();
22  phi0_ = digitalTrack_->phi0();
23  z0_ = digitalTrack_->z0();
24  tanLambda_ = digitalTrack_->tanLambda();
25  chi2rphi_ = digitalTrack_->chisquaredRphi();
26  chi2rz_ = digitalTrack_->chisquaredRz();
27 
28  // Ditto for beam-spot constrained values.
29  if (nHelixParam_ == 5) {
30  qOverPt_bcon_ = digitalTrack_->qOverPt_bcon();
31  phi0_bcon_ = digitalTrack_->phi0_bcon();
32  chi2rphi_bcon_ = digitalTrack_->chisquaredRphi_bcon();
33  }
34 
35  // Recalculate consistency flag using updated helix params.
36  this->setConsistentHTcell();
37  }
38  }
39  }

Referenced by tmtt::SimpleLR4::fit(), and tmtt::TMTrackProducer::produce().

◆ done_bcon()

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

Definition at line 240 of file L1fittedTrack.h.

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

References done_bcon_.

Referenced by tmtt::HTrphi::cell().

◆ eta()

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

Definition at line 235 of file L1fittedTrack.h.

235 { return -log(tan(0.5 * this->theta())); }

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

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

◆ hitPattern()

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

Definition at line 184 of file L1fittedTrack.h.

184 { return hitPattern_; }

References hitPattern_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ iEtaReg()

unsigned int tmtt::L1fittedTrack::iEtaReg ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 290 of file L1fittedTrack.h.

290 { return iEtaReg_; }

References iEtaReg_.

Referenced by returnKFTrackletTrack().

◆ infoCHI2()

void tmtt::L1fittedTrack::infoCHI2 ( ) const
inline

Definition at line 146 of file L1fittedTrack.h.

146 {}

◆ infoKF()

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

Definition at line 135 of file L1fittedTrack.h.

135  {
136  nSkippedLayers = nSkippedLayers_;
137  numUpdateCalls = numUpdateCalls_;
138  }

References nSkippedLayers_, and numUpdateCalls_.

◆ infoLR()

void tmtt::L1fittedTrack::infoLR ( int &  numIterations,
std::string &  lostMatchingState,
std::unordered_map< std::string, int > &  stateCalls 
) const
inline

Definition at line 139 of file L1fittedTrack.h.

141  {
142  numIterations = numIterations_;
143  lostMatchingState = lostMatchingState_;
144  stateCalls = stateCalls_;
145  }

References lostMatchingState_, numIterations_, and stateCalls_.

◆ invPt()

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

Definition at line 224 of file L1fittedTrack.h.

224 { return std::abs(qOverPt_); }

References funct::abs(), and qOverPt_.

Referenced by pt().

◆ invPt_bcon()

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

Definition at line 243 of file L1fittedTrack.h.

243 { return std::abs(qOverPt_bcon_); }

References funct::abs(), and qOverPt_bcon_.

Referenced by pt_bcon().

◆ iPhiSec()

unsigned int tmtt::L1fittedTrack::iPhiSec ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 289 of file L1fittedTrack.h.

289 { return iPhiSec_; }

References iPhiSec_.

Referenced by returnKFTrackletTrack().

◆ l1track3D()

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

Definition at line 172 of file L1fittedTrack.h.

172 { return l1track3D_; }

References l1track3D_.

Referenced by L1fittedTrack(), and returnKFTrackletTrack().

◆ matchedStubs()

const std::vector<const Stub*>& tmtt::L1fittedTrack::matchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 199 of file L1fittedTrack.h.

199 { return matchedStubs_; }

References matchedStubs_.

◆ matchedTP()

const TP* tmtt::L1fittedTrack::matchedTP ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 197 of file L1fittedTrack.h.

197 { return matchedTP_; }

References matchedTP_.

Referenced by tmtt::DigitalTrack::DigitalTrack(), and tmtt::SimpleLR4::fit().

◆ nHelixParam()

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

Definition at line 269 of file L1fittedTrack.h.

269 { return nHelixParam_; }

References nHelixParam_.

Referenced by L1fittedTrack(), tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ numDOF()

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

Definition at line 272 of file L1fittedTrack.h.

272 { return 2 * this->numStubs() - nHelixParam_; }

References nHelixParam_, and numStubs().

Referenced by chi2dof(), and numDOF_bcon().

◆ numDOF_bcon()

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

Definition at line 282 of file L1fittedTrack.h.

282 { return (this->numDOF() - 1); }

References numDOF().

Referenced by chi2dof_bcon().

◆ numDOFrphi()

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

Definition at line 273 of file L1fittedTrack.h.

273 { return this->numStubs() - (nHelixParam_ - 2); }

References nHelixParam_, and numStubs().

Referenced by numDOFrphi_bcon().

◆ numDOFrphi_bcon()

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

Definition at line 283 of file L1fittedTrack.h.

283 { return (this->numDOFrphi() - 1); }

References numDOFrphi().

◆ numDOFrz()

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

Definition at line 274 of file L1fittedTrack.h.

274 { return this->numStubs() - 2; }

References numStubs().

◆ numKilledMatchedStubs()

unsigned int tmtt::L1fittedTrack::numKilledMatchedStubs ( ) const
inline

Definition at line 207 of file L1fittedTrack.h.

207  {
208  unsigned int nStubCount = l1track3D_->numMatchedStubs();
209  if (nStubCount > 0) { // Original HT track candidate did match a truth particle
210  const TP* tp = l1track3D_->matchedTP();
211  for (const Stub* s : stubs_) {
212  std::set<const TP*> assTPs = s->assocTPs();
213  if (assTPs.find(tp) != assTPs.end())
214  nStubCount--; // We found a stub matched to original truth particle that survived fit.
215  }
216  }
217  return nStubCount;
218  }

References l1track3D_, tmtt::L1track3D::matchedTP(), tmtt::L1track3D::numMatchedStubs(), alignCSCRings::s, stubs_, and cmsswSequenceInfo::tp.

◆ numKilledStubs()

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

Definition at line 182 of file L1fittedTrack.h.

182 { return l1track3D_->numStubs() - this->numStubs(); }

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

◆ numLayers()

unsigned int tmtt::L1fittedTrack::numLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 180 of file L1fittedTrack.h.

180 { return nLayers_; }

References nLayers_.

Referenced by tmtt::SimpleLR4::fit().

◆ numMatchedLayers()

unsigned int tmtt::L1fittedTrack::numMatchedLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 203 of file L1fittedTrack.h.

203 { return nMatchedLayers_; }

References nMatchedLayers_.

◆ numMatchedStubs()

unsigned int tmtt::L1fittedTrack::numMatchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 201 of file L1fittedTrack.h.

201 { return matchedStubs_.size(); }

References matchedStubs_.

Referenced by purity().

◆ numStubs()

unsigned int tmtt::L1fittedTrack::numStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 178 of file L1fittedTrack.h.

178 { return stubs_.size(); }

References stubs_.

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

◆ optoLinkID()

unsigned int tmtt::L1fittedTrack::optoLinkID ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 293 of file L1fittedTrack.h.

293 { return optoLinkID_; }

References optoLinkID_.

◆ phi0()

float tmtt::L1fittedTrack::phi0 ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 231 of file L1fittedTrack.h.

231 { return phi0_; }

References phi0_.

Referenced by tmtt::DigitalTrack::DigitalTrack(), and returnKFTrackletTrack().

◆ phi0_bcon()

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

Definition at line 249 of file L1fittedTrack.h.

249 { return phi0_bcon_; }

References phi0_bcon_.

Referenced by tmtt::DigitalTrack::DigitalTrack(), and setBeamConstr().

◆ phiAtChosenR()

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

Definition at line 253 of file L1fittedTrack.h.

253  {
254  if (beamConstraint) {
257  0.);
258  } else {
260  d0_ / (settings_->chosenRofPhi()),
261  0.);
262  }
263  }

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

Referenced by tmtt::HTrphi::cell(), and consistentSector().

◆ pt()

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

◆ pt_bcon()

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

Definition at line 245 of file L1fittedTrack.h.

245  {
246  constexpr float small = 1.0e-6;
247  return 1. / (small + this->invPt_bcon());
248  }

References invPt_bcon().

◆ purity()

float tmtt::L1fittedTrack::purity ( ) const
inline

Definition at line 205 of file L1fittedTrack.h.

205 { return numMatchedStubs() / float(numStubs()); }

References dqmMemoryStats::float, numMatchedStubs(), and numStubs().

◆ qOverPt()

float tmtt::L1fittedTrack::qOverPt ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 222 of file L1fittedTrack.h.

222 { return qOverPt_; }

References qOverPt_.

Referenced by tmtt::HTrphi::cell(), tmtt::SimpleLR4::fit(), and returnKFTrackletTrack().

◆ qOverPt_bcon()

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

Definition at line 241 of file L1fittedTrack.h.

241 { return qOverPt_bcon_; }

References qOverPt_bcon_.

Referenced by tmtt::HTrphi::cell(), and setBeamConstr().

◆ returnKFTrackletTrack()

KFTrackletTrack tmtt::L1fittedTrack::returnKFTrackletTrack ( )
inline

Definition at line 150 of file L1fittedTrack.h.

150  {
151  KFTrackletTrack trk_(l1track3D(),
152  stubsConst(),
153  hitPattern(),
154  qOverPt(),
155  d0(),
156  phi0(),
157  z0(),
158  tanLambda(),
159  chi2rphi(),
160  chi2rz(),
161  nHelixParam(),
162  iPhiSec(),
163  iEtaReg(),
164  accepted());
165  return trk_;
166  }

References accepted(), chi2rphi(), chi2rz(), d0(), hitPattern(), iEtaReg(), iPhiSec(), l1track3D(), nHelixParam(), phi0(), qOverPt(), stubsConst(), tanLambda(), and z0().

◆ setBeamConstr()

void tmtt::L1fittedTrack::setBeamConstr ( float  qOverPt_bcon,
float  phi0_bcon,
float  chi2rphi_bcon 
)
inline

◆ setConsistentHTcell()

void tmtt::L1fittedTrack::setConsistentHTcell ( )
inline

Definition at line 305 of file L1fittedTrack.h.

305  {
306  // Use helix params with beam-spot constaint if done in case of 5 param fit.
307 
308  std::pair<unsigned int, unsigned int> htCell = this->cellLocationHT();
309  bool consistent = (htCell == this->cellLocationFit());
310 
311  if (l1track3D_->mergedHTcell()) {
312  // If this is a merged cell, check other elements of merged cell.
313  std::pair<unsigned int, unsigned int> htCell10(htCell.first + 1, htCell.second);
314  std::pair<unsigned int, unsigned int> htCell01(htCell.first, htCell.second + 1);
315  std::pair<unsigned int, unsigned int> htCell11(htCell.first + 1, htCell.second + 1);
316  if (htCell10 == this->cellLocationFit())
317  consistent = true;
318  if (htCell01 == this->cellLocationFit())
319  consistent = true;
320  if (htCell11 == this->cellLocationFit())
321  consistent = true;
322  }
323 
324  consistentCell_ = consistent;
325  }

References cellLocationFit(), cellLocationHT(), consistentCell_, l1track3D_, and tmtt::L1track3D::mergedHTcell().

Referenced by L1fittedTrack().

◆ setInfoCHI2()

void tmtt::L1fittedTrack::setInfoCHI2 ( )
inline

Definition at line 133 of file L1fittedTrack.h.

133 {}

◆ setInfoKF()

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

Definition at line 124 of file L1fittedTrack.h.

124  {
125  nSkippedLayers_ = nSkippedLayers;
126  numUpdateCalls_ = numUpdateCalls;
127  }

References nSkippedLayers_, and numUpdateCalls_.

Referenced by tmtt::KFbase::fit().

◆ setInfoLR()

void tmtt::L1fittedTrack::setInfoLR ( int  numIterations,
std::string  lostMatchingState,
std::unordered_map< std::string, int >  stateCalls 
)
inline

Definition at line 128 of file L1fittedTrack.h.

128  {
129  numIterations_ = numIterations;
130  lostMatchingState_ = lostMatchingState;
131  stateCalls_ = stateCalls;
132  }

References lostMatchingState_, numIterations_, and stateCalls_.

◆ stubs()

const std::vector<Stub*>& tmtt::L1fittedTrack::stubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 176 of file L1fittedTrack.h.

176 { return stubs_; }

References stubs_.

◆ stubsConst()

const std::vector<const Stub*>& tmtt::L1fittedTrack::stubsConst ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 175 of file L1fittedTrack.h.

175 { return stubsConst_; }

References stubsConst_.

Referenced by returnKFTrackletTrack().

◆ tanLambda()

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

Definition at line 233 of file L1fittedTrack.h.

233 { return tanLambda_; }

References tanLambda_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ theta()

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

Definition at line 234 of file L1fittedTrack.h.

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

References tanLambda_.

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

◆ z0()

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

Definition at line 232 of file L1fittedTrack.h.

232 { return z0_; }

References z0_.

Referenced by tmtt::ConverterToTTTrack::makeTTTrack(), and returnKFTrackletTrack().

◆ zAtChosenR()

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

Definition at line 264 of file L1fittedTrack.h.

264  {
265  return (z0_ + (settings_->chosenRofZ()) * tanLambda_);
266  } // neglects transverse impact parameter & track curvature.

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

Referenced by consistentSector().

Member Data Documentation

◆ accepted_

bool tmtt::L1fittedTrack::accepted_
private

Definition at line 407 of file L1fittedTrack.h.

Referenced by accepted().

◆ chi2rphi_

float tmtt::L1fittedTrack::chi2rphi_
private

Definition at line 363 of file L1fittedTrack.h.

Referenced by chi2(), and chi2rphi().

◆ chi2rphi_bcon_

float tmtt::L1fittedTrack::chi2rphi_bcon_
private

Definition at line 371 of file L1fittedTrack.h.

Referenced by chi2_bcon(), chi2rphi_bcon(), and setBeamConstr().

◆ chi2rz_

float tmtt::L1fittedTrack::chi2rz_
private

Definition at line 364 of file L1fittedTrack.h.

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

◆ consistentCell_

bool tmtt::L1fittedTrack::consistentCell_
private

Definition at line 404 of file L1fittedTrack.h.

Referenced by consistentHTcell(), L1fittedTrack(), and setConsistentHTcell().

◆ d0_

float tmtt::L1fittedTrack::d0_
private

Definition at line 359 of file L1fittedTrack.h.

Referenced by d0(), L1fittedTrack(), and phiAtChosenR().

◆ d0_bcon_

float tmtt::L1fittedTrack::d0_bcon_
private

Definition at line 369 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), phiAtChosenR(), and setBeamConstr().

◆ digitalTrack_

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

Definition at line 400 of file L1fittedTrack.h.

Referenced by digitaltrack().

◆ done_bcon_

bool tmtt::L1fittedTrack::done_bcon_
private

Definition at line 367 of file L1fittedTrack.h.

Referenced by consistentSector(), done_bcon(), and setBeamConstr().

◆ hitPattern_

unsigned int tmtt::L1fittedTrack::hitPattern_
private

Definition at line 355 of file L1fittedTrack.h.

Referenced by hitPattern().

◆ htRphiTmp_

std::shared_ptr<HTrphi> tmtt::L1fittedTrack::htRphiTmp_
private

Definition at line 390 of file L1fittedTrack.h.

Referenced by cellLocationFit(), and L1fittedTrack().

◆ iEtaReg_

unsigned int tmtt::L1fittedTrack::iEtaReg_
private

Definition at line 378 of file L1fittedTrack.h.

Referenced by iEtaReg(), and L1fittedTrack().

◆ iPhiSec_

unsigned int tmtt::L1fittedTrack::iPhiSec_
private

Definition at line 377 of file L1fittedTrack.h.

Referenced by iPhiSec(), and L1fittedTrack().

◆ l1track3D_

const L1track3D* tmtt::L1fittedTrack::l1track3D_
private

◆ lostMatchingState_

std::string tmtt::L1fittedTrack::lostMatchingState_
private

Definition at line 397 of file L1fittedTrack.h.

Referenced by infoLR(), and setInfoLR().

◆ matchedStubs_

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

Definition at line 384 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), matchedStubs(), and numMatchedStubs().

◆ matchedTP_

const TP* tmtt::L1fittedTrack::matchedTP_
private

Definition at line 383 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), and matchedTP().

◆ nHelixParam_

unsigned int tmtt::L1fittedTrack::nHelixParam_
private

Definition at line 374 of file L1fittedTrack.h.

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

◆ nLayers_

unsigned int tmtt::L1fittedTrack::nLayers_
private

Definition at line 352 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), and numLayers().

◆ nMatchedLayers_

unsigned int tmtt::L1fittedTrack::nMatchedLayers_
private

Definition at line 385 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), and numMatchedLayers().

◆ noStubs_

const std::vector< Stub * > tmtt::L1fittedTrack::noStubs_
staticprivate

Definition at line 402 of file L1fittedTrack.h.

◆ nSkippedLayers_

unsigned int tmtt::L1fittedTrack::nSkippedLayers_
private

Definition at line 393 of file L1fittedTrack.h.

Referenced by infoKF(), and setInfoKF().

◆ numIterations_

int tmtt::L1fittedTrack::numIterations_
private

Definition at line 396 of file L1fittedTrack.h.

Referenced by infoLR(), and setInfoLR().

◆ numUpdateCalls_

unsigned int tmtt::L1fittedTrack::numUpdateCalls_
private

Definition at line 394 of file L1fittedTrack.h.

Referenced by infoKF(), and setInfoKF().

◆ optoLinkID_

unsigned int tmtt::L1fittedTrack::optoLinkID_
private

Definition at line 380 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), and optoLinkID().

◆ phi0_

float tmtt::L1fittedTrack::phi0_
private

Definition at line 360 of file L1fittedTrack.h.

Referenced by phi0(), and phiAtChosenR().

◆ phi0_bcon_

float tmtt::L1fittedTrack::phi0_bcon_
private

Definition at line 370 of file L1fittedTrack.h.

Referenced by phi0_bcon(), phiAtChosenR(), and setBeamConstr().

◆ qOverPt_

float tmtt::L1fittedTrack::qOverPt_
private

Definition at line 358 of file L1fittedTrack.h.

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

◆ qOverPt_bcon_

float tmtt::L1fittedTrack::qOverPt_bcon_
private

Definition at line 368 of file L1fittedTrack.h.

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

◆ secTmp_

std::shared_ptr<Sector> tmtt::L1fittedTrack::secTmp_
private

Definition at line 388 of file L1fittedTrack.h.

Referenced by consistentSector(), and L1fittedTrack().

◆ settings_

const Settings* tmtt::L1fittedTrack::settings_
private

Definition at line 344 of file L1fittedTrack.h.

Referenced by phiAtChosenR(), and zAtChosenR().

◆ stateCalls_

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

Definition at line 398 of file L1fittedTrack.h.

Referenced by infoLR(), and setInfoLR().

◆ stubs_

std::vector<Stub*> tmtt::L1fittedTrack::stubs_
private

Definition at line 350 of file L1fittedTrack.h.

Referenced by L1fittedTrack(), numKilledMatchedStubs(), numStubs(), and stubs().

◆ stubsConst_

std::vector<const Stub*> tmtt::L1fittedTrack::stubsConst_
private

Definition at line 351 of file L1fittedTrack.h.

Referenced by stubsConst().

◆ tanLambda_

float tmtt::L1fittedTrack::tanLambda_
private

Definition at line 362 of file L1fittedTrack.h.

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

◆ z0_

float tmtt::L1fittedTrack::z0_
private

Definition at line 361 of file L1fittedTrack.h.

Referenced by z0(), and zAtChosenR().

tmtt::L1fittedTrack::iPhiSec
unsigned int iPhiSec() const override
Definition: L1fittedTrack.h:289
tmtt::Settings::invPtToDphi
double invPtToDphi() const
Definition: Settings.h:395
tmtt::L1fittedTrack::nLayers_
unsigned int nLayers_
Definition: L1fittedTrack.h:352
tmtt::L1fittedTrack::z0
float z0() const
Definition: L1fittedTrack.h:232
tmtt::L1fittedTrack::setConsistentHTcell
void setConsistentHTcell()
Definition: L1fittedTrack.h:305
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
tmtt::L1fittedTrack::tanLambda
float tanLambda() const
Definition: L1fittedTrack.h:233
tmtt::Utility::countLayers
unsigned int countLayers(const Settings *settings, const std::vector< const Stub * > &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
Definition: Utility.cc:25
tmtt::L1fittedTrack::secTmp_
std::shared_ptr< Sector > secTmp_
Definition: L1fittedTrack.h:388
tmtt::L1fittedTrack::iEtaReg
unsigned int iEtaReg() const override
Definition: L1fittedTrack.h:290
tmtt::L1fittedTrack::stubs_
std::vector< Stub * > stubs_
Definition: L1fittedTrack.h:350
reco::deltaPhi
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
tmtt::L1fittedTrack::chi2
float chi2() const
Definition: L1fittedTrack.h:277
tmtt::L1track3D::iEtaReg
unsigned int iEtaReg() const override
Definition: L1track3D.h:175
tmtt::L1fittedTrack::numDOFrphi
unsigned int numDOFrphi() const
Definition: L1fittedTrack.h:273
tmtt::L1fittedTrack::qOverPt_bcon_
float qOverPt_bcon_
Definition: L1fittedTrack.h:368
tmtt::Settings::enableDigitize
bool enableDigitize() const
Definition: Settings.h:80
tmtt::L1fittedTrack::accepted
bool accepted() const
Definition: L1fittedTrack.h:297
DigiToRawDM_cff.TP
TP
Definition: DigiToRawDM_cff.py:51
tmtt::L1fittedTrack::cellLocationFit
std::pair< unsigned int, unsigned int > cellLocationFit() const
Definition: L1fittedTrack.h:189
tmtt::L1track3D::cellLocationHT
std::pair< unsigned int, unsigned int > cellLocationHT() const override
Definition: L1track3D.h:101
tmtt::L1fittedTrack::numDOF_bcon
unsigned int numDOF_bcon() const
Definition: L1fittedTrack.h:282
tmtt::L1track3D::numMatchedStubs
unsigned int numMatchedStubs() const override
Definition: L1track3D.h:190
tmtt::L1fittedTrack::stateCalls_
std::unordered_map< std::string, int > stateCalls_
Definition: L1fittedTrack.h:398
tmtt::Settings::chosenRofPhi
double chosenRofPhi() const
Definition: Settings.h:112
tmtt::L1fittedTrack::chi2rphi
float chi2rphi() const
Definition: L1fittedTrack.h:275
tmtt::L1fittedTrack::nHelixParam
float nHelixParam() const
Definition: L1fittedTrack.h:269
tmtt::L1fittedTrack::noStubs_
static const std::vector< Stub * > noStubs_
Definition: L1fittedTrack.h:402
tmtt::L1fittedTrack::hitPattern_
unsigned int hitPattern_
Definition: L1fittedTrack.h:355
tmtt::L1track3D::iPhiSec
unsigned int iPhiSec() const override
Definition: L1track3D.h:174
alignCSCRings.s
s
Definition: alignCSCRings.py:92
tmtt::L1track3D::matchedTP
const TP * matchedTP() const override
Definition: L1track3D.h:186
tmtt::L1fittedTrack::htRphiTmp_
std::shared_ptr< HTrphi > htRphiTmp_
Definition: L1fittedTrack.h:390
tmtt::L1fittedTrack::qOverPt
float qOverPt() const override
Definition: L1fittedTrack.h:222
tmtt::L1fittedTrack::phi0_bcon
float phi0_bcon() const
Definition: L1fittedTrack.h:249
tmtt::L1track3D::mergedHTcell
bool mergedHTcell() const
Definition: L1track3D.h:181
tmtt::L1fittedTrack::stubs
const std::vector< Stub * > & stubs() const override
Definition: L1fittedTrack.h:176
tmtt::L1fittedTrack::tanLambda_
float tanLambda_
Definition: L1fittedTrack.h:362
tmtt::L1fittedTrack::phi0
float phi0() const override
Definition: L1fittedTrack.h:231
tmtt::L1fittedTrack::chi2_bcon
float chi2_bcon() const
Definition: L1fittedTrack.h:285
tmtt::L1fittedTrack::chi2rphi_bcon
float chi2rphi_bcon() const
Definition: L1fittedTrack.h:284
tmtt::L1fittedTrack::nSkippedLayers_
unsigned int nSkippedLayers_
Definition: L1fittedTrack.h:393
tmtt::L1fittedTrack::invPt_bcon
float invPt_bcon() const
Definition: L1fittedTrack.h:243
tmtt::L1fittedTrack::optoLinkID_
unsigned int optoLinkID_
Definition: L1fittedTrack.h:380
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
tmtt::L1fittedTrack::settings_
const Settings * settings_
Definition: L1fittedTrack.h:344
tmtt::L1fittedTrack::hitPattern
unsigned int hitPattern() const
Definition: L1fittedTrack.h:184
tmtt::L1fittedTrack::chi2rphi_
float chi2rphi_
Definition: L1fittedTrack.h:363
tmtt::L1fittedTrack::numIterations_
int numIterations_
Definition: L1fittedTrack.h:396
tmtt::L1fittedTrack::L1fittedTrack
L1fittedTrack()
Definition: L1fittedTrack.h:109
tmtt::L1fittedTrack::iPhiSec_
unsigned int iPhiSec_
Definition: L1fittedTrack.h:377
tmtt::L1fittedTrack::d0_bcon_
float d0_bcon_
Definition: L1fittedTrack.h:369
tmtt::L1fittedTrack::done_bcon_
bool done_bcon_
Definition: L1fittedTrack.h:367
tmtt::L1fittedTrack::numStubs
unsigned int numStubs() const override
Definition: L1fittedTrack.h:178
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
tmtt::Settings::chosenRofZ
double chosenRofZ() const
Definition: Settings.h:127
tmtt::L1fittedTrack::accepted_
bool accepted_
Definition: L1fittedTrack.h:407
tmtt::L1fittedTrack::numUpdateCalls_
unsigned int numUpdateCalls_
Definition: L1fittedTrack.h:394
tmtt::L1fittedTrack::l1track3D_
const L1track3D * l1track3D_
Definition: L1fittedTrack.h:347
tmtt::L1fittedTrack::chi2rphi_bcon_
float chi2rphi_bcon_
Definition: L1fittedTrack.h:371
tmtt::L1fittedTrack::stubsConst
const std::vector< const Stub * > & stubsConst() const override
Definition: L1fittedTrack.h:175
tmtt::L1fittedTrack::invPt
float invPt() const
Definition: L1fittedTrack.h:224
tmtt::L1fittedTrack::digitalTrack_
std::shared_ptr< DigitalTrack > digitalTrack_
Definition: L1fittedTrack.h:400
tmtt::L1fittedTrack::zAtChosenR
float zAtChosenR() const
Definition: L1fittedTrack.h:264
tmtt::L1fittedTrack::matchedStubs_
std::vector< const Stub * > matchedStubs_
Definition: L1fittedTrack.h:384
tmtt::L1fittedTrack::l1track3D
const L1track3D * l1track3D() const
Definition: L1fittedTrack.h:172
tmtt::L1fittedTrack::cellLocationHT
std::pair< unsigned int, unsigned int > cellLocationHT() const override
Definition: L1fittedTrack.h:191
tmtt::L1fittedTrack::nMatchedLayers_
unsigned int nMatchedLayers_
Definition: L1fittedTrack.h:385
tmtt::L1fittedTrack::lostMatchingState_
std::string lostMatchingState_
Definition: L1fittedTrack.h:397
tmtt::L1fittedTrack::qOverPt_bcon
float qOverPt_bcon() const
Definition: L1fittedTrack.h:241
tmtt::L1fittedTrack::phi0_
float phi0_
Definition: L1fittedTrack.h:360
tmtt::L1trackBase::L1trackBase
L1trackBase()
Definition: L1trackBase.h:19
tmtt::L1fittedTrack::phi0_bcon_
float phi0_bcon_
Definition: L1fittedTrack.h:370
tmtt::L1fittedTrack::nHelixParam_
unsigned int nHelixParam_
Definition: L1fittedTrack.h:374
tmtt::L1fittedTrack::z0_
float z0_
Definition: L1fittedTrack.h:361
tmtt::Utility::matchingTP
const TP * matchingTP(const Settings *settings, const std::vector< const Stub * > &vstubs, unsigned int &nMatchedLayersBest, std::vector< const Stub * > &matchedStubsBest)
Definition: Utility.cc:63
tmtt::L1fittedTrack::consistentCell_
bool consistentCell_
Definition: L1fittedTrack.h:404
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
tmtt::L1fittedTrack::stubsConst_
std::vector< const Stub * > stubsConst_
Definition: L1fittedTrack.h:351
tmtt::L1fittedTrack::chi2rz_
float chi2rz_
Definition: L1fittedTrack.h:364
tmtt::L1fittedTrack::d0_
float d0_
Definition: L1fittedTrack.h:359
tmtt::L1fittedTrack::numMatchedStubs
unsigned int numMatchedStubs() const override
Definition: L1fittedTrack.h:201
tmtt::L1track3D::optoLinkID
unsigned int optoLinkID() const override
Definition: L1track3D.h:178
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
tmtt::L1fittedTrack::qOverPt_
float qOverPt_
Definition: L1fittedTrack.h:358
tmtt::L1fittedTrack::d0
float d0() const
Definition: L1fittedTrack.h:230
tmtt::L1fittedTrack::theta
float theta() const
Definition: L1fittedTrack.h:234
tmtt::L1fittedTrack::phiAtChosenR
float phiAtChosenR(bool beamConstraint) const
Definition: L1fittedTrack.h:253
tmtt::L1fittedTrack::chi2rz
float chi2rz() const
Definition: L1fittedTrack.h:276
tmtt::L1fittedTrack::iEtaReg_
unsigned int iEtaReg_
Definition: L1fittedTrack.h:378
tmtt::L1fittedTrack::matchedTP_
const TP * matchedTP_
Definition: L1fittedTrack.h:383
tmtt::L1track3D::numStubs
unsigned int numStubs() const override
Definition: L1track3D.h:97
tmtt::L1fittedTrack::numDOF
unsigned int numDOF() const
Definition: L1fittedTrack.h:272