CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
reco::TrackBase Class Reference

#include <DataFormats/TrackReco/interface/TrackBase.h>

Inheritance diagram for reco::TrackBase:
reco::Track reco::CandidatePtrTransientTrack reco::GsfTrack reco::TrackTransientTrack reco::GsfTransientTrack

Public Types

enum  { dimension = 5 }
 parameter dimension More...
 
enum  { covarianceSize = dimension * (dimension + 1) / 2 }
 error matrix size More...
 
enum  {
  i_qoverp = 0, i_lambda, i_phi, i_dxy,
  i_dsz
}
 enumerator provided indices to the five parameters More...
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 5 parameter covariance matrix More...
 
typedef unsigned int index
 index type More...
 
typedef math::Vector
< dimension >::type 
ParameterVector
 parameter vector More...
 
typedef math::XYZPoint Point
 point in the space More...
 
enum  TrackAlgorithm {
  undefAlgorithm = 0, ctf = 1, rs = 2, cosmics = 3,
  initialStep = 4, lowPtTripletStep = 5, pixelPairStep = 6, detachedTripletStep = 7,
  mixedTripletStep = 8, pixelLessStep = 9, tobTecStep = 10, jetCoreRegionalStep = 11,
  conversionStep = 12, muonSeededStepInOut = 13, muonSeededStepOutIn = 14, outInEcalSeededConv = 15,
  inOutEcalSeededConv = 16, nuclInter = 17, standAloneMuon = 18, globalMuon = 19,
  cosmicStandAloneMuon = 20, cosmicGlobalMuon = 21, iter1LargeD0 = 22, iter2LargeD0 = 23,
  iter3LargeD0 = 24, iter4LargeD0 = 25, iter5LargeD0 = 26, bTagGhostTracks = 27,
  beamhalo = 28, gsf = 29, hltPixel = 30, hltIter0 = 31,
  hltIter1 = 32, hltIter2 = 33, hltIter3 = 34, hltIter4 = 35,
  hltIterX = 36, algoSize = 37
}
 track algorithm More...
 
enum  TrackQuality {
  undefQuality = -1, loose = 0, tight = 1, highPurity = 2,
  confirmed = 3, goodIterative = 4, looseSetWithPV = 5, highPuritySetWithPV = 6,
  qualitySize = 7
}
 track quality More...
 
typedef math::XYZVector Vector
 spatial vector More...
 

Public Member Functions

TrackAlgorithm algo () const
 
std::string algoName () const
 
bool appendHitPattern (const TrackingRecHit &hit)
 append a single hit to the HitPattern More...
 
bool appendHitPattern (const DetId &id, TrackingRecHit::Type hitType)
 
template<typename C >
bool appendHits (const C &c)
 append hit patterns from vector of hit references More...
 
template<typename I >
bool appendHits (const I &begin, const I &end)
 
int charge () const
 track electric charge More...
 
double chi2 () const
 chi-squared of the fit More...
 
CovarianceMatrix covariance () const
 return track covariance matrix More...
 
double covariance (int i, int j) const
 (i,j)-th element of covariance matrix (i, j = 0, ... 4) More...
 
double d0 () const
 dxy parameter in perigee convention (d0 = -dxy) More...
 
double d0Error () const
 error on d0 More...
 
double dsz () const
 dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0,0,0): see parametrization definition above for details) More...
 
double dsz (const Point &myBeamSpot) const
 dsz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the distance in the S-Z plane to the beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dszError () const
 error on dsz More...
 
double dxy () const
 dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close to (0,0,0): see parametrization definition above for details). See also function dxy(myBeamSpot). More...
 
double dxy (const Point &myBeamSpot) const
 dxy parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dxy (const BeamSpot &theBeamSpot) const
 dxy parameter with respect to the beamSpot taking into account the beamspot slopes (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dxyError () const
 error on dxy More...
 
double dz () const
 dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to (0,0,0). See also function dz(myBeamSpot) More...
 
double dz (const Point &myBeamSpot) const
 dz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the track z0, if the beamSpot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dzError () const
 error on dz More...
 
double error (int i) const
 error on specified element More...
 
double eta () const
 pseudorapidity of momentum vector More...
 
double etaError () const
 error on eta More...
 
CovarianceMatrixfill (CovarianceMatrix &v) const
 fill SMatrix More...
 
const HitPatternhitPattern () const
 Access the hit pattern, indicating in which Tracker layers the track has hits. More...
 
bool isLooper () const
 
double lambda () const
 Lambda angle. More...
 
double lambdaError () const
 error on lambda More...
 
const Vectormomentum () const
 track momentum vector More...
 
double ndof () const
 number of degrees of freedom of the fit More...
 
signed char nLoops () const
 
double normalizedChi2 () const
 chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero) More...
 
unsigned short numberOfLostHits () const
 number of cases where track crossed a layer without getting a hit. More...
 
unsigned short numberOfValidHits () const
 number of valid hits found More...
 
double p () const
 momentum vector magnitude More...
 
double parameter (int i) const
 i-th parameter ( i = 0, ... 4 ) More...
 
ParameterVector parameters () const
 Track parameters with one-to-one correspondence to the covariance matrix. More...
 
double phi () const
 azimuthal angle of momentum vector More...
 
double phiError () const
 error on phi More...
 
double pt () const
 track transverse momentum More...
 
double ptError () const
 error on Pt (set to 1000 TeV if charge==0 for safety) More...
 
double px () const
 x coordinate of momentum vector More...
 
double py () const
 y coordinate of momentum vector More...
 
double pz () const
 z coordinate of momentum vector More...
 
double qoverp () const
 q / p More...
 
double qoverpError () const
 error on signed transverse curvature More...
 
bool quality (const TrackQuality) const
 Track quality. More...
 
int qualityMask () const
 
const PointreferencePoint () const
 Reference point on the track. More...
 
void resetHitPattern ()
 Sets HitPattern as empty. More...
 
void setAlgorithm (const TrackAlgorithm a, bool set=true)
 Track algorithm. More...
 
void setNLoops (signed char value)
 
void setQuality (const TrackQuality, bool set=true)
 
void setQualityMask (int qualMask)
 
double theta () const
 polar angle More...
 
double thetaError () const
 error on theta More...
 
 TrackBase ()
 default constructor More...
 
 TrackBase (double chi2, double ndof, const Point &vertex, const Vector &momentum, int charge, const CovarianceMatrix &cov, TrackAlgorithm=undefAlgorithm, TrackQuality quality=undefQuality, signed char nloops=0)
 constructor from fit parameters and error matrix More...
 
double validFraction () const
 fraction of valid hits on the track More...
 
const Pointvertex () const
 reference point on the track. This method is DEPRECATED, please use referencePoint() instead More...
 
double vx () const
 x coordinate of the reference point on track More...
 
double vy () const
 y coordinate of the reference point on track More...
 
double vz () const
 z coordinate of the reference point on track More...
 
virtual ~TrackBase ()
 virtual destructor More...
 

Static Public Member Functions

static TrackAlgorithm algoByName (const std::string &name)
 
static std::string algoName (TrackAlgorithm)
 
static index covIndex (index i, index j)
 covariance matrix index in array More...
 
static TrackQuality qualityByName (const std::string &name)
 
static std::string qualityName (TrackQuality)
 

Static Public Attributes

static const std::string algoNames []
 
static const std::string qualityNames []
 

Private Attributes

uint8_t algorithm_
 track algorithm More...
 
char charge_
 electric charge More...
 
float chi2_
 chi-squared More...
 
float covariance_ [covarianceSize]
 perigee 5x5 covariance matrix More...
 
HitPattern hitPattern_
 hit pattern More...
 
Vector momentum_
 momentum vector at innermost point More...
 
float ndof_
 number of degrees of freedom More...
 
signed char nLoops_
 number of loops made during the building of the trajectory of a looper particle More...
 
uint8_t quality_
 track quality More...
 
Point vertex_
 innermost (reference) point on track More...
 

Detailed Description

Common base class to all track types, including Muon fits. Internally, the following information is stored:

A reference position on the track: (vx,vy,vz)

Momentum at this given reference point on track: (px,py,pz)

5D curvilinear covariance matrix from the track fit

Charge

Chi-square and number of degrees of freedom

Summary information of the hit pattern

For tracks reconstructed in the CMS Tracker, the reference position is the point of closest approach to the centre of CMS. For muons, this is not necessarily true.

Parameters associated to the 5D curvilinear covariance matrix:
(qoverp, lambda, phi, dxy, dsz)
defined as:

qoverp = q / abs(p) = signed inverse of momentum [1/GeV]

lambda = pi/2 - polar angle at the given point

phi = azimuth angle at the given point

dxy = -vx*sin(phi) + vy*cos(phi) [cm]

dsz = vz*cos(lambda) - (vx*cos(phi)+vy*sin(phi))*sin(lambda) [cm]

Geometrically, dxy is the signed distance in the XY plane between the the straight line passing through (vx,vy) with azimuthal angle phi and the point (0,0).
The dsz parameter is the signed distance in the SZ plane between the the straight line passing through (vx,vy,vz) with angles (phi, lambda) and the point (s=0,z=0). The S axis is defined by the projection of the straight line onto the XY plane. The convention is to assign the S coordinate for (vx,vy) as the value vx*cos(phi)+vy*sin(phi). This value is zero when (vx,vy) is the point of minimum transverse distance to (0,0).

Note that dxy and dsz provide sensible estimates of the distance from the true particle trajectory to (0,0,0) ONLY in two cases:

When (vx,vy,vz) already correspond to the point of minimum transverse distance to (0,0,0) or is close to it (so that the differences between considering the exact trajectory or a straight line in this range are negligible). This is usually true for Tracker tracks.

When the track has infinite or extremely high momentum

More details about this parametrization are provided in the following document:
A. Strandlie, W. Wittek, "Propagation of Covariance Matrices...", CMS Note 2006/001

Author
Thomas Speer, Luca Lista, Pascal Vanlaer, Juan Alcaraz

Definition at line 62 of file TrackBase.h.

Member Typedef Documentation

5 parameter covariance matrix

Definition at line 76 of file TrackBase.h.

typedef unsigned int reco::TrackBase::index

index type

Definition at line 94 of file TrackBase.h.

parameter vector

Definition at line 73 of file TrackBase.h.

point in the space

Definition at line 82 of file TrackBase.h.

spatial vector

Definition at line 79 of file TrackBase.h.

Member Enumeration Documentation

anonymous enum

parameter dimension

Enumerator
dimension 

Definition at line 67 of file TrackBase.h.

anonymous enum

error matrix size

Enumerator
covarianceSize 

Definition at line 70 of file TrackBase.h.

anonymous enum

enumerator provided indices to the five parameters

Enumerator
i_qoverp 
i_lambda 
i_phi 
i_dxy 
i_dsz 

Definition at line 85 of file TrackBase.h.

track algorithm

Enumerator
undefAlgorithm 
ctf 
rs 
cosmics 
initialStep 
lowPtTripletStep 
pixelPairStep 
detachedTripletStep 
mixedTripletStep 
pixelLessStep 
tobTecStep 
jetCoreRegionalStep 
conversionStep 
muonSeededStepInOut 
muonSeededStepOutIn 
outInEcalSeededConv 
inOutEcalSeededConv 
nuclInter 
standAloneMuon 
globalMuon 
cosmicStandAloneMuon 
cosmicGlobalMuon 
iter1LargeD0 
iter2LargeD0 
iter3LargeD0 
iter4LargeD0 
iter5LargeD0 
bTagGhostTracks 
beamhalo 
gsf 
hltPixel 
hltIter0 
hltIter1 
hltIter2 
hltIter3 
hltIter4 
hltIterX 
algoSize 

Definition at line 97 of file TrackBase.h.

97  {
98  undefAlgorithm = 0, ctf = 1, rs = 2, cosmics = 3,
99  initialStep = 4,
100  lowPtTripletStep = 5,
101  pixelPairStep = 6,
103  mixedTripletStep = 8,
104  pixelLessStep = 9,
105  tobTecStep = 10,
106  jetCoreRegionalStep = 11,
107  conversionStep = 12,
108  muonSeededStepInOut = 13,
109  muonSeededStepOutIn = 14,
111  nuclInter = 17,
113  iter1LargeD0 = 22, iter2LargeD0 = 23, iter3LargeD0 = 24, iter4LargeD0 = 25, iter5LargeD0 = 26,
114  bTagGhostTracks = 27,
115  beamhalo = 28,
116  gsf = 29,
117  // HLT algo name
118  hltPixel = 30,
119  // steps used by PF
120  hltIter0 = 31,
121  hltIter1 = 32,
122  hltIter2 = 33,
123  hltIter3 = 34,
124  hltIter4 = 35,
125  // steps used by all other objects @HLT
126  hltIterX = 36,
127  algoSize = 37
128  };

track quality

Enumerator
undefQuality 
loose 
tight 
highPurity 
confirmed 
goodIterative 
looseSetWithPV 
highPuritySetWithPV 
qualitySize 

Definition at line 133 of file TrackBase.h.

Constructor & Destructor Documentation

TrackBase::TrackBase ( )

default constructor

Definition at line 59 of file TrackBase.cc.

References covariance_, dimension, i, customizeTrackingMonitorSeedNumber::idx, and j.

59  :
60  chi2_(0),
61  vertex_(0, 0, 0),
62  momentum_(0, 0, 0),
63  ndof_(0),
64  charge_(0),
66  quality_(0),
67  nLoops_(0)
68 {
69  index idx = 0;
70  for (index i = 0; i < dimension; ++i) {
71  for (index j = 0; j <= i; ++j) {
72  covariance_[idx++] = 0;
73  }
74  }
75 }
float chi2_
chi-squared
Definition: TrackBase.h:359
int i
Definition: DBlmapReader.cc:9
unsigned int index
index type
Definition: TrackBase.h:94
uint8_t quality_
track quality
Definition: TrackBase.h:377
char charge_
electric charge
Definition: TrackBase.h:371
Point vertex_
innermost (reference) point on track
Definition: TrackBase.h:362
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:380
int j
Definition: DBlmapReader.cc:9
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
float ndof_
number of degrees of freedom
Definition: TrackBase.h:368
float covariance_[covarianceSize]
perigee 5x5 covariance matrix
Definition: TrackBase.h:356
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
uint8_t algorithm_
track algorithm
Definition: TrackBase.h:374
TrackBase::TrackBase ( double  chi2,
double  ndof,
const Point vertex,
const Vector momentum,
int  charge,
const CovarianceMatrix cov,
TrackAlgorithm  algorithm = undefAlgorithm,
TrackQuality  quality = undefQuality,
signed char  nloops = 0 
)

constructor from fit parameters and error matrix

Definition at line 77 of file TrackBase.cc.

References covariance_, dimension, i, customizeTrackingMonitorSeedNumber::idx, j, and setQuality().

79  :
80  chi2_(chi2),
81  vertex_(vertex),
82  momentum_(momentum),
83  ndof_(ndof),
84  charge_(charge),
86  quality_(0),
87  nLoops_(nloops)
88 {
89  index idx = 0;
90  for (index i = 0; i < dimension; ++i) {
91  for (index j = 0; j <= i; ++j) {
92  covariance_[idx++] = cov(i, j);
93  }
94  }
95  setQuality(quality);
96 }
float chi2_
chi-squared
Definition: TrackBase.h:359
int i
Definition: DBlmapReader.cc:9
unsigned int index
index type
Definition: TrackBase.h:94
uint8_t quality_
track quality
Definition: TrackBase.h:377
char charge_
electric charge
Definition: TrackBase.h:371
Point vertex_
innermost (reference) point on track
Definition: TrackBase.h:362
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:380
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:735
void setQuality(const TrackQuality, bool set=true)
Definition: TrackBase.h:565
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:597
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:603
int j
Definition: DBlmapReader.cc:9
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
float ndof_
number of degrees of freedom
Definition: TrackBase.h:368
float covariance_[covarianceSize]
perigee 5x5 covariance matrix
Definition: TrackBase.h:356
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
int charge() const
track electric charge
Definition: TrackBase.h:615
uint8_t algorithm_
track algorithm
Definition: TrackBase.h:374
TrackBase::~TrackBase ( )
virtual

virtual destructor

Definition at line 98 of file TrackBase.cc.

99 {
100  ;
101 }

Member Function Documentation

TrackBase::TrackAlgorithm reco::TrackBase::algo ( ) const
inline
TrackBase::TrackAlgorithm TrackBase::algoByName ( const std::string &  name)
static

Definition at line 120 of file TrackBase.cc.

References algoNames, algoSize, spr::find(), findQualityFiles::size, and undefAlgorithm.

Referenced by AlignmentTrackSelector::AlignmentTrackSelector(), BeamFitter::BeamFitter(), QcdUeDQM::QcdUeDQM(), and RecoTrackSelector::RecoTrackSelector().

121 {
123  int index = std::find(algoNames, algoNames + size, name) - algoNames;
124  if (index == size) {
125  return undefAlgorithm; // better this or throw() ?
126  }
127 
128  // cast
129  return TrackAlgorithm(index);
130 }
unsigned int index
index type
Definition: TrackBase.h:94
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
TrackAlgorithm
track algorithm
Definition: TrackBase.h:97
static const std::string algoNames[]
Definition: TrackBase.h:130
tuple size
Write out results.
std::string reco::TrackBase::algoName ( ) const
inline

Definition at line 428 of file TrackBase.h.

References algorithm_, beamhalo, bTagGhostTracks, conversionStep, cosmicGlobalMuon, cosmics, cosmicStandAloneMuon, ctf, detachedTripletStep, globalMuon, gsf, hltIter0, hltIter1, hltIter2, hltIter3, hltIter4, hltIterX, hltPixel, initialStep, inOutEcalSeededConv, iter1LargeD0, iter2LargeD0, iter3LargeD0, iter4LargeD0, iter5LargeD0, jetCoreRegionalStep, lowPtTripletStep, mixedTripletStep, muonSeededStepInOut, muonSeededStepOutIn, nuclInter, outInEcalSeededConv, pixelLessStep, pixelPairStep, rs, standAloneMuon, tobTecStep, and undefAlgorithm.

429 {
430  // I'd like to do:
431  // return TrackBase::algoName(algorithm_);
432  // but I cannot define a const static function. Why???
433  switch (algorithm_) {
434  case undefAlgorithm:
435  return "undefAlgorithm";
436  break;
437  case ctf:
438  return "ctf";
439  break;
440  case rs:
441  return "rs";
442  break;
443  case cosmics:
444  return "cosmics";
445  break;
446  case beamhalo:
447  return "beamhalo";
448  break;
449  case initialStep:
450  return "initialStep";
451  break;
452  case lowPtTripletStep:
453  return "lowPtTripletStep";
454  break;
455  case pixelPairStep:
456  return "pixelPairStep";
457  break;
458  case detachedTripletStep:
459  return "detachedTripletStep";
460  break;
461  case mixedTripletStep:
462  return "mixedTripletStep";
463  break;
464  case pixelLessStep:
465  return "pixelLessStep";
466  break;
467  case tobTecStep:
468  return "tobTecStep";
469  break;
470  case jetCoreRegionalStep:
471  return "jetCoreRegionalStep";
472  break;
473  case conversionStep:
474  return "conversionStep";
475  break;
476  case muonSeededStepInOut:
477  return "muonSeededStepInOut";
478  break;
479  case muonSeededStepOutIn:
480  return "muonSeededStepOutIn";
481  break;
482  case outInEcalSeededConv:
483  return "outInEcalSeededConv";
484  break;
485  case inOutEcalSeededConv:
486  return "inOutEcalSeededConv";
487  break;
488  case nuclInter:
489  return "nuclInter";
490  break;
491  case standAloneMuon:
492  return "standAloneMuon";
493  break;
494  case globalMuon:
495  return "globalMuon";
496  break;
498  return "cosmicStandAloneMuon";
499  break;
500  case cosmicGlobalMuon:
501  return "cosmicGlobalMuon";
502  break;
503  case iter1LargeD0:
504  return "iter1LargeD0";
505  break;
506  case iter2LargeD0:
507  return "iter2LargeD0";
508  break;
509  case iter3LargeD0:
510  return "iter3LargeD0";
511  break;
512  case iter4LargeD0:
513  return "iter4LargeD0";
514  break;
515  case iter5LargeD0:
516  return "iter5LargeD0";
517  break;
518  case bTagGhostTracks:
519  return "bTagGhostTracks";
520  break;
521  case gsf:
522  return "gsf";
523  break;
524  case hltPixel :
525  return "hltPixel";
526  break;
527  case hltIter0 :
528  return "hltIter0";
529  break;
530  case hltIter1 :
531  return "hltIter1";
532  break;
533  case hltIter2 :
534  return "hltIter2";
535  break;
536  case hltIter3 :
537  return "hltIter3";
538  break;
539  case hltIter4 :
540  return "hltIter4";
541  break;
542  case hltIterX :
543  return "hltIterX";
544  break;
545  default:
546  return "undefAlgorithm";
547  break;
548  }
549 }
uint8_t algorithm_
track algorithm
Definition: TrackBase.h:374
std::string reco::TrackBase::algoName ( TrackAlgorithm  a)
inlinestatic

Definition at line 588 of file TrackBase.h.

References algoNames, and algoSize.

589 {
590  if (int(a) < int(algoSize) && int(a) > 0) {
591  return algoNames[int(a)];
592  }
593  return "undefAlgorithm";
594 }
static const std::string algoNames[]
Definition: TrackBase.h:130
double a
Definition: hdecay.h:121
bool reco::TrackBase::appendHitPattern ( const TrackingRecHit hit)
inline
bool reco::TrackBase::appendHitPattern ( const DetId id,
TrackingRecHit::Type  hitType 
)
inline

Definition at line 389 of file TrackBase.h.

References reco::HitPattern::appendHit(), and hitPattern_.

390 {
391  return hitPattern_.appendHit(id, hitType);
392 }
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
bool appendHit(const TrackingRecHit &hit)
Definition: HitPattern.cc:168
template<typename C >
bool reco::TrackBase::appendHits ( const C &  c)

append hit patterns from vector of hit references

Definition at line 411 of file TrackBase.h.

Referenced by TrackerSeedValidator::analyze().

412 {
413  return setHitPattern(c.begin(), c.end());
414 }
template<typename I >
bool reco::TrackBase::appendHits ( const I &  begin,
const I &  end 
)

Definition at line 405 of file TrackBase.h.

References reco::HitPattern::appendHits(), and hitPattern_.

406 {
407  return hitPattern_.appendHits(begin, end);
408 }
bool appendHits(const I &begin, const I &end)
Definition: HitPattern.h:446
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
int reco::TrackBase::charge ( ) const
inline

track electric charge

Definition at line 615 of file TrackBase.h.

References charge_.

Referenced by PFTrackTransformer::addPoints(), PFTrackTransformer::addPointsAndBrems(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), ValidationMisalignedTracker::analyze(), EwkMuLumiMonitorDQM::analyze(), TestOutliers::analyze(), CosmicSplitterValidation::analyze(), MuonTrackValidator::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), AlignmentTrackSelector::basicCuts(), FWSecVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::build(), FWVertexProxyBuilder::build(), ConversionProducer::buildCollection(), FWTrackProxyBuilderFullFramework::buildTrack(), reco::CandidatePtrTransientTrack::charge(), reco::TrackTransientTrack::charge(), reco::GsfTransientTrack::charge(), Tau3MuReco::check4MuonTrack(), AlignmentTwoBodyDecayTrackSelector::checkCharge(), converter::StandAloneMuonTrackToCandidate::convert(), converter::TrackToCandidate::convert(), muonisolation::PixelTrackExtractor::directionAtPresetRadius(), AlignmentMonitorGeneric::event(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), CSCEfficiency::filter(), ConversionFinder::getConversionInfo(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), AlCaHOCalibProducer::getFreeTrajectoryState(), VZeroFinder::getGlobalTrajectoryParameters(), PFDisplacedVertexCandidateFinder::getGlobalTrajectoryParameters(), FWPFTrackUtils::getTrack(), ValidHitPairFilter::getTrajectory(), SeedFromProtoTrack::init(), trajectoryStateTransform::initialFreeState(), HLTmumutktkVtxProducer::initialFreeState(), HLTmumutkVtxProducer::initialFreeState(), HLTmmkkFilter::initialFreeState(), HLTmmkFilter::initialFreeState(), trajectoryStateTransform::innerFreeState(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::inspectTrack(), MuonIdProducer::makeMuon(), MuonErrorMatrixAdjuster::makeTrack(), MatcherByPullsAlgorithm::match(), muonisolation::CaloExtractor::MuonAtCaloPosition(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), trajectoryStateTransform::outerFreeState(), fireworks::prepareTrack(), PrintRecoObjects::print(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), AlignmentMonitorMuonVsCurvature::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), ShallowTracksProducer::produce(), QuarkoniaTrackSelector::produce(), PFDisplacedTrackerVertexProducer::produce(), pat::PATLostTracks::produce(), DuplicateTrackMerger::produce(), ConversionSeedFilter::produce(), SiStripElectronAssociator::produce(), DuplicateListMerger::produce(), spr::propagateCosmicCALO(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), TrackExtrapolator::propagateTrackToVolume(), ptError(), qoverp(), TrackClassifier::reconstructionInformation(), PFAlgo::reconstructTrack(), MuonDTLocalMillepedeAlgorithm::run(), FWTrackHitsDetailView::setTextInfo(), FWConvTrackHitsDetailView::setTextInfo(), ElectronMaker::SetVars(), and ConversionProducer::trackD0Cut().

616 {
617  return charge_;
618 }
char charge_
electric charge
Definition: TrackBase.h:371
double reco::TrackBase::chi2 ( void  ) const
inline
TrackBase::CovarianceMatrix reco::TrackBase::covariance ( void  ) const
inline
double reco::TrackBase::covariance ( int  i,
int  j 
) const
inline

(i,j)-th element of covariance matrix (i, j = 0, ... 4)

Definition at line 793 of file TrackBase.h.

References covariance_, and covIndex().

794 {
795  return covariance_[covIndex(i, j)];
796 }
int i
Definition: DBlmapReader.cc:9
static index covIndex(index i, index j)
covariance matrix index in array
Definition: TrackBase.h:416
int j
Definition: DBlmapReader.cc:9
float covariance_[covarianceSize]
perigee 5x5 covariance matrix
Definition: TrackBase.h:356
TrackBase::index reco::TrackBase::covIndex ( index  i,
index  j 
)
inlinestatic

covariance matrix index in array

Definition at line 416 of file TrackBase.h.

References a, b, i, and j.

Referenced by covariance(), reco::GsfTrack::covarianceMode(), error(), and reco::GsfTrack::errorMode().

417 {
418  int a = (i <= j ? i : j);
419  int b = (i <= j ? j : i);
420  return b * (b + 1) / 2 + a;
421 }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
double reco::TrackBase::d0 ( ) const
inline
double reco::TrackBase::d0Error ( ) const
inline
double reco::TrackBase::dsz ( ) const
inline

dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0,0,0): see parametrization definition above for details)

Definition at line 651 of file TrackBase.h.

References p(), pt(), px(), py(), pz(), vx(), vy(), and vz().

Referenced by TestOutliers::analyze(), CosmicSplitterValidation::is_gold_muon(), MatcherByPullsAlgorithm::match(), muonisolation::CaloExtractor::MuonAtCaloPosition(), RecoTrackSelector::operator()(), parameters(), ShallowTracksProducer::produce(), RecoTracktoTP::r_dsz(), TPtoRecoTrack::rA_dsz(), and TPtoRecoTrack::rB_dsz().

652 {
653  return vz() * pt() / p() - (vx() * px() + vy() * py()) / pt() * pz() / p();
654 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:663
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:687
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:717
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dsz ( const Point myBeamSpot) const
inline

dsz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the distance in the S-Z plane to the beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks.

Definition at line 759 of file TrackBase.h.

References p(), pt(), px(), py(), pz(), vx(), vy(), and vz().

760 {
761  return (vz() - myBeamSpot.z()) * pt() / p() - ((vx() - myBeamSpot.x()) * px() + (vy() - myBeamSpot.y()) * py()) / pt() * pz() / p();
762 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:663
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:687
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:717
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dszError ( ) const
inline

error on dsz

Definition at line 856 of file TrackBase.h.

References error(), and i_dsz.

Referenced by ShallowTracksProducer::produce().

857 {
858  return error(i_dsz);
859 }
double error(int i) const
error on specified element
Definition: TrackBase.h:799
double reco::TrackBase::dxy ( ) const
inline

dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close to (0,0,0): see parametrization definition above for details). See also function dxy(myBeamSpot).

Definition at line 639 of file TrackBase.h.

References pt(), px(), py(), vx(), and vy().

Referenced by TrackTypeMonitor::analyze(), PatTrackAnalyzer::analyze(), TrackAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), CheckHitPattern::analyze(), TkConvValidator::analyze(), TestOutliers::analyze(), HLTMuonMatchAndPlot::analyze(), GenPurposeSkimmerData::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), PrimaryVertexAssignment::chargedHadronVertex(), d0(), KalmanAlignmentTrackRefitter::debugTrackData(), muonisolation::PixelTrackExtractor::directionAtPresetRadius(), PFDisplacedVertexHelper::TracksSelector::dxy(), dxy(), AlignmentMonitorMuonSystemMap1D::event(), AlignmentMonitorMuonVsCurvature::event(), AlignmentMonitorSegmentDifferences::event(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), WtoLNuSelector::filter(), reco::tau::RecoTauQualityCuts::filterTrack_(), V0Fitter::fitAll(), PrimaryVertexAnalyzer4PU::getSimEvents(), PFDisplacedVertexCandidateFinder::goodPtResolution(), spr::goodTrack(), HLTMuonTrackMassFilter::hltFilter(), PFDisplacedVertexHelper::isTrackSelected(), MatcherByPullsAlgorithm::match(), muonisolation::CaloExtractor::MuonAtCaloPosition(), HIPixelTrackFilter::operator()(), HIProtoTrackFilter::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTrackSelector::operator()(), parameters(), PrintRecoObjects::print(), ShallowTracksProducer::produce(), reco::CentralityProducer::produce(), TriggerMatcherToHLTDebug::produce(), IPProducer< Container, Base, Helper >::produce(), RecoTracktoTP::r_d02(), RecoTracktoTP::r_dxy(), TPtoRecoTrack::rA_d02(), TPtoRecoTrack::rA_dxy(), TPtoRecoTrack::rB_d02(), TPtoRecoTrack::rB_dxy(), TrackClassifier::reconstructionInformation(), MuonAlignmentFromReference::run(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), CosmicTrackSelector::select(), MultiTrackSelector::select(), HLTMuonMatchAndPlot::selectedMuons(), ElectronMaker::SetVars(), TrackWithVertexSelector::testVertices(), TrackMultiSelector::testVtx(), ConversionProducer::trackD0Cut(), QcdUeDQM::trackSelection(), and reco::tau::qcuts::trkTransverseImpactParameter().

640 {
641  return (-vx() * py() + vy() * px()) / pt();
642 }
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dxy ( const Point myBeamSpot) const
inline

dxy parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks.

Definition at line 743 of file TrackBase.h.

References pt(), px(), py(), vx(), and vy().

744 {
745  return (-(vx() - myBeamSpot.x()) * py() + (vy() - myBeamSpot.y()) * px()) / pt();
746 }
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dxy ( const BeamSpot theBeamSpot) const
inline

dxy parameter with respect to the beamSpot taking into account the beamspot slopes (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks.

Definition at line 751 of file TrackBase.h.

References dxy(), reco::BeamSpot::position(), and vz().

752 {
753  return dxy(theBeamSpot.position(vz()));
754 }
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:717
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:639
double reco::TrackBase::dxyError ( ) const
inline
double reco::TrackBase::dz ( ) const
inline

dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to (0,0,0). See also function dz(myBeamSpot)

Definition at line 657 of file TrackBase.h.

References pt(), px(), py(), pz(), vx(), vy(), and vz().

Referenced by TrackTypeMonitor::analyze(), TrackAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), CheckHitPattern::analyze(), TrackSplittingMonitor::analyze(), TestOutliers::analyze(), HLTMuonMatchAndPlot::analyze(), CosmicSplitterValidation::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), AlignmentTrackSelector::basicCuts(), PrimaryVertexAssignment::chargedHadronVertex(), KalmanAlignmentTrackRefitter::debugTrackData(), AlignmentMonitorGeneric::event(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), TrackTypeMonitor::fillHistograms(), MillePedeMonitor::fillTrack(), TrackerValidationVariables::fillTrackQuantities(), WtoLNuSelector::filter(), PFTauVertexSelector::filter(), reco::tau::RecoTauQualityCuts::filterTrack_(), ConversionFinder::getConversionInfo(), spr::goodTrack(), HLTMuonTrackMassFilter::hltFilter(), muon::isHighPtMuon(), muonisolation::CaloExtractor::MuonAtCaloPosition(), HIPixelTrackFilter::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), JetTracksAssociationDRVertexAssigned::produce(), pat::PATPackedCandidateProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), reco::CentralityProducer::produce(), TriggerMatcherToHLTDebug::produce(), IPProducer< Container, Base, Helper >::produce(), fireworks::pushPixelHits(), RecoTracktoTP::r_dz(), RecoTracktoTP::r_dz2(), TPtoRecoTrack::rA_dz(), TPtoRecoTrack::rA_dz2(), TPtoRecoTrack::rB_dz(), TPtoRecoTrack::rB_dz2(), TrackClassifier::reconstructionInformation(), HIPAlignmentAlgorithm::run(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), CosmicTrackSelector::select(), MultiTrackSelector::select(), HLTMuonMatchAndPlot::selectedMuons(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), ElectronMaker::SetVars(), TrackWithVertexSelector::testTrack(), TrackWithVertexSelector::testVertices(), TrackMultiSelector::testVtx(), QcdUeDQM::trackSelection(), reco::tau::qcuts::trkLongitudinalImpactParameter(), and reco::tau::qcuts::trkLongitudinalImpactParameterWrtTrack().

658 {
659  return vz() - (vx() * px() + vy() * py()) / pt() * (pz() / pt());
660 }
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:687
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:717
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dz ( const Point myBeamSpot) const
inline

dz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the track z0, if the beamSpot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks.

Definition at line 767 of file TrackBase.h.

References pt(), px(), py(), pz(), vx(), vy(), and vz().

768 {
769  return (vz() - myBeamSpot.z()) - ((vx() - myBeamSpot.x()) * px() + (vy() - myBeamSpot.y()) * py()) / pt() * pz() / pt();
770 }
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:675
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:687
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:717
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:711
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:681
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:705
double reco::TrackBase::dzError ( ) const
inline
double reco::TrackBase::error ( int  i) const
inline
double reco::TrackBase::eta ( ) const
inline

pseudorapidity of momentum vector

Definition at line 699 of file TrackBase.h.

References momentum_.

Referenced by Particle.Particle::__str__(), Muon.Muon::absEffAreaIso(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripGainFromCalibTree::algoAnalyze(), TrackTypeMonitor::analyze(), PatTrackAnalyzer::analyze(), TrackAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), ValidationMisalignedTracker::analyze(), CheckHitPattern::analyze(), GlobalMuonMatchAnalyzer::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), GetTrackTrajInfo::analyze(), HcalIsoTrkAnalyzer::analyze(), CosmicSplitterValidation::analyze(), GenPurposeSkimmerData::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), analyzer::SiPixelLorentzAngle::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), reco::tau::RecoTauVertexAssociator::associatedVertex(), CalibrationTrackSelector::basicCuts(), AlignmentTrackSelector::basicCuts(), FWTrackProxyBuilder::build(), pat::CaloIsolationEnergy::calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), spr::chargeIsolationHcal(), KalmanAlignmentTrackRefitter::debugTrackData(), muonisolation::ExtractorFromDeposits::deposit(), muonisolation::CaloExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), muonisolation::PixelTrackExtractor::directionAtPresetRadius(), PFRecoTauDiscriminationAgainstElectronMVA5::discriminate(), AntiElectronIDCut2::Discriminator(), PrimaryVertexAnalyzer4PU::dumpHitInfo(), MuonCaloCompatibility::evaluate(), AlignmentMonitorGeneric::event(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), TrackTypeMonitor::fillHistograms(), TrackAnalyzer::fillHistosForState(), TrackAnalyzer::fillHistosForTrackerSpecific(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackerValidationVariables::fillTrackQuantities(), reco::HcalNoiseInfoProducer::filltracks(), MuonAlignmentPreFilter::filter(), AlCaIsoTracksFilter::filter(), CSCEfficiency::filter(), PFElecTkProducer::FindPfRef(), MuonShowerInformationFiller::getCompatibleDets(), Tau3MuReco::getDeltaR(), MuonIdProducer::isGoodTrack(), Jet.Jet::jetID(), PFDisplacedVertexCandidateFinder::link(), MatcherByPullsAlgorithm::match(), reco::tau::qcuts::minTrackVertexWeight(), AntiElectronIDMVA5::MVAValue(), TrackClassFilter::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTrackSelector::operator()(), PrimaryVertexAnalyzer4PU::printEventSummary(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), examples::TrackAnalysisAlgorithm::process(), MultiTrackSelector::processMVA(), ShallowTracksProducer::produce(), JetTracksAssociationDRVertex::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetVetoedTracksAssociationDRVertex::produce(), QuarkoniaTrackSelector::produce(), L3MuonIsolationProducer::produce(), pat::PATLostTracks::produce(), DeDxHitInfoProducer::produce(), OutsideInMuonSeeder::produce(), PFRecoTauChargedHadronProducer::produce(), reco::CentralityProducer::produce(), SeedToTrackProducer::produce(), TriggerMatcherToHLTDebug::produce(), spr::propagateCALO(), Jet.Jet::puJetId(), fireworks::pushPixelHits(), SoftLepton::refineJetAxis(), CutsIsolatorWithCorrection::result(), SimpleCutsIsolator::result(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), CosmicTrackSelector::select(), MultiTrackSelector::select(), AlCaIsoTracksProducer::select(), FWTrackHitsDetailView::setTextInfo(), FWConvTrackHitsDetailView::setTextInfo(), FWPFTrackUtils::setupLegoTrack(), FWPFTrackUtils::setupTrack(), TrackWithVertexSelector::testTrack(), EwkMuLumiMonitorDQM::tkIso(), QcdUeDQM::trackSelection(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkTransverseImpactParameter(), muonisolation::PixelTrackExtractor::vetos(), muonisolation::TrackExtractor::vetos(), and egammaisolation::EgammaTrackExtractor::vetos().

700 {
701  return momentum_.Eta();
702 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::etaError ( ) const
inline

error on eta

Definition at line 832 of file TrackBase.h.

References error(), i_lambda, p(), and pt().

Referenced by CosmicSplitterValidation::analyze(), TrackAnalyzer::fillHistosForState(), and ShallowTracksProducer::produce().

833 {
834  return error(i_lambda) * p() / pt();
835 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:663
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double error(int i) const
error on specified element
Definition: TrackBase.h:799
TrackBase::CovarianceMatrix & TrackBase::fill ( CovarianceMatrix v) const

fill SMatrix

Definition at line 103 of file TrackBase.cc.

References covariance_, and reco::fillCovariance().

Referenced by covariance().

104 {
105  return fillCovariance(v, covariance_);
106 }
PerigeeCovarianceMatrix & fillCovariance(PerigeeCovarianceMatrix &v, const float *data)
float covariance_[covarianceSize]
perigee 5x5 covariance matrix
Definition: TrackBase.h:356
const HitPattern & reco::TrackBase::hitPattern ( ) const
inline

Access the hit pattern, indicating in which Tracker layers the track has hits.

Definition at line 384 of file TrackBase.h.

References hitPattern_.

Referenced by TrackTypeMonitor::analyze(), PatTrackAnalyzer::analyze(), TrackAnalyzer::analyze(), PFCheckHitPattern::analyze(), CheckHitPattern::analyze(), TkConvValidator::analyze(), GetTrackTrajInfo::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), spr::coneChargeIsolation(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), TrackAnalyzer::fillHistosForState(), TrackAnalyzer::fillHistosForTrackerSpecific(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), WtoLNuSelector::filter(), reco::tau::RecoTauQualityCuts::filterTrack_(), spr::goodTrack(), reco::TransientTrack::hitPattern(), HLTTrackWithHits::hltFilter(), PFMuonAlgo::isTrackerTightMuon(), PFDisplacedVertexHelper::isTrackSelected(), reco::TransientTrack::numberOfLostHits(), reco::TransientTrack::numberOfValidHits(), reco::TrackSelector::operator()(), GhostTrackComputer::operator()(), TrackClassFilter::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTrackSelector::operator()(), FWTrackResidualDetailView::prepareData(), PFCheckHitPattern::print(), CheckHitPattern::print(), PFMuonAlgo::printMuonProperties(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), MultiTrackSelector::processMVA(), pat::PATLostTracks::produce(), TrackListMerger::produce(), pat::PATPackedCandidateProducer::produce(), DuplicateTrackMerger::produce(), HITrackClusterRemover::produce(), IPProducer< Container, Base, Helper >::produce(), reco::Track::residualX(), reco::Track::residualY(), HIPAlignmentAlgorithm::run(), CosmicTrackSelector::select(), TrackMultiSelector::select(), MultiTrackSelector::select(), FWConvTrackHitsDetailView::setTextInfo(), pat::PackedCandidate::setTrackProperties(), ElectronMaker::SetVars(), TrackWithVertexSelector::testTrack(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::trackFilter(), TrackVertexArbitration< VTX >::trackFilterArbitrator(), QcdUeDQM::trackSelection(), reco::tau::qcuts::trkPixelHits(), and reco::tau::qcuts::trkTrackerHits().

385 {
386  return hitPattern_;
387 }
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
bool reco::TrackBase::isLooper ( ) const
inline

Definition at line 919 of file TrackBase.h.

References nLoops_.

920 {
921  return (nLoops_ > 0);
922 }
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:380
double reco::TrackBase::lambda ( ) const
inline

Lambda angle.

Definition at line 633 of file TrackBase.h.

References M_PI_2, and momentum_.

Referenced by TestOutliers::analyze(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), MTVHistoProducerAlgoForTracker::getRecoMomentum(), MuonTrackValidator::getRecoMomentum(), and parameters().

634 {
635  return M_PI_2 - momentum_.theta();
636 }
#define M_PI_2
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::lambdaError ( ) const
inline

error on lambda

Definition at line 826 of file TrackBase.h.

References error(), and i_lambda.

Referenced by MTVHistoProducerAlgoForTracker::getRecoMomentum(), MuonTrackValidator::getRecoMomentum(), and PixelTrackFilterByKinematics::operator()().

827 {
828  return error(i_lambda);
829 }
double error(int i) const
error on specified element
Definition: TrackBase.h:799
const TrackBase::Vector & reco::TrackBase::momentum ( ) const
inline

track momentum vector

Definition at line 723 of file TrackBase.h.

References momentum_.

Referenced by ValidationMisalignedTracker::analyze(), StudyHLT::analyze(), PhotonValidator::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), converter::StandAloneMuonTrackToCandidate::convert(), converter::TrackToCandidate::convert(), SiStripFineDelayHit::detId(), EgammaHLTTrackIsolation::electronIsolation(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), CombinedSVComputer::fillCommonVariables(), MillePedeMonitor::fillTrack(), JetVertexChecker::filter(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), VZeroFinder::getGlobalTrajectoryParameters(), PFDisplacedVertexCandidateFinder::getGlobalTrajectoryParameters(), ValidHitPairFilter::getTrajectory(), SeedFromProtoTrack::init(), trajectoryStateTransform::initialFreeState(), HLTmumutktkVtxProducer::initialFreeState(), HLTmumutkVtxProducer::initialFreeState(), HLTmmkkFilter::initialFreeState(), HLTmmkFilter::initialFreeState(), reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), MuonErrorMatrixAdjuster::makeTrack(), TrackMerger::merge(), reco::PFDisplacedVertex::momentum(), reco::TrackSelector::operator()(), GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), reco::print(), PrintRecoObjects::print(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), SeedGeneratorFromProtoTracksEDProducer::produce(), DuplicateListMerger::produce(), SoftLepton::refineJetAxis(), HPSPFRecoTauAlgorithm::refitThreeProng(), ObjectValidator::validTrack(), and reco::IPTagInfo< Container, Base >::variableJTA().

724 {
725  return momentum_;
726 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::ndof ( ) const
inline
signed char reco::TrackBase::nLoops ( ) const
inline

Definition at line 924 of file TrackBase.h.

References nLoops_.

925 {
926  return nLoops_;
927 }
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:380
double reco::TrackBase::normalizedChi2 ( ) const
inline

chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)

Definition at line 609 of file TrackBase.h.

References chi2_, and ndof_.

Referenced by TrackAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), TrackSplittingMonitor::analyze(), TestOutliers::analyze(), CosmicSplitterValidation::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), helper::SimpleJetTrackAssociator::associate(), helper::SimpleJetTrackAssociator::associateTransient(), CalibrationTrackSelector::basicCuts(), AlignmentTrackSelector::basicCuts(), KalmanAlignmentTrackRefitter::debugTrackData(), AlignmentMonitorGeneric::event(), AlignmentMonitorTracksFromTrajectories::event(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), TrackAnalyzer::fillHistosForState(), MillePedeMonitor::fillTrack(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackerValidationVariables::fillTrackQuantities(), CSCEfficiency::filter(), reco::tau::RecoTauQualityCuts::filterTrack_(), V0Fitter::fitAll(), PFDisplacedVertexCandidateFinder::goodPtResolution(), spr::goodTrack(), HLTMuonTrackMassFilter::hltFilter(), PFDisplacedVertexHelper::isTrackSelected(), MuonResidualsFromTrack::normalizedChi2(), reco::TrackSelector::operator()(), GhostTrackComputer::operator()(), TrackClassFilter::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTrackSelector::operator()(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), AlignmentMonitorMuonVsCurvature::processMuonResidualsFromTrack(), MultiTrackSelector::processMVA(), DuplicateListMerger::produce(), IPProducer< Container, Base, Helper >::produce(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), CosmicTrackSelector::select(), TrackMultiSelector::select(), MultiTrackSelector::select(), pat::PackedCandidate::setTrackProperties(), TrackWithVertexSelector::testTrack(), ConversionProducer::trackQualityFilter(), QcdUeDQM::trackSelection(), and reco::tau::qcuts::trkChi2().

610 {
611  return ndof_ != 0 ? chi2_ / ndof_ : chi2_ * 1e6;
612 }
float chi2_
chi-squared
Definition: TrackBase.h:359
float ndof_
number of degrees of freedom
Definition: TrackBase.h:368
unsigned short reco::TrackBase::numberOfLostHits ( ) const
inline
unsigned short reco::TrackBase::numberOfValidHits ( ) const
inline

number of valid hits found

Definition at line 868 of file TrackBase.h.

References hitPattern_, and reco::HitPattern::numberOfValidHits().

Referenced by SiStripGainFromCalibTree::algoAnalyze(), PatTrackAnalyzer::analyze(), TrackAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), MuonTrackValidator::analyze(), helper::SimpleJetTrackAssociator::associate(), helper::SimpleJetTrackAssociator::associateTransient(), CalibrationTrackSelector::basicCuts(), AlignmentTrackSelector::basicCuts(), MuonAlignmentAnalyzer::doMatching(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_recoAssociated_simTrack_histos(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), TrackAnalyzer::fillHistosForState(), MillePedeMonitor::fillTrack(), TrackerValidationVariables::fillTrackQuantities(), V0Fitter::fitAll(), reco::Track::found(), HLTMuonTrackMassFilter::hltFilter(), PFDisplacedVertexHelper::isTrackSelected(), TrackClassFilter::operator()(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), MultiTrackSelector::processMVA(), ShallowTracksProducer::produce(), pat::PATLostTracks::produce(), TrackListMerger::produce(), DeDxHitInfoProducer::produce(), TriggerMatcherToHLTDebug::produce(), IPProducer< Container, Base, Helper >::produce(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MultiTrackSelector::select(), TrackWithVertexSelector::testTrack(), and ObjectValidator::validTrack().

869 {
871 }
int numberOfValidHits() const
Definition: HitPattern.h:734
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
double reco::TrackBase::p ( ) const
inline

momentum vector magnitude

Definition at line 663 of file TrackBase.h.

References momentum_.

Referenced by PFTrackTransformer::addPoints(), SiStripGainFromData::algoAnalyze(), SiStripGainFromCalibTree::algoAnalyze(), EwkMuLumiMonitorDQM::analyze(), StudyHLT::analyze(), HcalIsoTrkAnalyzer::analyze(), CosmicSplitterValidation::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), AlignmentTrackSelector::basicCuts(), HBHEHitMap::calcTracksNeighborTowers_(), HBHEHitMap::calcTracksSameTowers_(), pat::TrackerIsolationPt::calculate(), spr::chargeIsolation(), spr::chargeIsolationCone(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), IsoTrig::chgIsolation(), spr::coneChargeIsolation(), dsz(), dzError(), etaError(), MuonCaloCompatibility::evaluate(), AlignmentMonitorMuonVsCurvature::event(), AlignmentMonitorMuonSystemMap1D::event(), AlignmentMonitorSegmentDifferences::event(), TrackTypeMonitor::fillHistograms(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), reco::HcalNoiseInfoProducer::filltracks(), MuonAlignmentPreFilter::filter(), AlCaIsoTracksFilter::filter(), CSCEfficiency::filter(), MuonShowerInformationFiller::getCompatibleDets(), ConversionFinder::getConversionInfo(), IsoTrig::getGoodTracks(), MuonIdProducer::isGoodTrack(), PFDisplacedVertexHelper::lambdaCP(), MuonIdProducer::makeMuon(), MuonIdTruthInfo::matchChi2(), muonid::matchTracks(), muonisolation::CaloExtractor::MuonAtCaloPosition(), TrackClassFilter::operator()(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), ShallowTracksProducer::produce(), JetTracksAssociationDRVertex::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetVetoedTracksAssociationDRVertex::produce(), QuarkoniaTrackSelector::produce(), DeDxHitInfoProducer::produce(), SiStripElectronAssociator::produce(), spr::propagateCALO(), ptError(), qoverp(), PFAlgo::reconstructTrack(), MuonTrackingRegionBuilder::region(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), CSCOverlapsAlignmentAlgorithm::run(), MuonAlignmentFromReference::run(), AlCaIsoTracksProducer::select(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), ElectronMaker::SetVars(), IsoTrig::studyIsolation(), IsoTrig::studyMipCut(), IsoTrig::StudyTrkEbyP(), and reco::JetTracksAssociation::tracksP4().

664 {
665  return momentum_.R();
666 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::parameter ( int  i) const
inline

i-th parameter ( i = 0, ... 4 )

Definition at line 787 of file TrackBase.h.

References i, and parameters().

Referenced by tauImpactParameter::ParticleBuilder::createTrackParticle(), and TriggerMatcherToHLTDebug::produce().

788 {
789  return parameters()[i];
790 }
int i
Definition: DBlmapReader.cc:9
ParameterVector parameters() const
Track parameters with one-to-one correspondence to the covariance matrix.
Definition: TrackBase.h:773
TrackBase::ParameterVector reco::TrackBase::parameters ( void  ) const
inline

Track parameters with one-to-one correspondence to the covariance matrix.

Definition at line 773 of file TrackBase.h.

References dsz(), dxy(), lambda(), phi(), and qoverp().

Referenced by MuonTrackValidator::analyze(), SiStripFineDelayHit::detId(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), parameter(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

774 {
775  return TrackBase::ParameterVector(qoverp(), lambda(), phi(), dxy(), dsz());
776 }
double qoverp() const
q / p
Definition: TrackBase.h:621
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:693
math::Vector< dimension >::type ParameterVector
parameter vector
Definition: TrackBase.h:73
double dsz() const
dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0...
Definition: TrackBase.h:651
double lambda() const
Lambda angle.
Definition: TrackBase.h:633
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:639
double reco::TrackBase::phi ( ) const
inline

azimuthal angle of momentum vector

Definition at line 693 of file TrackBase.h.

References momentum_.

Referenced by Particle.Particle::__str__(), TrackTypeMonitor::analyze(), PatTrackAnalyzer::analyze(), TrackAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), TrackSplittingMonitor::analyze(), TestOutliers::analyze(), HcalIsoTrkAnalyzer::analyze(), CosmicSplitterValidation::analyze(), GenPurposeSkimmerData::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), analyzer::SiPixelLorentzAngle::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), reco::tau::RecoTauVertexAssociator::associatedVertex(), CalibrationTrackSelector::basicCuts(), AlignmentTrackSelector::basicCuts(), pat::CaloIsolationEnergy::calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), spr::chargeIsolationHcal(), AlignmentTwoBodyDecayTrackSelector::checkAcoplanarity(), AlignmentTwoBodyDecayTrackSelector::checkMETAcoplanarity(), KalmanAlignmentTrackRefitter::debugTrackData(), muonisolation::ExtractorFromDeposits::deposit(), muonisolation::CaloExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), muonisolation::PixelTrackExtractor::directionAtPresetRadius(), AlignmentMonitorGeneric::event(), TrackTypeMonitor::fillHistograms(), TrackAnalyzer::fillHistosForState(), TrackAnalyzer::fillHistosForTrackerSpecific(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackerValidationVariables::fillTrackQuantities(), AlCaIsoTracksFilter::filter(), CSCEfficiency::filter(), PFElecTkProducer::FindPfRef(), MuonShowerInformationFiller::getCompatibleDets(), Tau3MuReco::getDeltaR(), MTVHistoProducerAlgoForTracker::getRecoMomentum(), MuonTrackValidator::getRecoMomentum(), CosmicSplitterValidation::is_gold_muon(), PFDisplacedVertexCandidateFinder::link(), MatcherByPullsAlgorithm::match(), MuonIdTruthInfo::matchChi2(), reco::tau::qcuts::minTrackVertexWeight(), muonisolation::CaloExtractor::MuonAtCaloPosition(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), parameters(), PrimaryVertexAnalyzer4PU::printEventSummary(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), JetTracksAssociationDRVertex::produce(), ShallowTracksProducer::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetVetoedTracksAssociationDRVertex::produce(), pat::PATLostTracks::produce(), pat::PATPackedCandidateProducer::produce(), PFRecoTauChargedHadronProducer::produce(), SeedToTrackProducer::produce(), spr::propagateCALO(), SoftLepton::refineJetAxis(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), AlCaIsoTracksProducer::select(), FWTrackHitsDetailView::setTextInfo(), FWConvTrackHitsDetailView::setTextInfo(), EwkMuLumiMonitorDQM::tkIso(), QcdUeDQM::trackSelection(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkTransverseImpactParameter(), muonisolation::PixelTrackExtractor::vetos(), muonisolation::TrackExtractor::vetos(), and egammaisolation::EgammaTrackExtractor::vetos().

694 {
695  return momentum_.Phi();
696 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::phiError ( ) const
inline
double reco::TrackBase::pt ( void  ) const
inline

track transverse momentum

Definition at line 669 of file TrackBase.h.

References momentum_, and mathSSE::sqrt().

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), PFTrackTransformer::addPoints(), PFTrackTransformer::addPointsAndBrems(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), PFCandConnector::analyseNuclearWSec(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), PatTrackAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), EwkMuLumiMonitorDQM::analyze(), StudyHLT::analyze(), ElectronConversionRejectionValidator::analyze(), TrackSplittingMonitor::analyze(), GlobalMuonMatchAnalyzer::analyze(), TkConvValidator::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), HcalIsoTrkAnalyzer::analyze(), CosmicSplitterValidation::analyze(), GenPurposeSkimmerData::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), analyzer::SiPixelLorentzAngle::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), MuonTrackValidator::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), reco::tau::RecoTauVertexAssociator::associatedVertex(), CalibrationTrackSelector::basicCuts(), AlignmentTrackSelector::basicCuts(), FWTrackProxyBuilder::build(), Photon.Photon::calScaledIsoValue(), Tau3MuReco::check4MuonTrack(), KalmanAlignmentTrackRefitter::debugTrackData(), muonisolation::CaloExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::PixelTrackExtractor::directionAtPresetRadius(), PFRecoTauDiscriminationAgainstElectronMVA5::discriminate(), AntiElectronIDCut2::Discriminator(), dsz(), PrimaryVertexAnalyzer4PU::dumpHitInfo(), dxy(), dz(), dzError(), fw::estimate_field(), etaError(), AlignmentMonitorMuonVsCurvature::event(), AlignmentMonitorMuonSystemMap1D::event(), AlignmentMonitorSegmentDifferences::event(), AlignmentMonitorGeneric::event(), TrackTypeMonitor::fillHistograms(), TrackAnalyzer::fillHistosForState(), MillePedeMonitor::fillTrack(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackerValidationVariables::fillTrackQuantities(), reco::HcalNoiseInfoProducer::filltracks(), MuonAlignmentPreFilter::filter(), JetVertexChecker::filter(), AlCaIsoTracksFilter::filter(), CSCEfficiency::filter(), reco::tau::RecoTauQualityCuts::filterTrack_(), V0Fitter::fitAll(), ConversionFinder::getConversionInfo(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), MTVHistoProducerAlgoForTracker::getRecoMomentum(), MuonTrackValidator::getRecoMomentum(), PFDisplacedVertexCandidateFinder::goodPtResolution(), spr::goodTrack(), HLTTrackWithHits::hltFilter(), MuonIdProducer::isGoodTrack(), PFDisplacedVertexHelper::isTrackSelected(), PFDisplacedVertexCandidateFinder::link(), MatcherByPullsAlgorithm::match(), muonid::matchTracks(), reco::tau::qcuts::minTrackVertexWeight(), muonisolation::CaloExtractor::MuonAtCaloPosition(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDTight(), AntiElectronIDMVA5::MVAValue(), PixelTrackFilterByKinematics::operator()(), HIPixelTrackFilter::operator()(), HIProtoTrackFilter::operator()(), reco::TrackSelector::operator()(), CalibrationTrackSelector::ComparePt::operator()(), AlignmentTrackSelector::ComparePt::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTrackSelector::operator()(), reco::Vertex::TrackEqual::operator()(), fireworks::prepareTrack(), PrimaryVertexAnalyzer4PU::printEventSummary(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), examples::TrackAnalysisAlgorithm::process(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), AlignmentMonitorMuonVsCurvature::processMuonResidualsFromTrack(), AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), MultiTrackSelector::processMVA(), ShallowTracksProducer::produce(), QuarkoniaTrackSelector::produce(), pat::PATLostTracks::produce(), DeDxHitInfoProducer::produce(), reco::CentralityProducer::produce(), SeedToTrackProducer::produce(), TriggerMatcherToHLTDebug::produce(), IPProducer< Container, Base, Helper >::produce(), ptError(), reco::tau::qcuts::ptMin(), SoftLepton::refineJetAxis(), GlobalMuonRefitter::refit(), Lepton.Lepton::relEffAreaIso(), Lepton.Lepton::relIso(), CutsIsolatorWithCorrection::result(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), AnalyticalTrackSelector::run(), MuonDTLocalMillepedeAlgorithm::run(), MultiTrackSelector::run(), MuonAlignmentFromReference::run(), CosmicTrackSelector::select(), TrackMultiSelector::select(), MultiTrackSelector::select(), AlCaIsoTracksProducer::select(), reco::modules::HICaloCompatibleTrackSelector::selectByPFCands(), reco::modules::HICaloCompatibleTrackSelector::selectByTowers(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), FWTrackHitsDetailView::setTextInfo(), FWConvTrackHitsDetailView::setTextInfo(), FWPFTrackUtils::setupLegoTrack(), FWPFTrackUtils::setupTrack(), TrackClusterSplitter::splitCluster(), TrackWithVertexSelector::testTrack(), EwkMuLumiMonitorDQM::tkIso(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::trackFilter(), TrackVertexArbitration< VTX >::trackFilterArbitrator(), reco::PFDisplacedVertex::trackPosition(), QcdUeDQM::trackSelection(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkTransverseImpactParameter(), ObjectValidator::validTrack(), and reco::IPTagInfo< Container, Base >::variableJTA().

670 {
671  return sqrt(momentum_.Perp2());
672 }
T sqrt(T t)
Definition: SSEVec.h:48
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::ptError ( ) const
inline

error on Pt (set to 1000 TeV if charge==0 for safety)

Definition at line 811 of file TrackBase.h.

References charge(), covariance(), i_lambda, i_qoverp, p(), pt(), pz(), and mathSSE::sqrt().

Referenced by PatTrackAnalyzer::analyze(), TrackSplittingMonitor::analyze(), TestOutliers::analyze(), CosmicSplitterValidation::analyze(), PFMEtSignInterfaceBase::compResolution(), TrackTypeMonitor::fillHistograms(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), CSCEfficiency::filter(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), MTVHistoProducerAlgoForTracker::getRecoMomentum(), MuonTrackValidator::getRecoMomentum(), PFDisplacedVertexCandidateFinder::goodPtResolution(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), MultiTrackSelector::processMVA(), ShallowTracksProducer::produce(), reco::CentralityProducer::produce(), SeedToTrackProducer::produce(), MultiTrackSelector::select(), TrackWithVertexSelector::testTrack(), and QcdUeDQM::trackSelection().

812 {
813  return (charge() != 0) ? sqrt(
814  pt() * pt() * p() * p() / charge() / charge() * covariance(i_qoverp, i_qoverp)
815  + 2 * pt() * p() / charge() * pz() * covariance(i_qoverp, i_lambda)
816  + pz() * pz() * covariance(i_lambda, i_lambda)) : 1.e6;
817 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:663
CovarianceMatrix covariance() const
return track covariance matrix
Definition: TrackBase.h:779
T sqrt(T t)
Definition: SSEVec.h:48
double pt() const
track transverse momentum
Definition: TrackBase.h:669
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:687
int charge() const
track electric charge
Definition: TrackBase.h:615
double reco::TrackBase::px ( ) const
inline

x coordinate of momentum vector

Definition at line 675 of file TrackBase.h.

References momentum_.

Referenced by reco::TrackKinematics::add(), PFTrackTransformer::addPoints(), EwkMuLumiMonitorDQM::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), DiJetAnalyzer::analyze(), GammaJetAnalysis::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), FWSecVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::build(), FWVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::buildTrack(), pat::TrackerIsolationPt::calculate(), FWInvMassDialog::Calculate(), IsoTrig::chgIsolation(), L6SLBCorrector::correction(), L6SLBCorrectorImpl::correction(), directionAlongMomentum(), dsz(), dummyPrediction(), dxy(), dz(), fw::estimate_field(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), AlCaIsoTracksFilter::filter(), ConversionFinder::getConversionInfo(), IsoTrig::getGoodTracks(), FWPFTrackUtils::getTrack(), PFDisplacedVertexHelper::lambdaCP(), MuonIdProducer::makeMuon(), muonid::matchTracks(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), fireworks::prepareTrack(), QuarkoniaTrackSelector::produce(), DeDxHitInfoProducer::produce(), SiStripElectronAssociator::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), TrackExtrapolator::propagateTrackToVolume(), PFAlgo::reconstructTrack(), HPSPFRecoTauAlgorithm::refitThreeProng(), AlCaIsoTracksProducer::select(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), ElectronMaker::SetVars(), IsoTrig::studyIsolation(), IsoTrig::studyMipCut(), IsoTrig::StudyTrkEbyP(), and reco::JetTracksAssociation::tracksP4().

676 {
677  return momentum_.x();
678 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::py ( ) const
inline

y coordinate of momentum vector

Definition at line 681 of file TrackBase.h.

References momentum_.

Referenced by reco::TrackKinematics::add(), PFTrackTransformer::addPoints(), EwkMuLumiMonitorDQM::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), DiJetAnalyzer::analyze(), GammaJetAnalysis::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), FWSecVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::build(), FWVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::buildTrack(), pat::TrackerIsolationPt::calculate(), FWInvMassDialog::Calculate(), IsoTrig::chgIsolation(), L6SLBCorrector::correction(), L6SLBCorrectorImpl::correction(), directionAlongMomentum(), dsz(), dummyPrediction(), dxy(), dz(), fw::estimate_field(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), AlCaIsoTracksFilter::filter(), ConversionFinder::getConversionInfo(), IsoTrig::getGoodTracks(), FWPFTrackUtils::getTrack(), PFDisplacedVertexHelper::lambdaCP(), MuonIdProducer::makeMuon(), muonid::matchTracks(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), fireworks::prepareTrack(), QuarkoniaTrackSelector::produce(), DeDxHitInfoProducer::produce(), SiStripElectronAssociator::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), TrackExtrapolator::propagateTrackToVolume(), PFAlgo::reconstructTrack(), HPSPFRecoTauAlgorithm::refitThreeProng(), AlCaIsoTracksProducer::select(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), ElectronMaker::SetVars(), IsoTrig::studyIsolation(), IsoTrig::studyMipCut(), IsoTrig::StudyTrkEbyP(), and reco::JetTracksAssociation::tracksP4().

682 {
683  return momentum_.y();
684 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::pz ( ) const
inline

z coordinate of momentum vector

Definition at line 687 of file TrackBase.h.

References momentum_.

Referenced by reco::TrackKinematics::add(), PFTrackTransformer::addPoints(), EwkMuLumiMonitorDQM::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), DiJetAnalyzer::analyze(), GammaJetAnalysis::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), FWSecVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::build(), FWVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::buildTrack(), pat::TrackerIsolationPt::calculate(), FWInvMassDialog::Calculate(), IsoTrig::chgIsolation(), L6SLBCorrector::correction(), L6SLBCorrectorImpl::correction(), dsz(), dummyPrediction(), dz(), TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillTrackQuantities(), AlCaIsoTracksFilter::filter(), ConversionFinder::getConversionInfo(), IsoTrig::getGoodTracks(), FWPFTrackUtils::getTrack(), PFDisplacedVertexHelper::lambdaCP(), MuonIdProducer::makeMuon(), muonid::matchTracks(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), fireworks::prepareTrack(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), AlignmentMonitorMuonVsCurvature::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), QuarkoniaTrackSelector::produce(), DeDxHitInfoProducer::produce(), SiStripElectronAssociator::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), TrackExtrapolator::propagateTrackToVolume(), ptError(), PFAlgo::reconstructTrack(), HPSPFRecoTauAlgorithm::refitThreeProng(), AlCaIsoTracksProducer::select(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), ElectronMaker::SetVars(), IsoTrig::studyIsolation(), IsoTrig::studyMipCut(), IsoTrig::StudyTrkEbyP(), and reco::JetTracksAssociation::tracksP4().

688 {
689  return momentum_.z();
690 }
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:365
double reco::TrackBase::qoverp ( ) const
inline
double reco::TrackBase::qoverpError ( ) const
inline
bool reco::TrackBase::quality ( const TrackQuality  ) const
inline

Track quality.

Definition at line 551 of file TrackBase.h.

References confirmed, goodIterative, highPurity, lumiQueryAPI::q, quality_, and undefQuality.

Referenced by PatTrackAnalyzer::analyze(), StudyHLT::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksNxN::analyze(), spr::chargeIsolation(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), TemplatedJetProbabilityComputer< Container, Base >::discriminator(), TemplatedJetBProbabilityComputer< Container, Base >::discriminator(), CSCEfficiency::filter(), spr::goodTrack(), IPTagPlotter< Container, Base >::highestTrackQual(), AlignmentTrackSelector::isOkTrkQuality(), PFDisplacedVertexHelper::isTrackSelected(), reco::TrackSelector::operator()(), TrackFilterForPVFinding::operator()(), TrackClassFilter::operator()(), RecoTrackSelector::operator()(), TemplatedTrackCountingComputer< Container, Base >::orderedSignificances(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), HITrackClusterRemover::produce(), ExtraFromSeeds::produce(), reco::CentralityProducer::produce(), spr::propagateCALO(), spr::propagateCosmicCALO(), reco::modules::HICaloCompatibleTrackSelector::selectByPFCands(), reco::modules::HICaloCompatibleTrackSelector::selectByTowers(), TrackWithVertexSelector::testTrack(), and QcdUeDQM::trackSelection().

552 {
553  switch (q) {
554  case undefQuality:
555  return (quality_ == 0);
556  case goodIterative:
557  return (((quality_ & (1 << TrackBase::confirmed)) >> TrackBase::confirmed) ||
559  default:
560  return (quality_ & (1 << q)) >> q;
561  }
562  return false;
563 }
uint8_t quality_
track quality
Definition: TrackBase.h:377
TrackBase::TrackQuality TrackBase::qualityByName ( const std::string &  name)
static

Definition at line 108 of file TrackBase.cc.

References spr::find(), qualityNames, qualitySize, findQualityFiles::size, and undefQuality.

Referenced by AlCaIsoTracksFilter::AlCaIsoTracksFilter(), AlCaIsoTracksProducer::AlCaIsoTracksProducer(), AlignmentTrackSelector::AlignmentTrackSelector(), TrackTypeMonitor::analyze(), StandaloneTrackMonitor::analyze(), PatTrackAnalyzer::analyze(), TrackCount::analyze(), PrimaryVertexValidation::analyze(), IsolatedTracksCone::analyze(), IsolatedTracksNxN::analyze(), BeamFitter::BeamFitter(), QGTagger::calcVariables(), CaloRecoTauTagInfoAlgorithm::CaloRecoTauTagInfoAlgorithm(), spr::chargeIsolation(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), DuplicateListMerger::DuplicateListMerger(), FilterOutScraping::filter(), HcalIsoTrkAnalyzer::HcalIsoTrkAnalyzer(), HITrackClusterRemover::HITrackClusterRemover(), IsolatedTracksHcalScale::IsolatedTracksHcalScale(), IsoTrackCalib::IsoTrackCalib(), IsoTrackCalibration::IsoTrackCalibration(), IsoTrig::IsoTrig(), PFDisplacedVertexHelper::isTrackSelected(), JetPlusTrackProducerAA::JetPlusTrackProducerAA(), LightPFTrackProducer::LightPFTrackProducer(), TrackClassFilter::operator()(), PFTrackProducer::PFTrackProducer(), IsolatedTracksCone::printTrack(), IsolatedTracksNxN::printTrack(), SimpleTrackListMerger::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), PromptTrackCountingComputer::PromptTrackCountingComputer(), spr::propagateCALO(), spr::propagateCosmicCALO(), QcdUeDQM::QcdUeDQM(), QualityCutsAnalyzer::QualityCutsAnalyzer(), RecoTrackSelector::RecoTrackSelector(), SeedClusterRemover::SeedClusterRemover(), reco::modules::HICaloCompatibleTrackSelector::selectByPFCands(), reco::modules::HICaloCompatibleTrackSelector::selectByTowers(), PFMuonAlgo::setParameters(), StudyHLT::StudyHLT(), TemplatedJetBProbabilityComputer< Container, Base >::TemplatedJetBProbabilityComputer(), TemplatedJetProbabilityComputer< Container, Base >::TemplatedJetProbabilityComputer(), TemplatedTrackCountingComputer< Container, Base >::TemplatedTrackCountingComputer(), TrackWithVertexSelector::testTrack(), TrackExtrapolator::TrackExtrapolator(), TrackFilterForPVFinding::TrackFilterForPVFinding(), TrackListMerger::TrackListMerger(), reco::TrackSelector::TrackSelector(), and VertexAssociatorByTracks::VertexAssociatorByTracks().

109 {
112  if (index == size) {
113  return undefQuality; // better this or throw() ?
114  }
115 
116  // cast
117  return TrackQuality(index);
118 }
unsigned int index
index type
Definition: TrackBase.h:94
TrackQuality
track quality
Definition: TrackBase.h:133
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
static const std::string qualityNames[]
Definition: TrackBase.h:145
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
tuple size
Write out results.
int reco::TrackBase::qualityMask ( ) const
inline

Definition at line 904 of file TrackBase.h.

References quality_.

Referenced by PrimaryVertexAnalyzer4PU::fillTrackHistos(), DuplicateListMerger::produce(), and MultiTrackSelector::run().

905 {
906  return quality_;
907 }
uint8_t quality_
track quality
Definition: TrackBase.h:377
std::string reco::TrackBase::qualityName ( TrackQuality  q)
inlinestatic

Definition at line 580 of file TrackBase.h.

References qualityNames, and qualitySize.

Referenced by TkAlCaRecoMonitor::bookHistograms(), IsolatedTracksCone::printTrack(), and IsolatedTracksNxN::printTrack().

581 {
582  if (int(q) < int(qualitySize) && int(q) >= 0) {
583  return qualityNames[int(q)];
584  }
585  return "undefQuality";
586 }
static const std::string qualityNames[]
Definition: TrackBase.h:145
const TrackBase::Point & reco::TrackBase::referencePoint ( ) const
inline
void reco::TrackBase::resetHitPattern ( )
inline

Sets HitPattern as empty.

Definition at line 399 of file TrackBase.h.

References reco::HitPattern::clear(), and hitPattern_.

400 {
401  hitPattern_.clear();
402 }
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
void reco::TrackBase::setAlgorithm ( const TrackAlgorithm  a,
bool  set = true 
)
inline

Track algorithm.

Definition at line 895 of file TrackBase.h.

References a, algorithm_, and undefAlgorithm.

Referenced by TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), and TrackListCombiner::produce().

896 {
897  if (set) {
898  algorithm_ = a;
899  } else {
901  }
902 }
double a
Definition: hdecay.h:121
uint8_t algorithm_
track algorithm
Definition: TrackBase.h:374
void reco::TrackBase::setNLoops ( signed char  value)
inline

Definition at line 914 of file TrackBase.h.

References nLoops_, and relativeConstraints::value.

915 {
916  nLoops_ = value;
917 }
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:380
void reco::TrackBase::setQuality ( const TrackQuality  ,
bool  set = true 
)
inline

Definition at line 565 of file TrackBase.h.

References lumiQueryAPI::q, quality_, and undefQuality.

Referenced by TrackBase().

566 {
567  if (q == undefQuality) {
568  quality_ = 0;
569  } else {
570  //regular OR if setting value to true
571  if (set) {
572  quality_ |= (1 << q);
573  } else {
574  // doing "half-XOR" if unsetting value
575  quality_ &= (~(1 << q));
576  }
577  }
578 }
uint8_t quality_
track quality
Definition: TrackBase.h:377
void reco::TrackBase::setQualityMask ( int  qualMask)
inline

Definition at line 909 of file TrackBase.h.

References quality_.

Referenced by TrackProducerAlgorithm< reco::Track >::buildTrack().

910 {
911  quality_ = qualMask;
912 }
uint8_t quality_
track quality
Definition: TrackBase.h:377
double reco::TrackBase::theta ( ) const
inline
double reco::TrackBase::thetaError ( ) const
inline
double reco::TrackBase::validFraction ( ) const
inline

fraction of valid hits on the track

Definition at line 880 of file TrackBase.h.

References hitPattern_, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, reco::HitPattern::numberOfLostTrackerHits(), reco::HitPattern::numberOfValidTrackerHits(), reco::HitPattern::TRACK_HITS, and TrackValidation_HighPurity_cff::valid.

881 {
886 
887  if ((valid + lost + lostIn + lostOut) == 0) {
888  return -1;
889  }
890 
891  return valid / (double)(valid + lost + lostIn + lostOut);
892 }
int numberOfLostTrackerHits(HitCategory category) const
Definition: HitPattern.h:809
int numberOfValidTrackerHits() const
Definition: HitPattern.h:739
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:353
const TrackBase::Point & reco::TrackBase::vertex ( ) const
inline
double reco::TrackBase::vx ( ) const
inline
double reco::TrackBase::vy ( ) const
inline
double reco::TrackBase::vz ( ) const
inline

z coordinate of the reference point on track

Definition at line 717 of file TrackBase.h.

References vertex_.

Referenced by TrackAnalyzer::analyze(), GenPurposeSkimmerData::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), FWSecVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::build(), FWVertexProxyBuilder::build(), FWTrackProxyBuilderFullFramework::buildTrack(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), dsz(), dxy(), dz(), GsfTrackProducerBase::fillMode(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackerValidationVariables::fillTrackQuantities(), PFDisplacedVertexCandidateFinder::getGlobalTrajectoryParameters(), PrimaryVertexAnalyzer4PU::getSimEvents(), MatcherByPullsAlgorithm::match(), ComparePairs::operator()(), fireworks::prepareTrack(), PrimaryVertexAnalyzer4PU::printEventSummary(), PrimaryVertexAnalyzer4PU::printPVTrks(), ShallowTracksProducer::produce(), SiStripElectronAssociator::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), TrackExtrapolator::propagateTrackToVolume(), fireworks::pushPixelHits(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::selectPriVtxCompatibleWithTrack(), ElectronMaker::SetVars(), and EwkMuLumiMonitorDQM::tkIso().

718 {
719  return vertex_.z();
720 }
Point vertex_
innermost (reference) point on track
Definition: TrackBase.h:362

Member Data Documentation

std::string const TrackBase::algoNames
static
uint8_t reco::TrackBase::algorithm_
private

track algorithm

Definition at line 374 of file TrackBase.h.

Referenced by algo(), algoName(), and setAlgorithm().

char reco::TrackBase::charge_
private

electric charge

Definition at line 371 of file TrackBase.h.

Referenced by charge().

float reco::TrackBase::chi2_
private

chi-squared

Definition at line 359 of file TrackBase.h.

Referenced by chi2(), and normalizedChi2().

float reco::TrackBase::covariance_[covarianceSize]
private

perigee 5x5 covariance matrix

Definition at line 356 of file TrackBase.h.

Referenced by covariance(), error(), fill(), and TrackBase().

HitPattern reco::TrackBase::hitPattern_
private
Vector reco::TrackBase::momentum_
private

momentum vector at innermost point

Definition at line 365 of file TrackBase.h.

Referenced by eta(), lambda(), momentum(), p(), phi(), pt(), px(), py(), pz(), and theta().

float reco::TrackBase::ndof_
private

number of degrees of freedom

Definition at line 368 of file TrackBase.h.

Referenced by ndof(), and normalizedChi2().

signed char reco::TrackBase::nLoops_
private

number of loops made during the building of the trajectory of a looper particle

Definition at line 380 of file TrackBase.h.

Referenced by isLooper(), nLoops(), and setNLoops().

uint8_t reco::TrackBase::quality_
private

track quality

Definition at line 377 of file TrackBase.h.

Referenced by quality(), qualityMask(), setQuality(), and setQualityMask().

std::string const TrackBase::qualityNames
static
Initial value:
= {
"loose",
"tight",
"highPurity",
"confirmed",
"goodIterative",
"looseSetWithPV",
"highPuritySetWithPV"
}

Definition at line 145 of file TrackBase.h.

Referenced by qualityByName(), and qualityName().

Point reco::TrackBase::vertex_
private

innermost (reference) point on track

Definition at line 362 of file TrackBase.h.

Referenced by referencePoint(), vertex(), vx(), vy(), and vz().