CMS 3D CMS Logo

CTPPSPixelLocalTrack.cc
Go to the documentation of this file.
1 /*
2  *
3 * This is a part of CTPPS offline software.
4 * Author:
5 * Fabrizio Ferro (ferro@ge.infn.it)
6 * Enrico Robutti (robutti@ge.infn.it)
7 * Fabio Ravera (fabio.ravera@cern.ch)
8 *
9 */
10 
12 
13 //----------------------------------------------------------------------------------------------------
14 
17  h(0, 0) = 1;
18  h(1, 1) = 1;
19  h(0, 2) = z - z0_;
20  h(1, 3) = z - z0_;
21 
22  return ROOT::Math::Similarity(h, par_covariance_matrix_);
23 }
24 
25 //----------------------------------------------------------------------------------------------------
26 
28  const ParameterVector &track_params_vector,
29  const CovarianceMatrix &par_covariance_matrix,
30  float chiSquared)
31  : track_params_vector_(track_params_vector),
32  z0_(z0),
33  par_covariance_matrix_(par_covariance_matrix),
34  chiSquared_(chiSquared),
35  valid_(true),
36  numberOfPointsUsedForFit_(0),
37  recoInfo_(CTPPSpixelLocalTrackReconstructionInfo::invalid) {}
38 
40  if (z0_ < r.z0_)
41  return true;
42  if (z0_ > r.z0_)
43  return false;
44 
45  for (int i = 0; i < CTPPSPixelLocalTrack::dimension; ++i) {
46  if (track_params_vector_[i] < r.track_params_vector_[i])
47  return true;
48  if (track_params_vector_[i] > r.track_params_vector_[i])
49  return false;
50  }
51 
52  return false;
53 }
CTPPSpixelLocalTrackReconstructionInfo
CTPPSpixelLocalTrackReconstructionInfo
Definition: CTPPSPixelLocalTrackRecoInfo.h:17
mps_fire.i
i
Definition: mps_fire.py:355
CTPPSPixelLocalTrack.h
detailsBasic3DVector::z
float float float z
Definition: extBasic3DVector.h:14
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
CTPPSPixelLocalTrack::dimension
static constexpr int dimension
Definition: CTPPSPixelLocalTrack.h:89
CovarianceMatrix
Definition: CovarianceMatrix.h:27
CTPPSPixelLocalTrack::z0_
float z0_
Definition: CTPPSPixelLocalTrack.h:201
sistrip::valid_
static const uint16_t valid_
Definition: Constants.h:17
CTPPSPixelLocalTrack::track_params_vector_
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
Definition: CTPPSPixelLocalTrack.h:197
math::Matrix::type
ROOT::Math::SMatrix< double, N, M > type
Definition: Matrix.h:9
DDAxes::z
CTPPSPixelLocalTrack::operator<
bool operator<(const CTPPSPixelLocalTrack &r)
Definition: CTPPSPixelLocalTrack.cc:39
h
CTPPSPixelLocalTrack::ParameterVector
math::Vector< dimension >::type ParameterVector
covariance matrix size
Definition: CTPPSPixelLocalTrack.h:91
HLTMuonOfflineAnalyzer_cfi.z0
z0
Definition: HLTMuonOfflineAnalyzer_cfi.py:98
CTPPSPixelLocalTrack::par_covariance_matrix_
CovarianceMatrix par_covariance_matrix_
Definition: CTPPSPixelLocalTrack.h:203
funct::true
true
Definition: Factorize.h:173
CTPPSPixelLocalTrack::CTPPSPixelLocalTrack
CTPPSPixelLocalTrack()
Definition: CTPPSPixelLocalTrack.h:96
CTPPSPixelLocalTrack
Definition: CTPPSPixelLocalTrack.h:84
CTPPSPixelLocalTrack::trackPointInterpolationCovariance
AlgebraicSymMatrix22 trackPointInterpolationCovariance(float z) const
Definition: CTPPSPixelLocalTrack.cc:15
alignCSCRings.r
r
Definition: alignCSCRings.py:93
AlgebraicSymMatrix22
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
Definition: AlgebraicROOTObjects.h:20