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 132 of file Track.h.

Member Enumeration Documentation

◆ ProdType

Enumerator
NotSet 
Signal 
InTimePU 
OutOfTimePU 

Definition at line 260 of file Track.h.

260 { 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 275 of file Track.h.

275  {
276  undefAlgorithm = 0,
277  ctf = 1,
278  duplicateMerge = 2,
279  cosmics = 3,
280  initialStep = 4,
281  lowPtTripletStep = 5,
282  pixelPairStep = 6,
284  mixedTripletStep = 8,
285  pixelLessStep = 9,
286  tobTecStep = 10,
287  jetCoreRegionalStep = 11,
288  conversionStep = 12,
289  muonSeededStepInOut = 13,
290  muonSeededStepOutIn = 14,
291  outInEcalSeededConv = 15,
292  inOutEcalSeededConv = 16,
293  nuclInter = 17,
294  standAloneMuon = 18,
295  globalMuon = 19,
297  cosmicGlobalMuon = 21,
298  // Phase1
299  highPtTripletStep = 22,
300  lowPtQuadStep = 23,
301  detachedQuadStep = 24,
302  reservedForUpgrades1 = 25,
304  bTagGhostTracks = 27,
305  beamhalo = 28,
306  gsf = 29,
307  // HLT algo name
308  hltPixel = 30,
309  // steps used by PF
310  hltIter0 = 31,
311  hltIter1 = 32,
312  hltIter2 = 33,
313  hltIter3 = 34,
314  hltIter4 = 35,
315  // steps used by all other objects @HLT
316  hltIterX = 36,
317  // steps used by HI muon regional iterative tracking
324  hiRegitMuTobTecStep = 43,
327  algoSize = 46
328  };
hiRegitMuMuonSeededStepInOut
Definition: ntupleEnum.py:67
hiRegitMuDetachedTripletStep
Definition: ntupleEnum.py:63
hiRegitMuPixelPairStep
Definition: ntupleEnum.py:62
cosmicStandAloneMuon
Definition: ntupleEnum.py:41
reservedForUpgrades2
Definition: ntupleEnum.py:45
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 134 of file Track.h.

134 {}

◆ TrackBase() [2/3]

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

Definition at line 136 of file Track.h.

136 : state_(state), chi2_(chi2), label_(label) {}
TrackState state_
Definition: Track.h:343
float chi2_
Definition: Track.h:344
float chi2() const
Definition: Track.h:184
int label() const
Definition: Track.h:186
const TrackState & state() const
Definition: Track.h:141

◆ TrackBase() [3/3]

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

Definition at line 138 of file Track.h.

int charge() const
Definition: Track.h:183
TrackState state_
Definition: Track.h:343
float chi2_
Definition: Track.h:344
float chi2() const
Definition: Track.h:184
SVector3 momentum() const
Definition: Track.h:156
SVector3 position() const
Definition: Track.h:155
Definition: errors.py:1

Member Function Documentation

◆ algoint()

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

Definition at line 330 of file Track.h.

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

330 { return status_.algorithm; }
unsigned int algorithm
Definition: Track.h:223
Status status_
Definition: Track.h:348

◆ algoint_to_cstr()

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

Definition at line 203 of file Track.cc.

References algoSize, and names.

Referenced by mkfit::ConfigJson::save_Iterations().

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

◆ algorithm()

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

Definition at line 331 of file Track.h.

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

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

331 { return TrackAlgorithm(status_.algorithm); }
unsigned int algorithm
Definition: Track.h:223
Status status_
Definition: Track.h:348
TrackAlgorithm
track algorithm; copy from TrackBase.h to keep in standalone builds
Definition: Track.h:275

◆ 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 190 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().

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

◆ emomEta()

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

Definition at line 179 of file Track.h.

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

179 { return state_.emomEta(); }
TrackState state_
Definition: Track.h:343
float emomEta() const
Definition: Track.h:111

◆ emomPhi()

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

Definition at line 178 of file Track.h.

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

178 { return state_.emomPhi(); }
TrackState state_
Definition: Track.h:343
float emomPhi() const
Definition: Track.h:108

◆ epT()

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

Definition at line 177 of file Track.h.

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

177 { return state_.epT(); }
float epT() const
Definition: Track.h:110
TrackState state_
Definition: Track.h:343

◆ errArray()

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

Definition at line 148 of file Track.h.

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

148 { return state_.errors.Array(); }
TrackState state_
Definition: Track.h:343
SMatrixSym66 errors
Definition: Track.h:61

◆ errors()

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

◆ errors_nc()

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

Definition at line 152 of file Track.h.

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

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

152 { return state_.errors; }
TrackState state_
Definition: Track.h:343
SMatrixSym66 errors
Definition: Track.h:61

◆ getDuplicateValue()

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

◆ getEtaRegion()

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

Definition at line 266 of file Track.h.

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

266 { return status_.eta_region; }
Status status_
Definition: Track.h:348
unsigned int eta_region
Definition: Track.h:232

◆ getNSeedHits()

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

◆ getStatus()

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

Definition at line 251 of file Track.h.

References status_.

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

251 { return status_; }
Status status_
Definition: Track.h:348

◆ hasNanNSillyValues()

bool mkfit::TrackBase::hasNanNSillyValues ( ) const

Definition at line 176 of file Track.cc.

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

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

◆ hasSillyValues()

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

Definition at line 154 of file Track.cc.

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

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

◆ invpT()

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

◆ isFindable()

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

◆ isNotFindable()

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

Definition at line 255 of file Track.h.

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

255 { return status_.not_findable; }
Status status_
Definition: Track.h:348

◆ label()

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

◆ momentum()

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

Definition at line 156 of file Track.h.

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

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

◆ 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 151 of file Track.h.

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

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

151 { return state_.parameters; }
TrackState state_
Definition: Track.h:343
SVector6 parameters
Definition: Track.h:60

◆ posArray()

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

Definition at line 147 of file Track.h.

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

147 { return state_.parameters.Array(); }
TrackState state_
Definition: Track.h:343
SVector6 parameters
Definition: Track.h:60

◆ posEta()

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

Definition at line 164 of file Track.h.

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

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

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

◆ position()

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

Definition at line 155 of file Track.h.

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

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

◆ posPhi()

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

Definition at line 163 of file Track.h.

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

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

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

◆ posR()

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

Definition at line 161 of file Track.h.

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

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

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

◆ posRsq()

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

Definition at line 162 of file Track.h.

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

162 { return state_.posRsq(); }
TrackState state_
Definition: Track.h:343
float posRsq() const
Definition: Track.h:70

◆ prodType()

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

◆ pT()

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

◆ px()

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

Definition at line 166 of file Track.h.

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

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

166 { return state_.px(); }
TrackState state_
Definition: Track.h:343
float px() const
Definition: Track.h:101

◆ py()

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

Definition at line 167 of file Track.h.

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

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

167 { return state_.py(); }
TrackState state_
Definition: Track.h:343
float py() const
Definition: Track.h:102

◆ pz()

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

Definition at line 168 of file Track.h.

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

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

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

◆ score()

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

◆ setAlgoint()

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

Definition at line 333 of file Track.h.

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

333 { status_.algorithm = algo; }
unsigned int algorithm
Definition: Track.h:223
Status status_
Definition: Track.h:348

◆ setAlgorithm()

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

Definition at line 332 of file Track.h.

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

332 { status_.algorithm = static_cast<unsigned int>(algo); }
unsigned int algorithm
Definition: Track.h:223
Status status_
Definition: Track.h:348

◆ setCharge()

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

Definition at line 188 of file Track.h.

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

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

188 { state_.charge = chg; }
TrackState state_
Definition: Track.h:343
const float chg[109]
Definition: CoreSimTrack.cc:5
short charge
Definition: Track.h:62

◆ setChi2()

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

Definition at line 189 of file Track.h.

References chi2(), and chi2_.

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

189 { chi2_ = chi2; }
float chi2_
Definition: Track.h:344
float chi2() const
Definition: Track.h:184

◆ setDuplicateValue()

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

Definition at line 258 of file Track.h.

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

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

◆ setEtaRegion()

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

Definition at line 267 of file Track.h.

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

267 { status_.eta_region = r; }
Status status_
Definition: Track.h:348
unsigned int eta_region
Definition: Track.h:232

◆ setLabel()

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

Definition at line 191 of file Track.h.

References label_.

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

191 { label_ = lbl; }

◆ setNotFindable()

void mkfit::TrackBase::setNotFindable ( )
inline

Definition at line 256 of file Track.h.

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

256 { status_.not_findable = true; }
Status status_
Definition: Track.h:348

◆ setNSeedHits()

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

◆ setProdType()

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

Definition at line 262 of file Track.h.

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

262 { status_.prod_type = static_cast<unsigned int>(ptyp); }
unsigned int prod_type
Definition: Track.h:215
Status status_
Definition: Track.h:348

◆ setScore()

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

◆ setState()

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

Definition at line 142 of file Track.h.

References state_.

142 { state_ = newState; }
TrackState state_
Definition: Track.h:343

◆ setStatus()

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

Definition at line 252 of file Track.h.

References alignCSCRings::s, and status_.

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

252 { status_ = s; }
Status status_
Definition: Track.h:348

◆ state()

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

Definition at line 141 of file Track.h.

References state_.

Referenced by mkfit::print().

141 { return state_; }
TrackState state_
Definition: Track.h:343

◆ state_nc()

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

Definition at line 153 of file Track.h.

References state_.

153 { return state_; }
TrackState state_
Definition: Track.h:343

◆ 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 344 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 345 of file Track.h.

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

◆ state_

TrackState mkfit::TrackBase::state_
protected

◆ status_

Status mkfit::TrackBase::status_
protected