test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackBase.h
Go to the documentation of this file.
1 #ifndef TrackReco_TrackBase_h
2 #define TrackReco_TrackBase_h
3 
58 #include <bitset>
59 
60 namespace reco
61 {
62 
63 class TrackBase
64 {
65 
66 public:
68  enum { dimension = 5 };
69 
71  enum { covarianceSize = dimension * (dimension + 1) / 2 };
72 
75 
78 
81 
84 
86  enum {
87  i_qoverp = 0,
92  };
93 
95  typedef unsigned int index;
96 
97 
100  undefAlgorithm = 0, ctf = 1,
114  nuclInter = 17,
116  // Phase1
120  beamhalo = 28,
121  gsf = 29,
122  // HLT algo name
123  hltPixel = 30,
124  // steps used by PF
125  hltIter0 = 31,
126  hltIter1 = 32,
127  hltIter2 = 33,
128  hltIter3 = 34,
129  hltIter4 = 35,
130  // steps used by all other objects @HLT
131  hltIterX = 36,
132  // steps used by HI muon regional iterative tracking
142  algoSize = 46
143  };
144 
146  typedef std::bitset<algoSize> AlgoMask;
147 
148  static const std::string algoNames[];
149 
153  loose = 0,
154  tight = 1,
156  confirmed = 3, // means found by more than one iteration
157  goodIterative = 4, // meaningless
160  discarded = 7, // because a better track found. kept in the collection for reference....
162  };
163 
164  static const std::string qualityNames[];
165 
167  TrackBase();
168 
170  TrackBase(double chi2, double ndof, const Point &vertex,
171  const Vector &momentum, int charge, const CovarianceMatrix &cov,
173  signed char nloops = 0, uint8_t stopReason = 0);
174 
176  virtual ~TrackBase();
177 
179  double chi2() const;
180 
182  double ndof() const;
183 
185  double normalizedChi2() const;
186 
188  int charge() const;
189 
191  double qoverp() const;
192 
194  double theta() const;
195 
197  double lambda() const;
198 
200  double dxy() const;
201 
203  double d0() const;
204 
206  double dsz() const;
207 
209  double dz() const;
210 
212  double p() const;
213 
215  double pt() const;
216 
218  double px() const;
219 
221  double py() const;
222 
224  double pz() const;
225 
227  double phi() const;
228 
230  double eta() const;
231 
233  double vx() const;
234 
236  double vy() const;
237 
239  double vz() const;
240 
242  const Vector &momentum() const;
243 
245  const Point &referencePoint() const;
246 
248  const Point &vertex() const ;
249  //__attribute__((deprecated("This method is DEPRECATED, please use referencePoint() instead.")));
250 
252  double dxy(const Point &myBeamSpot) const;
253 
255  double dxy(const BeamSpot &theBeamSpot) const;
256 
258  double dsz(const Point &myBeamSpot) const;
259 
261  double dz(const Point &myBeamSpot) const;
262 
264  ParameterVector parameters() const;
265 
267  CovarianceMatrix covariance() const;
268 
270  double parameter(int i) const;
271 
273  double covariance(int i, int j) const;
274 
276  double error(int i) const;
277 
279  double qoverpError() const;
280 
282  double ptError() const;
283 
285  double thetaError() const;
286 
288  double lambdaError() const;
289 
291  double etaError() const;
292 
294  double phiError() const;
295 
297  double dxyError() const;
298 
300  double d0Error() const;
301 
303  double dszError() const;
304 
306  double dzError() const;
307 
309  CovarianceMatrix &fill(CovarianceMatrix &v) const;
310 
312  static index covIndex(index i, index j);
313 
315  const HitPattern &hitPattern() const;
316 
318  unsigned short numberOfValidHits() const;
319 
321  unsigned short numberOfLostHits() const;
322 
324  double validFraction() const;
325 
327  template<typename C>
328  bool appendHits(const C &c, const TrackerTopology& ttopo);
329 
330  template<typename I>
331  bool appendHits(const I &begin, const I &end, const TrackerTopology& ttopo);
332 
334  bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology& ttopo);
335  bool appendHitPattern(const DetId &id, TrackingRecHit::Type hitType, const TrackerTopology& ttopo);
336 
343  bool appendTrackerHitPattern(uint16_t subdet, uint16_t layer, uint16_t stereo, TrackingRecHit::Type hitType);
344 
351  bool appendMuonHitPattern(const DetId& id, TrackingRecHit::Type hitType);
352 
354  void resetHitPattern();
355 
357  void setAlgorithm(const TrackAlgorithm a);
358 
360 
361  void setAlgoMask(AlgoMask a) { algoMask_ = a;}
362 
363  AlgoMask algoMask() const { return algoMask_;}
364  unsigned long long algoMaskUL() const { return algoMask().to_ullong();}
365  bool isAlgoInMask(TrackAlgorithm a) const {return algoMask()[a];}
366 
367 
368  TrackAlgorithm algo() const ;
369  TrackAlgorithm originalAlgo() const ;
370 
371 
372  std::string algoName() const;
373 
375 
376  static TrackAlgorithm algoByName(const std::string &name);
377 
379  bool quality(const TrackQuality) const;
380 
381  void setQuality(const TrackQuality);
382 
384 
386 
387  int qualityMask() const;
388 
389  void setQualityMask(int qualMask);
390 
391  void setNLoops(signed char value);
392 
393  bool isLooper() const;
394 
395  signed char nLoops() const;
396 
397  void setStopReason(uint8_t value) { stopReason_ = value; }
398 
399  uint8_t stopReason() const { return stopReason_; }
400 
401 
402 private:
405 
408 
410  float chi2_;
411 
413  Point vertex_;
414 
416  Vector momentum_;
417 
419  std::bitset<algoSize> algoMask_;
420 
422  float ndof_;
423 
425  char charge_;
426 
428  uint8_t algorithm_;
429 
432 
433 
435  uint8_t quality_;
436 
438  signed char nLoops_; // I use signed char because I don't expect more than 128 loops and I could use a negative value for a special purpose.
439 
441  uint8_t stopReason_;
442 };
443 
444 // Access the hit pattern, indicating in which Tracker layers the track has hits.
445 inline const HitPattern & TrackBase::hitPattern() const
446 {
447  return hitPattern_;
448 }
449 
450 inline bool TrackBase::appendHitPattern(const DetId &id, TrackingRecHit::Type hitType, const TrackerTopology& ttopo)
451 {
452  return hitPattern_.appendHit(id, hitType, ttopo);
453 }
454 
456 {
457  return hitPattern_.appendHit(hit, ttopo);
458 }
459 
460 inline bool TrackBase::appendTrackerHitPattern(uint16_t subdet, uint16_t layer, uint16_t stereo, TrackingRecHit::Type hitType) {
461  return hitPattern_.appendTrackerHit(subdet, layer, stereo, hitType);
462 }
463 
465  return hitPattern_.appendMuonHit(id, hitType);
466 }
467 
469 {
470  hitPattern_.clear();
471 }
472 
473 template<typename I>
474 bool TrackBase::appendHits(const I &begin, const I &end, const TrackerTopology& ttopo)
475 {
476  return hitPattern_.appendHits(begin, end, ttopo);
477 }
478 
479 template<typename C>
480 bool TrackBase::appendHits(const C &c, const TrackerTopology& ttopo)
481 {
482  return hitPattern_.appendHits(c.begin(), c.end(), ttopo);
483 }
484 
486 {
487  int a = (i <= j ? i : j);
488  int b = (i <= j ? j : i);
489  return b * (b + 1) / 2 + a;
490 }
491 
493 {
494  return (TrackAlgorithm) (algorithm_);
495 }
497 {
499 }
500 
501 
502 
504 
506 {
507  switch (q) {
508  case undefQuality:
509  return quality_ == 0;
510  case goodIterative:
512  default:
513  return (quality_ & (1 << q)) >> q;
514  }
515  return false;
516 }
517 
519 {
520  if (q == undefQuality) {
521  quality_ = 0;
522  } else {
523  quality_ |= (1 << q);
524  }
525 }
526 
528 {
529  if (int(q) < int(qualitySize) && int(q) >= 0) {
530  return qualityNames[int(q)];
531  }
532  return "undefQuality";
533 }
534 
536 {
537  if (int(a) < int(algoSize) && int(a) > 0) {
538  return algoNames[int(a)];
539  }
540  return "undefAlgorithm";
541 }
542 
543 // chi-squared of the fit
544 inline double TrackBase::chi2() const
545 {
546  return chi2_;
547 }
548 
549 // number of degrees of freedom of the fit
550 inline double TrackBase::ndof() const
551 {
552  return ndof_;
553 }
554 
555 // chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
556 inline double TrackBase::normalizedChi2() const
557 {
558  return ndof_ != 0 ? chi2_ / ndof_ : chi2_ * 1e6;
559 }
560 
561 // track electric charge
562 inline int TrackBase::charge() const
563 {
564  return charge_;
565 }
566 
567 // q / p
568 inline double TrackBase::qoverp() const
569 {
570  return charge() / p();
571 }
572 
573 // polar angle
574 inline double TrackBase::theta() const
575 {
576  return momentum_.theta();
577 }
578 
579 // Lambda angle
580 inline double TrackBase::lambda() const
581 {
582  return M_PI_2 - momentum_.theta();
583 }
584 
585 // 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) below.
586 inline double TrackBase::dxy() const
587 {
588  return (-vx() * py() + vy() * px()) / pt();
589 }
590 
591 // dxy parameter in perigee convention (d0 = -dxy)
592 inline double TrackBase::d0() const
593 {
594  return -dxy();
595 }
596 
597 // 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)
598 inline double TrackBase::dsz() const
599 {
600  return vz() * pt() / p() - (vx() * px() + vy() * py()) / pt() * pz() / p();
601 }
602 
603 // 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) below.
604 inline double TrackBase::dz() const
605 {
606  return vz() - (vx() * px() + vy() * py()) / pt() * (pz() / pt());
607 }
608 
609 // momentum vector magnitude
610 inline double TrackBase::p() const
611 {
612  return momentum_.R();
613 }
614 
615 // track transverse momentum
616 inline double TrackBase::pt() const
617 {
618  return sqrt(momentum_.Perp2());
619 }
620 
621 // x coordinate of momentum vector
622 inline double TrackBase::px() const
623 {
624  return momentum_.x();
625 }
626 
627 // y coordinate of momentum vector
628 inline double TrackBase::py() const
629 {
630  return momentum_.y();
631 }
632 
633 // z coordinate of momentum vector
634 inline double TrackBase::pz() const
635 {
636  return momentum_.z();
637 }
638 
639 // azimuthal angle of momentum vector
640 inline double TrackBase::phi() const
641 {
642  return momentum_.Phi();
643 }
644 
645 // pseudorapidity of momentum vector
646 inline double TrackBase::eta() const
647 {
648  return momentum_.Eta();
649 }
650 
651 // x coordinate of the reference point on track
652 inline double TrackBase::vx() const
653 {
654  return vertex_.x();
655 }
656 
657 // y coordinate of the reference point on track
658 inline double TrackBase::vy() const
659 {
660  return vertex_.y();
661 }
662 
663 // z coordinate of the reference point on track
664 inline double TrackBase::vz() const
665 {
666  return vertex_.z();
667 }
668 
669 // track momentum vector
671 {
672  return momentum_;
673 }
674 
675 // Reference point on the track
677 {
678  return vertex_;
679 }
680 
681 // reference point on the track. This method is DEPRECATED, please use referencePoint() instead
682 inline const TrackBase::Point & TrackBase::vertex() const
683 {
684  return vertex_;
685 }
686 
687 // dxy parameter with respect to a user-given beamSpot
688 // (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).
689 // This is a good approximation for Tracker tracks.
690 inline double TrackBase::dxy(const Point &myBeamSpot) const
691 {
692  return (-(vx() - myBeamSpot.x()) * py() + (vy() - myBeamSpot.y()) * px()) / pt();
693 }
694 
695 // dxy parameter with respect to the beamSpot taking into account the beamspot slopes
696 // (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).
697 // This is a good approximation for Tracker tracks.
698 inline double TrackBase::dxy(const BeamSpot &theBeamSpot) const
699 {
700  return dxy(theBeamSpot.position(vz()));
701 }
702 
703 // dsz parameter with respect to a user-given beamSpot
704 // (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).
705 // This is a good approximation for Tracker tracks.
706 inline double TrackBase::dsz(const Point &myBeamSpot) const
707 {
708  return (vz() - myBeamSpot.z()) * pt() / p() - ((vx() - myBeamSpot.x()) * px() + (vy() - myBeamSpot.y()) * py()) / pt() * pz() / p();
709 }
710 
711 // dz parameter with respect to a user-given beamSpot
712 // (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).
713 // This is a good approximation for Tracker tracks.
714 inline double TrackBase::dz(const Point &myBeamSpot) const
715 {
716  return (vz() - myBeamSpot.z()) - ((vx() - myBeamSpot.x()) * px() + (vy() - myBeamSpot.y()) * py()) / pt() * pz() / pt();
717 }
718 
719 // Track parameters with one-to-one correspondence to the covariance matrix
721 {
722  return TrackBase::ParameterVector(qoverp(), lambda(), phi(), dxy(), dsz());
723 }
724 
725 // return track covariance matrix
727 {
729  fill(m);
730  return m;
731 }
732 
733 // i-th parameter ( i = 0, ... 4 )
734 inline double TrackBase::parameter(int i) const
735 {
736  return parameters()[i];
737 }
738 
739 // (i,j)-th element of covariance matrix (i, j = 0, ... 4)
740 inline double TrackBase::covariance(int i, int j) const
741 {
742  return covariance_[covIndex(i, j)];
743 }
744 
745 // error on specified element
746 inline double TrackBase::error(int i) const
747 {
748  return sqrt(covariance_[covIndex(i, i)]);
749 }
750 
751 // error on signed transverse curvature
752 inline double TrackBase::qoverpError() const
753 {
754  return error(i_qoverp);
755 }
756 
757 // error on Pt (set to 1000 TeV if charge==0 for safety)
758 inline double TrackBase::ptError() const
759 {
760  return (charge() != 0) ? sqrt(
761  pt() * pt() * p() * p() / charge() / charge() * covariance(i_qoverp, i_qoverp)
762  + 2 * pt() * p() / charge() * pz() * covariance(i_qoverp, i_lambda)
763  + pz() * pz() * covariance(i_lambda, i_lambda)) : 1.e6;
764 }
765 
766 // error on theta
767 inline double TrackBase::thetaError() const
768 {
769  return error(i_lambda);
770 }
771 
772 // error on lambda
773 inline double TrackBase::lambdaError() const
774 {
775  return error(i_lambda);
776 }
777 
778 // error on eta
779 inline double TrackBase::etaError() const
780 {
781  return error(i_lambda) * p() / pt();
782 }
783 
784 // error on phi
785 inline double TrackBase::phiError() const
786 {
787  return error(i_phi);
788 }
789 
790 // error on dxy
791 inline double TrackBase::dxyError() const
792 {
793  return error(i_dxy);
794 }
795 
796 // error on d0
797 inline double TrackBase::d0Error() const
798 {
799  return error(i_dxy);
800 }
801 
802 // error on dsz
803 inline double TrackBase::dszError() const
804 {
805  return error(i_dsz);
806 }
807 
808 // error on dz
809 inline double TrackBase::dzError() const
810 {
811  return error(i_dsz) * p() / pt();
812 }
813 
814 // number of valid hits found
815 inline unsigned short TrackBase::numberOfValidHits() const
816 {
818 }
819 
820 // number of cases where track crossed a layer without getting a hit.
821 inline unsigned short TrackBase::numberOfLostHits() const
822 {
824 }
825 
826 // fraction of valid hits on the track
827 inline double TrackBase::validFraction() const
828 {
833 
834  if ((valid + lost + lostIn + lostOut) == 0) {
835  return -1;
836  }
837 
838  return valid / (double)(valid + lost + lostIn + lostOut);
839 }
840 
841 //Track algorithm
843 {
844  algorithm_ = a;
845  algoMask_.reset();
847 }
848 
850 {
852  algoMask_.set(a);
853 }
854 
855 
856 
857 inline int TrackBase::qualityMask() const
858 {
859  return quality_;
860 }
861 
862 inline void TrackBase::setQualityMask(int qualMask)
863 {
864  quality_ = qualMask;
865 }
866 
867 inline void TrackBase::setNLoops(signed char value)
868 {
869  nLoops_ = value;
870 }
871 
872 inline bool TrackBase::isLooper() const
873 {
874  return (nLoops_ > 0);
875 }
876 
877 inline signed char TrackBase::nLoops() const
878 {
879  return nLoops_;
880 }
881 
882 } // namespace reco
883 
884 #endif
885 
double qoverp() const
q / p
Definition: TrackBase.h:568
bool appendMuonHitPattern(const DetId &id, TrackingRecHit::Type hitType)
Definition: TrackBase.h:464
double p() const
momentum vector magnitude
Definition: TrackBase.h:610
uint8_t stopReason_
Stop Reason.
Definition: TrackBase.h:441
float chi2_
chi-squared
Definition: TrackBase.h:410
void setQualityMask(int qualMask)
Definition: TrackBase.h:862
const Point & referencePoint() const
Reference point on the track.
Definition: TrackBase.h:676
int i
Definition: DBlmapReader.cc:9
double d0Error() const
error on d0
Definition: TrackBase.h:797
void setQuality(const TrackQuality)
Definition: TrackBase.h:518
static std::string qualityName(TrackQuality)
Definition: TrackBase.h:527
unsigned int index
index type
Definition: TrackBase.h:95
bool isLooper() const
Definition: TrackBase.h:872
bool appendHits(const I &begin, const I &end, const TrackerTopology &ttopo)
Definition: HitPattern.h:505
static index covIndex(index i, index j)
covariance matrix index in array
Definition: TrackBase.h:485
uint8_t quality_
track quality
Definition: TrackBase.h:435
double validFraction() const
fraction of valid hits on the track
Definition: TrackBase.h:827
uint8_t originalAlgorithm_
track algorithm
Definition: TrackBase.h:431
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
Definition: TrackBase.h:592
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:556
TrackBase()
default constructor
Definition: TrackBase.cc:69
TrackQuality
track quality
Definition: TrackBase.h:151
double theta() const
polar angle
Definition: TrackBase.h:574
double dxyError() const
error on dxy
Definition: TrackBase.h:791
char charge_
electric charge
Definition: TrackBase.h:425
int numberOfValidHits() const
Definition: HitPattern.h:823
Point vertex_
innermost (reference) point on track
Definition: TrackBase.h:413
uint8_t stopReason() const
Definition: TrackBase.h:399
double etaError() const
error on eta
Definition: TrackBase.h:779
#define M_PI_2
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:640
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
Definition: TrackBase.h:821
ErrorD< N >::type type
Definition: Error.h:33
math::Vector< dimension >::type ParameterVector
parameter vector
Definition: TrackBase.h:74
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:622
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:670
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:598
signed char nLoops_
number of loops made during the building of the trajectory of a looper particle
Definition: TrackBase.h:438
TrackAlgorithm
track algorithm
Definition: TrackBase.h:99
int numberOfLostTrackerHits(HitCategory category) const
Definition: HitPattern.h:907
TrackAlgorithm algo() const
Definition: TrackBase.h:492
void setNLoops(signed char value)
Definition: TrackBase.h:867
void setOriginalAlgorithm(const TrackAlgorithm a)
Definition: TrackBase.h:849
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:682
double dszError() const
error on dsz
Definition: TrackBase.h:803
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:646
static const std::string qualityNames[]
Definition: TrackBase.h:164
void setStopReason(uint8_t value)
Definition: TrackBase.h:397
fixed size vector
Definition: Vector.h:25
bool appendTrackerHitPattern(uint16_t subdet, uint16_t layer, uint16_t stereo, TrackingRecHit::Type hitType)
Definition: TrackBase.h:460
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:544
std::bitset< algoSize > algoMask_
algo mask, bit set for the algo where it was reconstructed + each algo a track was found overlapping ...
Definition: TrackBase.h:419
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:550
CovarianceMatrix covariance() const
return track covariance matrix
Definition: TrackBase.h:726
T sqrt(T t)
Definition: SSEVec.h:18
double pt() const
track transverse momentum
Definition: TrackBase.h:616
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
Definition: TrackBase.h:758
double phiError() const
error on phi
Definition: TrackBase.h:785
int qualityMask() const
Definition: TrackBase.h:857
int j
Definition: DBlmapReader.cc:9
bool appendHit(const TrackingRecHit &hit, const TrackerTopology &ttopo)
Definition: HitPattern.cc:189
double lambda() const
Lambda angle.
Definition: TrackBase.h:580
const std::complex< double > I
Definition: I.h:8
double error(int i) const
error on specified element
Definition: TrackBase.h:746
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:815
void resetHitPattern()
Sets HitPattern as empty.
Definition: TrackBase.h:468
#define end
Definition: vmac.h:37
math::XYZPoint Point
point in the space
Definition: TrackBase.h:83
void setAlgoMask(AlgoMask a)
Definition: TrackBase.h:361
bool appendTrackerHit(uint16_t subdet, uint16_t layer, uint16_t stereo, TrackingRecHit::Type hitType)
Definition: HitPattern.cc:265
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:634
double parameter(int i) const
i-th parameter ( i = 0, ... 4 )
Definition: TrackBase.h:734
double qoverpError() const
error on signed transverse curvature
Definition: TrackBase.h:752
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...
Definition: TrackBase.h:604
double dzError() const
error on dz
Definition: TrackBase.h:809
bool isAlgoInMask(TrackAlgorithm a) const
Definition: TrackBase.h:365
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:664
Definition: DetId.h:18
TrackAlgorithm originalAlgo() const
Definition: TrackBase.h:496
std::bitset< algoSize > AlgoMask
algo mask
Definition: TrackBase.h:146
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:125
AlgoMask algoMask() const
Definition: TrackBase.h:363
virtual ~TrackBase()
virtual destructor
Definition: TrackBase.cc:115
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:445
signed char nLoops() const
Definition: TrackBase.h:877
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::string algoName() const
Definition: TrackBase.h:503
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
double b
Definition: hdecay.h:120
float ndof_
number of degrees of freedom
Definition: TrackBase.h:422
bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology &ttopo)
append a single hit to the HitPattern
Definition: TrackBase.h:455
static const std::string algoNames[]
Definition: TrackBase.h:148
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:505
int numberOfLostHits(HitCategory category) const
Definition: HitPattern.h:902
int numberOfValidTrackerHits() const
Definition: HitPattern.h:828
void setAlgorithm(const TrackAlgorithm a)
Track algorithm.
Definition: TrackBase.h:842
ParameterVector parameters() const
Track parameters with one-to-one correspondence to the covariance matrix.
Definition: TrackBase.h:720
double lambdaError() const
error on lambda
Definition: TrackBase.h:773
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:658
float covariance_[covarianceSize]
perigee 5x5 covariance matrix
Definition: TrackBase.h:407
#define begin
Definition: vmac.h:30
HitPattern hitPattern_
hit pattern
Definition: TrackBase.h:404
double a
Definition: hdecay.h:121
CovarianceMatrix & fill(CovarianceMatrix &v) const
fill SMatrix
Definition: TrackBase.cc:120
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:137
Vector momentum_
momentum vector at innermost point
Definition: TrackBase.h:416
int charge() const
track electric charge
Definition: TrackBase.h:562
const Point & position() const
position
Definition: BeamSpot.h:62
unsigned long long algoMaskUL() const
Definition: TrackBase.h:364
uint8_t algorithm_
track algorithm
Definition: TrackBase.h:428
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:586
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:80
bool appendHits(const C &c, const TrackerTopology &ttopo)
append hit patterns from vector of hit references
Definition: TrackBase.h:480
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:628
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:652
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix
Definition: TrackBase.h:77
double thetaError() const
error on theta
Definition: TrackBase.h:767
bool appendMuonHit(const DetId &id, TrackingRecHit::Type hitType)
Definition: HitPattern.cc:269