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 
24 
25 namespace reco
26 {
27 
28 class Track : public TrackBase
29 {
30 
31 public:
32 
34  Track() { }
35 
37  virtual ~Track();
38 
40  Track(double chi2, double ndof, const Point & referencePoint,
41  const Vector & momentum, int charge, const CovarianceMatrix &,
43 
45  bool outerOk() const {
46  return extra_->outerOk();
47  }
48 
50  bool innerOk() const {
51  return extra_->innerOk();
52  }
53 
55  const math::XYZPoint & innerPosition() const {
56  return extra_->innerPosition();
57  }
58 
60  const math::XYZVector & innerMomentum() const {
61  return extra_->innerMomentum();
62  }
63 
65  const math::XYZPoint & outerPosition() const {
66  return extra_->outerPosition();
67  }
68 
70  const math::XYZVector & outerMomentum() const {
71  return extra_->outerMomentum();
72  }
73 
76  return extra_->outerStateCovariance();
77  }
78 
81  return extra_->innerStateCovariance();
82  }
83 
86  return extra_->fillOuter(v);
87  }
88 
90  return extra_->fillInner(v);
91  }
92 
94  unsigned int outerDetId() const {
95  return extra_->outerDetId();
96  }
97 
99  unsigned int innerDetId() const {
100  return extra_->innerDetId();
101  }
102 
105  return extra_->recHitsBegin();
106  }
107 
110  return extra_->recHitsEnd();
111  }
112 
114  TrackingRecHitRef recHit(size_t i) const {
115  return extra_->recHit(i);
116  }
117 
119  size_t recHitsSize() const {
120  return extra_->recHitsSize();
121  }
122 
124  double outerPx() const {
125  return extra_->outerPx();
126  }
127 
129  double outerPy() const {
130  return extra_->outerPy();
131  }
132 
134  double outerPz() const {
135  return extra_->outerPz();
136  }
137 
139  double outerX() const {
140  return extra_->outerX();
141  }
142 
144  double outerY() const {
145  return extra_->outerY();
146  }
147 
149  double outerZ() const {
150  return extra_->outerZ();
151  }
152 
154  double outerP() const {
155  return extra_->outerP();
156  }
157 
159  double outerPt() const {
160  return extra_->outerPt();
161  }
162 
164  double outerPhi() const {
165  return extra_->outerPhi();
166  }
167 
169  double outerEta() const {
170  return extra_->outerEta();
171  }
172 
174  double outerTheta() const {
175  return extra_->outerTheta();
176  }
177 
179  double outerRadius() const {
180  return extra_->outerRadius();
181  }
182 
184  void setExtra(const TrackExtraRef & ref) {
185  extra_ = ref;
186  }
187 
189  const TrackExtraRef & extra() const {
190  return extra_;
191  }
192 
194  unsigned short found() const {
195  return numberOfValidHits();
196  }
197 
199  unsigned short lost() const {
200  return numberOfLostHits();
201  }
202 
205  return extra_->seedDirection();
206  }
207 
214  return extra_->seedRef();
215  }
216 
220  const TrackResiduals &residuals() const {
221  return extra_->residuals();
222  }
223 
226  double residualX(int position) const;
227  double residualY(int position) const;
228 
229 private:
232 
233 };
234 
235 }
236 
237 #endif
238 
const Point & referencePoint() const
Reference point on the track.
Definition: TrackBase.h:668
int i
Definition: DBlmapReader.cc:9
unsigned short lost() const
Number of lost (=invalid) hits on track.
Definition: Track.h:199
double outerPy() const
y coordinate of momentum vector at the outermost hit position
Definition: Track.h:129
const TrackExtraRef & extra() const
reference to "extra" object
Definition: Track.h:189
TrackExtraRef extra_
Reference to additional information stored only on RECO.
Definition: Track.h:231
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:119
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
Definition: Track.h:89
double outerP() const
magnitude of momentum vector at the outermost hit position
Definition: Track.h:154
bool innerOk() const
return true if the innermost hit is valid
Definition: Track.h:50
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
Definition: TrackBase.h:813
PropagationDirection
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:662
const math::XYZPoint & outerPosition() const
position of the outermost hit
Definition: Track.h:65
Track()
default constructor
Definition: Track.h:34
TrackAlgorithm
track algorithm
Definition: TrackBase.h:99
double outerZ() const
z coordinate of the outermost hit position
Definition: Track.h:149
const math::XYZPoint & innerPosition() const
position of the innermost hit
Definition: Track.h:55
virtual ~Track()
virtual destructor
Definition: Track.cc:13
fixed size vector
Definition: Vector.h:31
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:536
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:542
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: Track.h:75
math::XYZPoint Point
double residualX(int position) const
Definition: Track.cc:18
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
Definition: Track.h:94
#define CMS_THREAD_SAFE
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:807
double outerX() const
x coordinate of the outermost hit position
Definition: Track.h:139
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:104
double outerPz() const
z coordinate of momentum vector at the outermost hit position
Definition: Track.h:134
double outerPt() const
transverse momentum at the outermost hit position
Definition: Track.h:159
double outerRadius() const
polar radius of the outermost hit position
Definition: Track.h:179
double outerEta() const
pseudorapidity of the momentum vector at the outermost hit position
Definition: Track.h:169
edm::RefToBase< TrajectorySeed > seedRef() const
Definition: Track.h:213
void setExtra(const TrackExtraRef &ref)
set reference to &quot;extra&quot; object
Definition: Track.h:184
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
Definition: Track.h:70
bool outerOk() const
return true if the outermost hit is valid
Definition: Track.h:45
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:80
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:497
double residualY(int position) const
Definition: Track.cc:23
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:60
static int position[264][3]
Definition: ReadPGInfo.cc:509
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:114
unsigned short found() const
Number of valid hits on track.
Definition: Track.h:194
double outerY() const
y coordinate of the outermost hit position
Definition: Track.h:144
const TrackResiduals & residuals() const
Definition: Track.h:220
PropagationDirection seedDirection() const
direction of how the hits were sorted in the original seed
Definition: Track.h:204
int charge() const
track electric charge
Definition: TrackBase.h:554
double outerTheta() const
polar angle of the momentum vector at the outermost hit position
Definition: Track.h:174
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition: Track.h:99
double outerPhi() const
azimuthal angle of the momentum vector at the outermost hit position
Definition: Track.h:164
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: Track.h:85
double outerPx() const
x coordinate of momentum vector at the outermost hit position
Definition: Track.h:124
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:109