CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
CTPPSPixelLocalTrack Class Reference

#include <CTPPSPixelLocalTrack.h>

Public Types

typedef math::Error< dimension >::type CovarianceMatrix
 
typedef math::Vector< dimension >::type ParameterVector
 covariance matrix size More...
 
enum  TrackPar { x0 = 0, y0 = 1, tx = 2, ty = 3 }
 

Public Member Functions

void addHit (unsigned int detId, const CTPPSPixelFittedRecHit &hit)
 
 CTPPSPixelLocalTrack ()
 
 CTPPSPixelLocalTrack (float z0, const ParameterVector &track_params_vector, const CovarianceMatrix &par_covariance_matrix, float chiSquared)
 
float getChiSquared () const
 
float getChiSquaredOverNDF () const
 
const CovarianceMatrixgetCovarianceMatrix () const
 
GlobalVector getDirectionVector () const
 
const edm::DetSetVector< CTPPSPixelFittedRecHit > & getHits () const
 
int getNDF () const
 
const ParameterVectorgetParameterVector () const
 
GlobalPoint getTrackCentrePoint ()
 
GlobalPoint getTrackPoint (float z) const
 returns the point from which the track is passing by at the selected z More...
 
float getTx () const
 
float getTxSigma () const
 
float getTy () const
 
float getTySigma () const
 
float getX0 () const
 
float getX0Sigma () const
 
float getX0Variance () const
 
float getY0 () const
 
float getY0Sigma () const
 
float getY0Variance () const
 
float getZ0 () const
 
bool isValid () const
 
bool operator< (const CTPPSPixelLocalTrack &r)
 
void setValid (bool valid)
 
void setZ0 (float z0)
 
AlgebraicSymMatrix22 trackPointInterpolationCovariance (float z) const
 
 ~CTPPSPixelLocalTrack ()
 

Static Public Attributes

static int covarianceSize = dimension * dimension
 
static int dimension = 4
 

Private Attributes

float chiSquared_
 fit chi^2 More...
 
int numberOfPointUsedForFit_
 
CovarianceMatrix par_covariance_matrix_
 
edm::DetSetVector< CTPPSPixelFittedRecHittrack_hits_vector_
 
ParameterVector track_params_vector_
 track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ... More...
 
bool valid_
 fit valid? More...
 
float z0_
 

Detailed Description

Definition at line 69 of file CTPPSPixelLocalTrack.h.

Member Typedef Documentation

Definition at line 78 of file CTPPSPixelLocalTrack.h.

covariance matrix size

Definition at line 79 of file CTPPSPixelLocalTrack.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

CTPPSPixelLocalTrack::CTPPSPixelLocalTrack ( )
inline

Definition at line 84 of file CTPPSPixelLocalTrack.h.

CTPPSPixelLocalTrack::CTPPSPixelLocalTrack ( float  z0,
const ParameterVector track_params_vector,
const CovarianceMatrix par_covariance_matrix,
float  chiSquared 
)

Definition at line 29 of file CTPPSPixelLocalTrack.cc.

31  : track_params_vector_(track_params_vector), z0_(z0), par_covariance_matrix_(par_covariance_matrix),
32  chiSquared_(chiSquared), valid_(true), numberOfPointUsedForFit_(0)
33 {
34 
35 }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
CovarianceMatrix par_covariance_matrix_
CTPPSPixelLocalTrack::~CTPPSPixelLocalTrack ( )
inline

Definition at line 91 of file CTPPSPixelLocalTrack.h.

91 {}

Member Function Documentation

void CTPPSPixelLocalTrack::addHit ( unsigned int  detId,
const CTPPSPixelFittedRecHit hit 
)
inline

Definition at line 94 of file CTPPSPixelLocalTrack.h.

References CTPPSPixelFittedRecHit::getIsUsedForFit().

Referenced by RPixPlaneCombinatoryTracking::findTracks(), and RPixPlaneCombinatoryTracking::fitTrack().

95  {
98  }
void push_back(const T &t)
Definition: DetSet.h:68
reference find_or_insert(det_id_type id)
Definition: DetSetVector.h:254
edm::DetSetVector< CTPPSPixelFittedRecHit > track_hits_vector_
float CTPPSPixelLocalTrack::getChiSquared ( ) const
inline

Definition at line 131 of file CTPPSPixelLocalTrack.h.

131 { return chiSquared_; }
float CTPPSPixelLocalTrack::getChiSquaredOverNDF ( ) const
inline
const CovarianceMatrix& CTPPSPixelLocalTrack::getCovarianceMatrix ( ) const
inline

Definition at line 127 of file CTPPSPixelLocalTrack.h.

127  {
128  return par_covariance_matrix_;
129  }
CovarianceMatrix par_covariance_matrix_
GlobalVector CTPPSPixelLocalTrack::getDirectionVector ( ) const
inline

Definition at line 117 of file CTPPSPixelLocalTrack.h.

References Vector3DBase< T, FrameTag >::unit().

Referenced by RPixPlaneCombinatoryTracking::calculatePointOnDetector().

118  {
119  GlobalVector vect(getTx(), getTy(), 1);
120  return vect.unit();
121  }
const edm::DetSetVector<CTPPSPixelFittedRecHit>& CTPPSPixelLocalTrack::getHits ( ) const
inline

Definition at line 93 of file CTPPSPixelLocalTrack.h.

Referenced by RPixPlaneCombinatoryTracking::findTracks().

93 { return track_hits_vector_; }
edm::DetSetVector< CTPPSPixelFittedRecHit > track_hits_vector_
int CTPPSPixelLocalTrack::getNDF ( ) const
inline
const ParameterVector& CTPPSPixelLocalTrack::getParameterVector ( ) const
inline

Definition at line 123 of file CTPPSPixelLocalTrack.h.

Referenced by RPixPlaneCombinatoryTracking::calculatePointOnDetector().

123  {
124  return track_params_vector_;
125  }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
GlobalPoint CTPPSPixelLocalTrack::getTrackCentrePoint ( )
inline

Definition at line 150 of file CTPPSPixelLocalTrack.h.

References z.

151  {
152  return GlobalPoint(track_params_vector_[TrackPar::x0], track_params_vector_[TrackPar::y0], z0_);
153  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
GlobalPoint CTPPSPixelLocalTrack::getTrackPoint ( float  z) const
inline

returns the point from which the track is passing by at the selected z

Definition at line 141 of file CTPPSPixelLocalTrack.h.

142  {
143  float delta_z = z - z0_;
144  return GlobalPoint(
145  track_params_vector_[TrackPar::x0] + track_params_vector_[TrackPar::tx] * delta_z,
146  track_params_vector_[TrackPar::y0] + track_params_vector_[TrackPar::ty] * delta_z,
147  z);
148  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float CTPPSPixelLocalTrack::getTx ( ) const
inline

Definition at line 111 of file CTPPSPixelLocalTrack.h.

111 { return track_params_vector_[TrackPar::tx]; }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float CTPPSPixelLocalTrack::getTxSigma ( ) const
inline

Definition at line 112 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

112 { return sqrt(par_covariance_matrix_[TrackPar::tx][TrackPar::tx]); }
T sqrt(T t)
Definition: SSEVec.h:18
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getTy ( ) const
inline

Definition at line 114 of file CTPPSPixelLocalTrack.h.

114 { return track_params_vector_[TrackPar::ty]; }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float CTPPSPixelLocalTrack::getTySigma ( ) const
inline

Definition at line 115 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

115 { return sqrt(par_covariance_matrix_[TrackPar::ty][TrackPar::ty]); }
T sqrt(T t)
Definition: SSEVec.h:18
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getX0 ( ) const
inline

Definition at line 100 of file CTPPSPixelLocalTrack.h.

100 { return track_params_vector_[TrackPar::x0]; }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float CTPPSPixelLocalTrack::getX0Sigma ( ) const
inline

Definition at line 101 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

101 { return sqrt(par_covariance_matrix_[TrackPar::x0][TrackPar::x0]); }
T sqrt(T t)
Definition: SSEVec.h:18
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getX0Variance ( ) const
inline

Definition at line 102 of file CTPPSPixelLocalTrack.h.

102 { return par_covariance_matrix_[TrackPar::x0][TrackPar::x0]; }
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getY0 ( ) const
inline

Definition at line 104 of file CTPPSPixelLocalTrack.h.

104 { return track_params_vector_[TrackPar::y0]; }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float CTPPSPixelLocalTrack::getY0Sigma ( ) const
inline

Definition at line 105 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

105 { return sqrt(par_covariance_matrix_[TrackPar::y0][TrackPar::y0]); }
T sqrt(T t)
Definition: SSEVec.h:18
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getY0Variance ( ) const
inline

Definition at line 106 of file CTPPSPixelLocalTrack.h.

106 { return par_covariance_matrix_[TrackPar::y0][TrackPar::y0]; }
CovarianceMatrix par_covariance_matrix_
float CTPPSPixelLocalTrack::getZ0 ( ) const
inline
bool CTPPSPixelLocalTrack::isValid ( void  ) const
inline
bool CTPPSPixelLocalTrack::operator< ( const CTPPSPixelLocalTrack r)

Definition at line 37 of file CTPPSPixelLocalTrack.cc.

References dimension, mps_fire::i, track_params_vector_, and z0_.

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 }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
void CTPPSPixelLocalTrack::setValid ( bool  valid)
inline

Definition at line 159 of file CTPPSPixelLocalTrack.h.

References operator<(), alignCSCRings::r, and sistrip::valid_.

Referenced by RPixPlaneCombinatoryTracking::fitTrack().

159 { valid_ = valid; }
void CTPPSPixelLocalTrack::setZ0 ( float  z0)
inline

Definition at line 109 of file CTPPSPixelLocalTrack.h.

109 { z0_ = z0; }
AlgebraicSymMatrix22 CTPPSPixelLocalTrack::trackPointInterpolationCovariance ( float  z) const

Definition at line 15 of file CTPPSPixelLocalTrack.cc.

References h, par_covariance_matrix_, and z0_.

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 }
ROOT::Math::SMatrix< double, N, M > type
Definition: Matrix.h:10
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
CovarianceMatrix par_covariance_matrix_

Member Data Documentation

float CTPPSPixelLocalTrack::chiSquared_
private

fit chi^2

Definition at line 176 of file CTPPSPixelLocalTrack.h.

int CTPPSPixelLocalTrack::covarianceSize = dimension * dimension
static

Definition at line 82 of file CTPPSPixelLocalTrack.h.

int CTPPSPixelLocalTrack::dimension = 4
static

Definition at line 77 of file CTPPSPixelLocalTrack.h.

Referenced by CTPPSPixelDQMSource::dqmBeginRun(), and operator<().

int CTPPSPixelLocalTrack::numberOfPointUsedForFit_
private

Definition at line 181 of file CTPPSPixelLocalTrack.h.

CovarianceMatrix CTPPSPixelLocalTrack::par_covariance_matrix_
private

Definition at line 173 of file CTPPSPixelLocalTrack.h.

Referenced by trackPointInterpolationCovariance().

edm::DetSetVector<CTPPSPixelFittedRecHit> CTPPSPixelLocalTrack::track_hits_vector_
private

Definition at line 164 of file CTPPSPixelLocalTrack.h.

ParameterVector CTPPSPixelLocalTrack::track_params_vector_
private

track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...

Definition at line 167 of file CTPPSPixelLocalTrack.h.

Referenced by operator<().

bool CTPPSPixelLocalTrack::valid_
private

fit valid?

Definition at line 179 of file CTPPSPixelLocalTrack.h.

float CTPPSPixelLocalTrack::z0_
private

z where x0 and y0 are evaluated. filled from TotemRPGeometry::GetRPGlobalTranslation

Definition at line 171 of file CTPPSPixelLocalTrack.h.

Referenced by operator<(), and trackPointInterpolationCovariance().