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 }
reco::TrackBase::index
unsigned int index
index type
Definition: TrackBase.h:86
mps_fire.i
i
Definition: mps_fire.py:355
reco::GsfTrack::GsfTrack
GsfTrack()
default constructor
Definition: GsfTrack.cc:4
reco::GsfTrack::momentumMode_
Vector momentumMode_
momentum vector from mode
Definition: GsfTrack.h:108
reco::GsfTrack::CovarianceMatrixMode
math::Error< dimensionMode >::type CovarianceMatrixMode
3 parameter covariance matrix (momentum part) from mode
Definition: GsfTrack.h:21
CovarianceMatrix
Definition: CovarianceMatrix.h:27
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
findQualityFiles.v
v
Definition: findQualityFiles.py:179
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
reco::GsfTrack::covarianceMode
CovarianceMatrixMode covarianceMode() const
return track covariance matrix from mode
Definition: GsfTrack.h:65
training_settings.idx
idx
Definition: training_settings.py:16
ndof
Definition: HIMultiTrackSelector.h:49
reco::Track
Definition: Track.h:27
reco::GsfTrack::covarianceMode_
float covarianceMode_[covarianceSizeMode]
3x3 momentum part of covariance (in q/p, lambda, phi)
Definition: GsfTrack.h:110
reco::GsfTrack::chargeMode_
char chargeMode_
electric charge from mode
Definition: GsfTrack.h:106
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
reco::GsfTrack::chargeMode
int chargeMode() const
track electric charge from mode
Definition: GsfTrack.h:37
GsfTrack.h
reco::GsfTrack::fill
CovarianceMatrixMode & fill(CovarianceMatrixMode &v) const
fill 3x3 SMatrix
Definition: GsfTrack.cc:34
reco::GsfTrack::setMode
void setMode(int chargeMode, const Vector &momentumMode, const CovarianceMatrixMode &covarianceMode)
set mode parameters
Definition: GsfTrack.cc:24
reco::GsfTrack::dimensionMode
Definition: GsfTrack.h:15
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
reco::GsfTrack::momentumMode
const Vector & momentumMode() const
track momentum vector from mode
Definition: GsfTrack.h:60
reco::TrackBase::Vector
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:77