CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Track.h
Go to the documentation of this file.
1 #ifndef TrackReco_Track_h
2 #define TrackReco_Track_h
3 
23 
24 namespace reco {
25 
26  class Track : public TrackBase {
27  public:
29  Track() { }
31  virtual ~Track();
33  Track( double chi2, double ndof, const Point & referencePoint,
34  const Vector & momentum, int charge, const CovarianceMatrix &,
37  bool outerOk() const { return extra_->outerOk(); }
39  bool innerOk() const { return extra_->innerOk(); }
41  const math::XYZPoint & innerPosition() const { return extra_->innerPosition(); }
42 
44  const math::XYZVector & innerMomentum() const { return extra_->innerMomentum(); }
46  const math::XYZPoint & outerPosition() const { return extra_->outerPosition(); }
48  const math::XYZVector & outerMomentum() const { return extra_->outerMomentum(); }
50  CovarianceMatrix outerStateCovariance() const { return extra_->outerStateCovariance(); }
52  CovarianceMatrix innerStateCovariance() const { return extra_->innerStateCovariance(); }
54  CovarianceMatrix & fillOuter( CovarianceMatrix & v ) const { return extra_->fillOuter( v ); }
56  CovarianceMatrix & fillInner( CovarianceMatrix & v ) const { return extra_->fillInner( v ); }
58  unsigned int outerDetId() const { return extra_->outerDetId(); }
60  unsigned int innerDetId() const { return extra_->innerDetId(); }
62  trackingRecHit_iterator recHitsBegin() const { return extra_->recHitsBegin(); }
64  trackingRecHit_iterator recHitsEnd() const { return extra_->recHitsEnd(); }
66  TrackingRecHitRef recHit( size_t i ) const { return extra_->recHit( i ); }
68  size_t recHitsSize() const { return extra_->recHitsSize(); }
70  double outerPx() const { return extra_->outerPx(); }
72  double outerPy() const { return extra_->outerPy(); }
74  double outerPz() const { return extra_->outerPz(); }
76  double outerX() const { return extra_->outerX(); }
78  double outerY() const { return extra_->outerY(); }
80  double outerZ() const { return extra_->outerZ(); }
82  double outerP() const { return extra_->outerP(); }
84  double outerPt() const { return extra_->outerPt(); }
86  double outerPhi() const { return extra_->outerPhi(); }
88  double outerEta() const { return extra_->outerEta(); }
90  double outerTheta() const { return extra_->outerTheta(); }
92  double outerRadius() const { return extra_->outerRadius(); }
94  void setExtra( const TrackExtraRef & ref ) { extra_ = ref; }
96  const TrackExtraRef & extra() const { return extra_; }
97 
99  unsigned short found() const { return numberOfValidHits(); }
101  unsigned short lost() const {return numberOfLostHits(); }
102 
104  PropagationDirection seedDirection() const {return extra_->seedDirection();}
105 
111  edm::RefToBase<TrajectorySeed> seedRef() const { return extra_->seedRef(); }
112 
116  const TrackResiduals &residuals () const { return extra_->residuals(); }
119  double residualX (int position) const;
120  double residualY (int position) const;
121 
122  private:
125 
126  };
127 
128 }
129 
130 #endif
int i
Definition: DBlmapReader.cc:9
unsigned short lost() const
Number of lost (=invalid) hits on track.
Definition: Track.h:101
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:148
double outerPy() const
y coordinate of momentum vector at the outermost hit position
Definition: Track.h:72
const TrackExtraRef & extra() const
reference to &quot;extra&quot; object
Definition: Track.h:96
TrackExtraRef extra_
Reference to additional information stored only on RECO.
Definition: Track.h:124
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:68
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: Track.h:56
double outerP() const
magnitude of momentum vector at the outermost hit position
Definition: Track.h:82
bool innerOk() const
return true if the innermost hit is valid
Definition: Track.h:39
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
Definition: TrackBase.h:232
PropagationDirection
const math::XYZPoint & outerPosition() const
position of the outermost hit
Definition: Track.h:46
const Point & referencePoint() const
Reference point on the track.
Definition: TrackBase.h:151
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
Track()
default constructor
Definition: Track.h:29
TrackAlgorithm
track algorithm
Definition: TrackBase.h:80
double outerZ() const
z coordinate of the outermost hit position
Definition: Track.h:80
const math::XYZPoint & innerPosition() const
position of the innermost hit
Definition: Track.h:41
virtual ~Track()
virtual destructor
Definition: Track.cc:11
fixed size vector
Definition: Vector.h:22
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:105
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:107
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: Track.h:50
math::XYZPoint Point
double residualX(int position) const
Definition: Track.cc:14
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
Definition: Track.h:58
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:230
double outerX() const
x coordinate of the outermost hit position
Definition: Track.h:76
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:62
double outerPz() const
z coordinate of momentum vector at the outermost hit position
Definition: Track.h:74
double outerPt() const
transverse momentum at the outermost hit position
Definition: Track.h:84
double outerRadius() const
polar radius of the outermost hit position
Definition: Track.h:92
double outerEta() const
pseudorapidity of the momentum vector at the outermost hit position
Definition: Track.h:88
edm::RefToBase< TrajectorySeed > seedRef() const
Definition: Track.h:111
void setExtra(const TrackExtraRef &ref)
set reference to &quot;extra&quot; object
Definition: Track.h:94
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
Definition: Track.h:48
bool outerOk() const
return true if the outermost hit is valid
Definition: Track.h:37
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
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition: Track.h:52
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:375
double residualY(int position) const
Definition: Track.cc:19
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:44
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:66
unsigned short found() const
Number of valid hits on track.
Definition: Track.h:99
double outerY() const
y coordinate of the outermost hit position
Definition: Track.h:78
const TrackResiduals & residuals() const
Definition: Track.h:116
PropagationDirection seedDirection() const
direction of how the hits were sorted in the original seed
Definition: Track.h:104
int charge() const
track electric charge
Definition: TrackBase.h:111
double outerTheta() const
polar angle of the momentum vector at the outermost hit position
Definition: Track.h:90
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition: Track.h:60
double outerPhi() const
azimuthal angle of the momentum vector at the outermost hit position
Definition: Track.h:86
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: Track.h:54
double outerPx() const
x coordinate of momentum vector at the outermost hit position
Definition: Track.h:70
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:64