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 
16 {
18  h(0,0)=1;
19  h(1,1)=1;
20  h(0,2)=z-z0_;
21  h(1,3)=z-z0_;
22 
23  return ROOT::Math::Similarity(h,par_covariance_matrix_);
24 
25 }
26 
27 //----------------------------------------------------------------------------------------------------
28 
29 CTPPSPixelLocalTrack::CTPPSPixelLocalTrack(float z0, const ParameterVector & track_params_vector,
30  const CovarianceMatrix &par_covariance_matrix, float chiSquared)
31  : track_params_vector_(track_params_vector), z0_(z0), par_covariance_matrix_(par_covariance_matrix),
33 {
34 
35 }
36 
38 {
39  if (z0_ < r.z0_)
40  return true;
41  if (z0_ > r.z0_)
42  return false;
43 
44  for (int i = 0; i < CTPPSPixelLocalTrack::dimension; ++i)
45  {
47  return true;
49  return false;
50  }
51 
52  return false;
53 
54 }
55 
AlgebraicSymMatrix22 trackPointInterpolationCovariance(float z) const
ROOT::Math::SMatrix< double, N, M > type
Definition: Matrix.h:10
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool operator<(const CTPPSPixelLocalTrack &r)
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float float float z
math::Vector< dimension >::type ParameterVector
covariance matrix size
CovarianceMatrix par_covariance_matrix_