CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
mkfit::TrackBase Class Reference

#include <Track.h>

Inheritance diagram for mkfit::TrackBase:
mkfit::Track mkfit::TrackCand

Classes

struct  Status
 

Public Types

enum  ProdType { ProdType::NotSet = 0, ProdType::Signal = 1, ProdType::InTimePU = 2, ProdType::OutOfTimePU = 3 }
 
enum  TrackAlgorithm {
  TrackAlgorithm::undefAlgorithm = 0, TrackAlgorithm::ctf = 1, TrackAlgorithm::duplicateMerge = 2, TrackAlgorithm::cosmics = 3,
  TrackAlgorithm::initialStep = 4, TrackAlgorithm::lowPtTripletStep = 5, TrackAlgorithm::pixelPairStep = 6, TrackAlgorithm::detachedTripletStep = 7,
  TrackAlgorithm::mixedTripletStep = 8, TrackAlgorithm::pixelLessStep = 9, TrackAlgorithm::tobTecStep = 10, TrackAlgorithm::jetCoreRegionalStep = 11,
  TrackAlgorithm::conversionStep = 12, TrackAlgorithm::muonSeededStepInOut = 13, TrackAlgorithm::muonSeededStepOutIn = 14, TrackAlgorithm::outInEcalSeededConv = 15,
  TrackAlgorithm::inOutEcalSeededConv = 16, TrackAlgorithm::nuclInter = 17, TrackAlgorithm::standAloneMuon = 18, TrackAlgorithm::globalMuon = 19,
  TrackAlgorithm::cosmicStandAloneMuon = 20, TrackAlgorithm::cosmicGlobalMuon = 21, TrackAlgorithm::highPtTripletStep = 22, TrackAlgorithm::lowPtQuadStep = 23,
  TrackAlgorithm::detachedQuadStep = 24, TrackAlgorithm::reservedForUpgrades1 = 25, TrackAlgorithm::reservedForUpgrades2 = 26, TrackAlgorithm::bTagGhostTracks = 27,
  TrackAlgorithm::beamhalo = 28, TrackAlgorithm::gsf = 29, TrackAlgorithm::hltPixel = 30, TrackAlgorithm::hltIter0 = 31,
  TrackAlgorithm::hltIter1 = 32, TrackAlgorithm::hltIter2 = 33, TrackAlgorithm::hltIter3 = 34, TrackAlgorithm::hltIter4 = 35,
  TrackAlgorithm::hltIterX = 36, TrackAlgorithm::hiRegitMuInitialStep = 37, TrackAlgorithm::hiRegitMuLowPtTripletStep = 38, TrackAlgorithm::hiRegitMuPixelPairStep = 39,
  TrackAlgorithm::hiRegitMuDetachedTripletStep = 40, TrackAlgorithm::hiRegitMuMixedTripletStep = 41, TrackAlgorithm::hiRegitMuPixelLessStep = 42, TrackAlgorithm::hiRegitMuTobTecStep = 43,
  TrackAlgorithm::hiRegitMuMuonSeededStepInOut = 44, TrackAlgorithm::hiRegitMuMuonSeededStepOutIn = 45, TrackAlgorithm::algoSize = 46
}
 track algorithm; copy from TrackBase.h to keep in standalone builds More...
 

Public Member Functions

int algoint () const
 
TrackAlgorithm algorithm () const
 
int charge () const
 
float chi2 () const
 
float d0BeamSpot (const float x_bs, const float y_bs, bool linearize=false) const
 
float emomEta () const
 
float emomPhi () const
 
float epT () const
 
const float * errArray () const
 
const SMatrixSym66errors () const
 
SMatrixSym66errors_nc ()
 
bool getDuplicateValue () const
 
int getEtaRegion () const
 
int getNSeedHits () const
 
Status getStatus () const
 
bool hasNanNSillyValues () const
 
bool hasSillyValues (bool dump, bool fix, const char *pref="")
 
float invpT () const
 
bool isFindable () const
 
bool isNotFindable () const
 
int label () const
 
SVector3 momentum () const
 
float momEta () const
 
float momPhi () const
 
float p () const
 
const SVector6parameters () const
 
SVector6parameters_nc ()
 
const float * posArray () const
 
float posEta () const
 
SVector3 position () const
 
float posPhi () const
 
float posR () const
 
float posRsq () const
 
ProdType prodType () const
 
float pT () const
 
float px () const
 
float py () const
 
float pz () const
 
float score () const
 
void setAlgoint (int algo)
 
void setAlgorithm (TrackAlgorithm algo)
 
void setCharge (int chg)
 
void setChi2 (float chi2)
 
void setDuplicateValue (bool d)
 
void setEtaRegion (int r)
 
void setLabel (int lbl)
 
void setNotFindable ()
 
void setNSeedHits (int n)
 
void setProdType (ProdType ptyp)
 
void setScore (float s)
 
void setState (const TrackState &newState)
 
void setStatus (Status s)
 
const TrackStatestate () const
 
TrackStatestate_nc ()
 
float theta () const
 
 TrackBase ()
 
 TrackBase (const TrackState &state, float chi2, int label)
 
 TrackBase (int charge, const SVector3 &position, const SVector3 &momentum, const SMatrixSym66 &errors, float chi2)
 
float x () const
 
float y () const
 
float z () const
 

Static Public Member Functions

static const char * algoint_to_cstr (int algo)
 

Protected Attributes

float chi2_ = 0.
 
int label_ = -1
 
short int lastHitIdx_ = -1
 
short int nFoundHits_ = 0
 
float score_ = 0.
 
TrackState state_
 
Status status_
 

Detailed Description

Definition at line 134 of file Track.h.

Member Enumeration Documentation

◆ ProdType

Enumerator
NotSet 
Signal 
InTimePU 
OutOfTimePU 

Definition at line 262 of file Track.h.

262 { NotSet = 0, Signal = 1, InTimePU = 2, OutOfTimePU = 3 };

◆ TrackAlgorithm

track algorithm; copy from TrackBase.h to keep in standalone builds

Enumerator
undefAlgorithm 
ctf 
duplicateMerge 
cosmics 
initialStep 
lowPtTripletStep 
pixelPairStep 
detachedTripletStep 
mixedTripletStep 
pixelLessStep 
tobTecStep 
jetCoreRegionalStep 
conversionStep 
muonSeededStepInOut 
muonSeededStepOutIn 
outInEcalSeededConv 
inOutEcalSeededConv 
nuclInter 
standAloneMuon 
globalMuon 
cosmicStandAloneMuon 
cosmicGlobalMuon 
highPtTripletStep 
lowPtQuadStep 
detachedQuadStep 
reservedForUpgrades1 
reservedForUpgrades2 
bTagGhostTracks 
beamhalo 
gsf 
hltPixel 
hltIter0 
hltIter1 
hltIter2 
hltIter3 
hltIter4 
hltIterX 
hiRegitMuInitialStep 
hiRegitMuLowPtTripletStep 
hiRegitMuPixelPairStep 
hiRegitMuDetachedTripletStep 
hiRegitMuMixedTripletStep 
hiRegitMuPixelLessStep 
hiRegitMuTobTecStep 
hiRegitMuMuonSeededStepInOut 
hiRegitMuMuonSeededStepOutIn 
algoSize 

Definition at line 277 of file Track.h.

277  {
278  undefAlgorithm = 0,
279  ctf = 1,
280  duplicateMerge = 2,
281  cosmics = 3,
282  initialStep = 4,
283  lowPtTripletStep = 5,
284  pixelPairStep = 6,
286  mixedTripletStep = 8,
287  pixelLessStep = 9,
288  tobTecStep = 10,
289  jetCoreRegionalStep = 11,
290  conversionStep = 12,
291  muonSeededStepInOut = 13,
292  muonSeededStepOutIn = 14,
293  outInEcalSeededConv = 15,
294  inOutEcalSeededConv = 16,
295  nuclInter = 17,
296  standAloneMuon = 18,
297  globalMuon = 19,
299  cosmicGlobalMuon = 21,
300  // Phase1
301  highPtTripletStep = 22,
302  lowPtQuadStep = 23,
303  detachedQuadStep = 24,
304  reservedForUpgrades1 = 25,
305  reservedForUpgrades2 = 26,
306  bTagGhostTracks = 27,
307  beamhalo = 28,
308  gsf = 29,
309  // HLT algo name
310  hltPixel = 30,
311  // steps used by PF
312  hltIter0 = 31,
313  hltIter1 = 32,
314  hltIter2 = 33,
315  hltIter3 = 34,
316  hltIter4 = 35,
317  // steps used by all other objects @HLT
318  hltIterX = 36,
319  // steps used by HI muon regional iterative tracking
326  hiRegitMuTobTecStep = 43,
329  algoSize = 46
330  };
hiRegitMuMuonSeededStepInOut
Definition: ntupleEnum.py:67
hiRegitMuDetachedTripletStep
Definition: ntupleEnum.py:63
hiRegitMuPixelPairStep
Definition: ntupleEnum.py:62
cosmicStandAloneMuon
Definition: ntupleEnum.py:41
hiRegitMuPixelLessStep
Definition: ntupleEnum.py:65
hiRegitMuLowPtTripletStep
Definition: ntupleEnum.py:61
hiRegitMuMuonSeededStepOutIn
Definition: ntupleEnum.py:68
muonSeededStepInOut
Definition: ntupleEnum.py:37
hiRegitMuInitialStep
Definition: ntupleEnum.py:60
outInEcalSeededConv
Definition: ntupleEnum.py:39
hiRegitMuTobTecStep
Definition: ntupleEnum.py:66
hiRegitMuMixedTripletStep
Definition: ntupleEnum.py:64
inOutEcalSeededConv
Definition: ntupleEnum.py:39
muonSeededStepOutIn
Definition: ntupleEnum.py:38

Constructor & Destructor Documentation

◆ TrackBase() [1/3]

mkfit::TrackBase::TrackBase ( )
inline

Definition at line 136 of file Track.h.

136 {}

◆ TrackBase() [2/3]

mkfit::TrackBase::TrackBase ( const TrackState state,
float  chi2,
int  label 
)
inline

Definition at line 138 of file Track.h.

138 : state_(state), chi2_(chi2), label_(label) {}
TrackState state_
Definition: Track.h:345
float chi2_
Definition: Track.h:346
float chi2() const
Definition: Track.h:186
int label() const
Definition: Track.h:188
const TrackState & state() const
Definition: Track.h:143

◆ TrackBase() [3/3]

mkfit::TrackBase::TrackBase ( int  charge,
const SVector3 position,
const SVector3 momentum,
const SMatrixSym66 errors,
float  chi2 
)
inline

Definition at line 140 of file Track.h.

int charge() const
Definition: Track.h:185
TrackState state_
Definition: Track.h:345
float chi2_
Definition: Track.h:346
float chi2() const
Definition: Track.h:186
SVector3 momentum() const
Definition: Track.h:158
SVector3 position() const
Definition: Track.h:157
Definition: errors.py:1

Member Function Documentation

◆ algoint()

int mkfit::TrackBase::algoint ( ) const
inline

Definition at line 332 of file Track.h.

References mkfit::TrackBase::Status::algorithm, and status_.

332 { return status_.algorithm; }
unsigned int algorithm
Definition: Track.h:225
Status status_
Definition: Track.h:350

◆ algoint_to_cstr()

const char * mkfit::TrackBase::algoint_to_cstr ( int  algo)
static

Definition at line 204 of file Track.cc.

References algoSize, and names.

Referenced by mkfit::Shell::Compare(), mkfit::Shell::FillByLabelMaps_CkfBase(), mkfit::Shell::PrintIterations(), mkfit::ConfigJson::save_Iterations(), and mkfit::Shell::Status().

204  {
205  static const char* const names[] = {"undefAlgorithm",
206  "ctf",
207  "duplicateMerge",
208  "cosmics",
209  "initialStep",
210  "lowPtTripletStep",
211  "pixelPairStep",
212  "detachedTripletStep",
213  "mixedTripletStep",
214  "pixelLessStep",
215  "tobTecStep",
216  "jetCoreRegionalStep",
217  "conversionStep",
218  "muonSeededStepInOut",
219  "muonSeededStepOutIn",
220  "outInEcalSeededConv",
221  "inOutEcalSeededConv",
222  "nuclInter",
223  "standAloneMuon",
224  "globalMuon",
225  "cosmicStandAloneMuon",
226  "cosmicGlobalMuon",
227  "highPtTripletStep",
228  "lowPtQuadStep",
229  "detachedQuadStep",
230  "reservedForUpgrades1",
231  "reservedForUpgrades2",
232  "bTagGhostTracks",
233  "beamhalo",
234  "gsf",
235  "hltPixel",
236  "hltIter0",
237  "hltIter1",
238  "hltIter2",
239  "hltIter3",
240  "hltIter4",
241  "hltIterX",
242  "hiRegitMuInitialStep",
243  "hiRegitMuLowPtTripletStep",
244  "hiRegitMuPixelPairStep",
245  "hiRegitMuDetachedTripletStep",
246  "hiRegitMuMixedTripletStep",
247  "hiRegitMuPixelLessStep",
248  "hiRegitMuTobTecStep",
249  "hiRegitMuMuonSeededStepInOut",
250  "hiRegitMuMuonSeededStepOutIn",
251  "algoSize"};
252 
253  if (algo < 0 || algo >= (int)TrackAlgorithm::algoSize)
254  return names[0];
255  return names[algo];
256  }
const std::string names[nVars_]

◆ algorithm()

TrackAlgorithm mkfit::TrackBase::algorithm ( ) const
inline

Definition at line 333 of file Track.h.

References mkfit::TrackBase::Status::algorithm, and status_.

Referenced by mkfit::Event::select_tracks_iter().

333 { return TrackAlgorithm(status_.algorithm); }
unsigned int algorithm
Definition: Track.h:225
Status status_
Definition: Track.h:350
TrackAlgorithm
track algorithm; copy from TrackBase.h to keep in standalone builds
Definition: Track.h:277

◆ charge()

int mkfit::TrackBase::charge ( void  ) const
inline

◆ chi2()

float mkfit::TrackBase::chi2 ( void  ) const
inline

◆ d0BeamSpot()

float mkfit::TrackBase::d0BeamSpot ( const float  x_bs,
const float  y_bs,
bool  linearize = false 
) const

Definition at line 191 of file Track.cc.

References funct::abs(), mkfit::Config::Bfield, charge(), funct::cos(), f, dqmdumpme::k, momPhi(), pT(), px(), py(), funct::sin(), mkfit::Const::sol, x(), and y().

Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter().

191  {
192  if (linearize) {
193  return std::abs(std::cos(momPhi()) * (y() - y_bs) - std::sin(momPhi()) * (x() - x_bs));
194  } else {
195  const float k = ((charge() < 0) ? 100.0f : -100.0f) / (Const::sol * Config::Bfield);
196  const float abs_ooc_half = std::abs(k * pT());
197  // center of helix in x,y plane
198  const float x_center = x() - k * py();
199  const float y_center = y() + k * px();
200  return std::hypot(x_center - x_bs, y_center - y_bs) - abs_ooc_half;
201  }
202  }
int charge() const
Definition: Track.h:185
float pT() const
Definition: Track.h:171
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float py() const
Definition: Track.h:169
float y() const
Definition: Track.h:161
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
constexpr float Bfield
Definition: Config.h:53
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
constexpr float sol
Definition: Config.h:13
float px() const
Definition: Track.h:168
float x() const
Definition: Track.h:160
float momPhi() const
Definition: Track.h:174

◆ emomEta()

float mkfit::TrackBase::emomEta ( ) const
inline

Definition at line 181 of file Track.h.

References mkfit::TrackState::emomEta(), and state_.

181 { return state_.emomEta(); }
TrackState state_
Definition: Track.h:345
float emomEta() const
Definition: Track.h:113

◆ emomPhi()

float mkfit::TrackBase::emomPhi ( ) const
inline

Definition at line 180 of file Track.h.

References mkfit::TrackState::emomPhi(), and state_.

180 { return state_.emomPhi(); }
TrackState state_
Definition: Track.h:345
float emomPhi() const
Definition: Track.h:110

◆ epT()

float mkfit::TrackBase::epT ( ) const
inline

Definition at line 179 of file Track.h.

References mkfit::TrackState::epT(), and state_.

179 { return state_.epT(); }
float epT() const
Definition: Track.h:112
TrackState state_
Definition: Track.h:345

◆ errArray()

const float* mkfit::TrackBase::errArray ( ) const
inline

Definition at line 150 of file Track.h.

References mkfit::TrackState::errors, and state_.

150 { return state_.errors.Array(); }
TrackState state_
Definition: Track.h:345
SMatrixSym66 errors
Definition: Track.h:63

◆ errors()

const SMatrixSym66& mkfit::TrackBase::errors ( void  ) const
inline

◆ errors_nc()

SMatrixSym66& mkfit::TrackBase::errors_nc ( )
inline

Definition at line 154 of file Track.h.

References mkfit::TrackState::errors, and state_.

Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().

154 { return state_.errors; }
TrackState state_
Definition: Track.h:345
SMatrixSym66 errors
Definition: Track.h:63

◆ getDuplicateValue()

bool mkfit::TrackBase::getDuplicateValue ( ) const
inline

◆ getEtaRegion()

int mkfit::TrackBase::getEtaRegion ( ) const
inline

Definition at line 268 of file Track.h.

References mkfit::TrackBase::Status::eta_region, and status_.

Referenced by mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits().

268 { return status_.eta_region; }
Status status_
Definition: Track.h:350
unsigned int eta_region
Definition: Track.h:234

◆ getNSeedHits()

int mkfit::TrackBase::getNSeedHits ( ) const
inline

◆ getStatus()

Status mkfit::TrackBase::getStatus ( ) const
inline

Definition at line 253 of file Track.h.

References status_.

Referenced by mkfit::MkFinder::copy_in().

253 { return status_; }
Status status_
Definition: Track.h:350

◆ hasNanNSillyValues()

bool mkfit::TrackBase::hasNanNSillyValues ( ) const

Definition at line 177 of file Track.cc.

References mkfit::TrackState::errors, mps_fire::i, mkfit::isFinite(), dqmiolumiharvest::j, mkfit::LL, and state_.

177  {
178  bool is_silly = false;
179  for (int i = 0; i < LL; ++i) {
180  for (int j = 0; j <= i; ++j) {
181  if ((i == j && state_.errors.At(i, j) < 0) || !isFinite(state_.errors.At(i, j))) {
182  is_silly = true;
183  return is_silly;
184  }
185  }
186  }
187  return is_silly;
188  }
TrackState state_
Definition: Track.h:345
SMatrixSym66 errors
Definition: Track.h:63
constexpr Matriplex::idx_t LL
Definition: Matrix.h:45
constexpr bool isFinite(float x)

◆ hasSillyValues()

bool mkfit::TrackBase::hasSillyValues ( bool  dump,
bool  fix,
const char *  pref = "" 
)

Definition at line 155 of file Track.cc.

References GCP_Ntuples_cfg::dump, mkfit::TrackState::errors, mps_fire::i, mkfit::isFinite(), dqmiolumiharvest::j, label(), mkfit::LL, pT(), and state_.

155  {
156  bool is_silly = false;
157  for (int i = 0; i < LL; ++i) {
158  for (int j = 0; j <= i; ++j) {
159  if ((i == j && state_.errors.At(i, j) < 0) || !isFinite(state_.errors.At(i, j))) {
160  if (!is_silly) {
161  is_silly = true;
162  if (dump)
163  printf("%s (label=%d, pT=%f):", pref, label(), pT());
164  }
165  if (dump)
166  printf(" (%d,%d)=%e", i, j, state_.errors.At(i, j));
167  if (fix)
168  state_.errors.At(i, j) = 0.00001;
169  }
170  }
171  }
172  if (is_silly && dump)
173  printf("\n");
174  return is_silly;
175  }
TrackState state_
Definition: Track.h:345
float pT() const
Definition: Track.h:171
int label() const
Definition: Track.h:188
SMatrixSym66 errors
Definition: Track.h:63
constexpr Matriplex::idx_t LL
Definition: Matrix.h:45
constexpr bool isFinite(float x)

◆ invpT()

float mkfit::TrackBase::invpT ( ) const
inline

◆ isFindable()

bool mkfit::TrackBase::isFindable ( ) const
inline

◆ isNotFindable()

bool mkfit::TrackBase::isNotFindable ( ) const
inline

Definition at line 257 of file Track.h.

References mkfit::TrackBase::Status::not_findable, and status_.

257 { return status_.not_findable; }
Status status_
Definition: Track.h:350

◆ label()

int mkfit::TrackBase::label ( ) const
inline

◆ momentum()

SVector3 mkfit::TrackBase::momentum ( ) const
inline

Definition at line 158 of file Track.h.

References mkfit::TrackState::parameters, and state_.

TrackState state_
Definition: Track.h:345
ROOT::Math::SVector< float, 3 > SVector3
Definition: MatrixSTypes.h:14
SVector6 parameters
Definition: Track.h:62

◆ momEta()

float mkfit::TrackBase::momEta ( ) const
inline

◆ momPhi()

float mkfit::TrackBase::momPhi ( ) const
inline

◆ p()

float mkfit::TrackBase::p ( ) const
inline

◆ parameters()

const SVector6& mkfit::TrackBase::parameters ( void  ) const
inline

◆ parameters_nc()

SVector6& mkfit::TrackBase::parameters_nc ( )
inline

Definition at line 153 of file Track.h.

References mkfit::TrackState::parameters, and state_.

Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().

153 { return state_.parameters; }
TrackState state_
Definition: Track.h:345
SVector6 parameters
Definition: Track.h:62

◆ posArray()

const float* mkfit::TrackBase::posArray ( ) const
inline

Definition at line 149 of file Track.h.

References mkfit::TrackState::parameters, and state_.

149 { return state_.parameters.Array(); }
TrackState state_
Definition: Track.h:345
SVector6 parameters
Definition: Track.h:62

◆ posEta()

float mkfit::TrackBase::posEta ( ) const
inline

Definition at line 166 of file Track.h.

References mkfit::getEta(), mkfit::TrackState::parameters, and state_.

Referenced by mkfit::MkFinder::bkFitFitTracks().

166 { return getEta(state_.parameters[0], state_.parameters[1], state_.parameters[2]); }
TrackState state_
Definition: Track.h:345
float getEta(float r, float z)
Definition: Hit.h:38
SVector6 parameters
Definition: Track.h:62

◆ position()

SVector3 mkfit::TrackBase::position ( ) const
inline

Definition at line 157 of file Track.h.

References mkfit::TrackState::parameters, and state_.

TrackState state_
Definition: Track.h:345
ROOT::Math::SVector< float, 3 > SVector3
Definition: MatrixSTypes.h:14
SVector6 parameters
Definition: Track.h:62

◆ posPhi()

float mkfit::TrackBase::posPhi ( ) const
inline

Definition at line 165 of file Track.h.

References mkfit::getPhi(), mkfit::TrackState::parameters, and state_.

Referenced by mkfit::MkFinder::bkFitFitTracks().

165 { return getPhi(state_.parameters[0], state_.parameters[1]); }
TrackState state_
Definition: Track.h:345
SVector6 parameters
Definition: Track.h:62
float getPhi(float x, float y)
Definition: Hit.h:34

◆ posR()

float mkfit::TrackBase::posR ( ) const
inline

Definition at line 163 of file Track.h.

References mkfit::getHypot(), mkfit::TrackState::parameters, and state_.

Referenced by mkfit::MkFinder::selectHitIndices().

163 { return getHypot(state_.parameters[0], state_.parameters[1]); }
TrackState state_
Definition: Track.h:345
float getHypot(float x, float y)
Definition: Hit.h:47
SVector6 parameters
Definition: Track.h:62

◆ posRsq()

float mkfit::TrackBase::posRsq ( ) const
inline

Definition at line 164 of file Track.h.

References mkfit::TrackState::posRsq(), and state_.

164 { return state_.posRsq(); }
TrackState state_
Definition: Track.h:345
float posRsq() const
Definition: Track.h:72

◆ prodType()

ProdType mkfit::TrackBase::prodType ( ) const
inline

◆ pT()

float mkfit::TrackBase::pT ( ) const
inline

◆ px()

float mkfit::TrackBase::px ( ) const
inline

Definition at line 168 of file Track.h.

References mkfit::TrackState::px(), and state_.

Referenced by d0BeamSpot(), mkfit::Track::maxReachRadius(), mkfit::Track::rAtZ(), and mkfit::Track::zAtR().

168 { return state_.px(); }
TrackState state_
Definition: Track.h:345
float px() const
Definition: Track.h:103

◆ py()

float mkfit::TrackBase::py ( ) const
inline

Definition at line 169 of file Track.h.

References mkfit::TrackState::py(), and state_.

Referenced by d0BeamSpot(), mkfit::Track::maxReachRadius(), mkfit::Track::rAtZ(), and mkfit::Track::zAtR().

169 { return state_.py(); }
TrackState state_
Definition: Track.h:345
float py() const
Definition: Track.h:104

◆ pz()

float mkfit::TrackBase::pz ( ) const
inline

Definition at line 170 of file Track.h.

References mkfit::TrackState::pz(), and state_.

Referenced by mkfit::Track::zAtR().

170 { return state_.pz(); }
TrackState state_
Definition: Track.h:345
float pz() const
Definition: Track.h:105

◆ score()

float mkfit::TrackBase::score ( ) const
inline

◆ setAlgoint()

void mkfit::TrackBase::setAlgoint ( int  algo)
inline

Definition at line 335 of file Track.h.

References mkfit::TrackBase::Status::algorithm, and status_.

335 { status_.algorithm = algo; }
unsigned int algorithm
Definition: Track.h:225
Status status_
Definition: Track.h:350

◆ setAlgorithm()

void mkfit::TrackBase::setAlgorithm ( TrackAlgorithm  algo)
inline

Definition at line 334 of file Track.h.

References mkfit::TrackBase::Status::algorithm, and status_.

334 { status_.algorithm = static_cast<unsigned int>(algo); }
unsigned int algorithm
Definition: Track.h:225
Status status_
Definition: Track.h:350

◆ setCharge()

void mkfit::TrackBase::setCharge ( int  chg)
inline

Definition at line 190 of file Track.h.

References mkfit::TrackState::charge, chg, and state_.

Referenced by mkfit::MkFinder::copy_out(), and mkfit::MkFinder::findCandidates().

190 { state_.charge = chg; }
TrackState state_
Definition: Track.h:345
const float chg[109]
Definition: CoreSimTrack.cc:5
short charge
Definition: Track.h:64

◆ setChi2()

void mkfit::TrackBase::setChi2 ( float  chi2)
inline

Definition at line 191 of file Track.h.

References chi2(), and chi2_.

Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().

191 { chi2_ = chi2; }
float chi2_
Definition: Track.h:346
float chi2() const
Definition: Track.h:186

◆ setDuplicateValue()

void mkfit::TrackBase::setDuplicateValue ( bool  d)
inline

Definition at line 260 of file Track.h.

References ztail::d, mkfit::TrackBase::Status::duplicate, and status_.

260 { status_.duplicate = d; }
Status status_
Definition: Track.h:350
d
Definition: ztail.py:151

◆ setEtaRegion()

void mkfit::TrackBase::setEtaRegion ( int  r)
inline

Definition at line 269 of file Track.h.

References mkfit::TrackBase::Status::eta_region, and status_.

269 { status_.eta_region = r; }
Status status_
Definition: Track.h:350
unsigned int eta_region
Definition: Track.h:234

◆ setLabel()

void mkfit::TrackBase::setLabel ( int  lbl)
inline

Definition at line 193 of file Track.h.

References label_.

Referenced by mkfit::MkFinder::copy_out().

193 { label_ = lbl; }

◆ setNotFindable()

void mkfit::TrackBase::setNotFindable ( )
inline

Definition at line 258 of file Track.h.

References mkfit::TrackBase::Status::not_findable, and status_.

258 { status_.not_findable = true; }
Status status_
Definition: Track.h:350

◆ setNSeedHits()

void mkfit::TrackBase::setNSeedHits ( int  n)
inline

◆ setProdType()

void mkfit::TrackBase::setProdType ( ProdType  ptyp)
inline

Definition at line 264 of file Track.h.

References mkfit::TrackBase::Status::prod_type, and status_.

264 { status_.prod_type = static_cast<unsigned int>(ptyp); }
unsigned int prod_type
Definition: Track.h:217
Status status_
Definition: Track.h:350

◆ setScore()

void mkfit::TrackBase::setScore ( float  s)
inline

◆ setState()

void mkfit::TrackBase::setState ( const TrackState newState)
inline

Definition at line 144 of file Track.h.

References state_.

144 { state_ = newState; }
TrackState state_
Definition: Track.h:345

◆ setStatus()

void mkfit::TrackBase::setStatus ( Status  s)
inline

Definition at line 254 of file Track.h.

References alignCSCRings::s, and status_.

Referenced by mkfit::MkFinder::copy_out().

254 { status_ = s; }
Status status_
Definition: Track.h:350

◆ state()

const TrackState& mkfit::TrackBase::state ( ) const
inline

Definition at line 143 of file Track.h.

References state_.

Referenced by mkfit::print().

143 { return state_; }
TrackState state_
Definition: Track.h:345

◆ state_nc()

TrackState& mkfit::TrackBase::state_nc ( )
inline

Definition at line 155 of file Track.h.

References state_.

155 { return state_; }
TrackState state_
Definition: Track.h:345

◆ theta()

float mkfit::TrackBase::theta ( void  ) const
inline

◆ x()

float mkfit::TrackBase::x ( ) const
inline

◆ y()

float mkfit::TrackBase::y ( ) const
inline

◆ z()

float mkfit::TrackBase::z ( ) const
inline

Member Data Documentation

◆ chi2_

float mkfit::TrackBase::chi2_ = 0.
protected

Definition at line 346 of file Track.h.

Referenced by mkfit::TrackCand::addHitIdx(), mkfit::Track::addHitIdx(), chi2(), and setChi2().

◆ label_

int mkfit::TrackBase::label_ = -1
protected

◆ lastHitIdx_

short int mkfit::TrackBase::lastHitIdx_ = -1
protected

◆ nFoundHits_

short int mkfit::TrackBase::nFoundHits_ = 0
protected

◆ score_

float mkfit::TrackBase::score_ = 0.
protected

Definition at line 347 of file Track.h.

Referenced by mkfit::TrackCand::resetShortTrack(), score(), and setScore().

◆ state_

TrackState mkfit::TrackBase::state_
protected

◆ status_

Status mkfit::TrackBase::status_
protected