CMS 3D CMS Logo

GsfTrack.cc
Go to the documentation of this file.
2 using namespace reco;
3 
5  chargeMode_ = 0;
6  momentumMode_ = Vector(0., 0., 0.);
7  typedef unsigned int index;
8  index idx = 0;
9  for (index i = 0; i < dimensionMode; ++i)
10  for (index j = 0; j <= i; ++j)
11  covarianceMode_[idx++] = 0.;
12 }
13 
15  double chi2, double ndof, const Point& vertex, const Vector& momentum, int charge, const CovarianceMatrix& cov)
16  : Track(chi2, ndof, vertex, momentum, charge, cov), chargeMode_(charge), momentumMode_(momentum) {
17  typedef unsigned int index;
18  index idx = 0;
19  for (index i = 0; i < dimensionMode; ++i)
20  for (index j = 0; j <= i; ++j)
21  covarianceMode_[idx++] = cov(i, j);
22 }
23 
24 void GsfTrack::setMode(int chargeMode, const Vector& momentumMode, const CovarianceMatrixMode& covarianceMode) {
27  typedef unsigned int index;
28  index idx = 0;
29  for (index i = 0; i < dimensionMode; ++i)
30  for (index j = 0; j <= i; ++j)
32 }
33 
35  typedef unsigned int index;
36  index idx = 0;
37  for (index i = 0; i < dimensionMode; ++i)
38  for (index j = 0; j <= i; ++j)
39  v(i, j) = covarianceMode_[idx++];
40  return v;
41 }
char chargeMode_
electric charge from mode
Definition: GsfTrack.h:106
unsigned int index
index type
Definition: TrackBase.h:86
math::Error< dimensionMode >::type CovarianceMatrixMode
3 parameter covariance matrix (momentum part) from mode
Definition: GsfTrack.h:21
CovarianceMatrixMode covarianceMode() const
return track covariance matrix from mode
Definition: GsfTrack.h:65
GsfTrack()
default constructor
Definition: GsfTrack.cc:4
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float charge(ConstView const &tracks, int32_t i)
Definition: TracksSoA.h:73
CovarianceMatrixMode & fill(CovarianceMatrixMode &v) const
fill 3x3 SMatrix
Definition: GsfTrack.cc:34
void setMode(int chargeMode, const Vector &momentumMode, const CovarianceMatrixMode &covarianceMode)
set mode parameters
Definition: GsfTrack.cc:24
Vector momentumMode_
momentum vector from mode
Definition: GsfTrack.h:108
float covarianceMode_[covarianceSizeMode]
3x3 momentum part of covariance (in q/p, lambda, phi)
Definition: GsfTrack.h:110
const Vector & momentumMode() const
track momentum vector from mode
Definition: GsfTrack.h:60
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:77
int chargeMode() const
track electric charge from mode
Definition: GsfTrack.h:37