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
 
unsigned short getNumberOfPointsUsedForFit () const
 
const ParameterVectorgetParameterVector () const
 
CTPPSpixelLocalTrackReconstructionInfo getRecoInfo () 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 setRecoInfo (CTPPSpixelLocalTrackReconstructionInfo recoInfo)
 
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 numberOfPointsUsedForFit_
 number of points used for the track fit More...
 
CovarianceMatrix par_covariance_matrix_
 
CTPPSpixelLocalTrackReconstructionInfo recoInfo_
 
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 71 of file CTPPSPixelLocalTrack.h.

Member Typedef Documentation

Definition at line 80 of file CTPPSPixelLocalTrack.h.

covariance matrix size

Definition at line 81 of file CTPPSPixelLocalTrack.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

CTPPSPixelLocalTrack::CTPPSPixelLocalTrack ( )
inline

Definition at line 86 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),
33 {
34 
35 }
int numberOfPointsUsedForFit_
number of points used for the track fit
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
CTPPSpixelLocalTrackReconstructionInfo recoInfo_
CovarianceMatrix par_covariance_matrix_
CTPPSPixelLocalTrack::~CTPPSPixelLocalTrack ( )
inline

Definition at line 93 of file CTPPSPixelLocalTrack.h.

93 {}

Member Function Documentation

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

Definition at line 96 of file CTPPSPixelLocalTrack.h.

References CTPPSPixelFittedRecHit::getIsUsedForFit().

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

97  {
100  }
void push_back(const T &t)
Definition: DetSet.h:68
int numberOfPointsUsedForFit_
number of points used for the track fit
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 133 of file CTPPSPixelLocalTrack.h.

133 { return chiSquared_; }
float CTPPSPixelLocalTrack::getChiSquaredOverNDF ( ) const
inline

Definition at line 135 of file CTPPSPixelLocalTrack.h.

References pat::helper::ParametrizationHelper::dimension().

Referenced by RPixPlaneCombinatoryTracking::findTracks().

135  {
136  if(numberOfPointsUsedForFit_<= dimension/2) return -999.;
137  else return chiSquared_ / (2*numberOfPointsUsedForFit_ - dimension);
138  }
int numberOfPointsUsedForFit_
number of points used for the track fit
const CovarianceMatrix& CTPPSPixelLocalTrack::getCovarianceMatrix ( ) const
inline

Definition at line 129 of file CTPPSPixelLocalTrack.h.

129  {
130  return par_covariance_matrix_;
131  }
CovarianceMatrix par_covariance_matrix_
GlobalVector CTPPSPixelLocalTrack::getDirectionVector ( ) const
inline

Definition at line 119 of file CTPPSPixelLocalTrack.h.

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

Referenced by RPixPlaneCombinatoryTracking::calculatePointOnDetector().

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

Definition at line 95 of file CTPPSPixelLocalTrack.h.

Referenced by RPixPlaneCombinatoryTracking::findTracks().

95 { return track_hits_vector_; }
edm::DetSetVector< CTPPSPixelFittedRecHit > track_hits_vector_
int CTPPSPixelLocalTrack::getNDF ( ) const
inline

Definition at line 140 of file CTPPSPixelLocalTrack.h.

Referenced by RPixPlaneCombinatoryTracking::findTracks().

140 {return (2*numberOfPointsUsedForFit_ - dimension); }
int numberOfPointsUsedForFit_
number of points used for the track fit
unsigned short CTPPSPixelLocalTrack::getNumberOfPointsUsedForFit ( ) const
inline

Definition at line 168 of file CTPPSPixelLocalTrack.h.

168 { return numberOfPointsUsedForFit_; }
int numberOfPointsUsedForFit_
number of points used for the track fit
const ParameterVector& CTPPSPixelLocalTrack::getParameterVector ( ) const
inline

Definition at line 125 of file CTPPSPixelLocalTrack.h.

Referenced by RPixPlaneCombinatoryTracking::calculatePointOnDetector().

125  {
126  return track_params_vector_;
127  }
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
CTPPSpixelLocalTrackReconstructionInfo CTPPSPixelLocalTrack::getRecoInfo ( ) const
inline

Definition at line 165 of file CTPPSPixelLocalTrack.h.

165 { return recoInfo_; }
CTPPSpixelLocalTrackReconstructionInfo recoInfo_
GlobalPoint CTPPSPixelLocalTrack::getTrackCentrePoint ( )
inline

Definition at line 152 of file CTPPSPixelLocalTrack.h.

References z.

153  {
154  return GlobalPoint(track_params_vector_[TrackPar::x0], track_params_vector_[TrackPar::y0], z0_);
155  }
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 143 of file CTPPSPixelLocalTrack.h.

144  {
145  float delta_z = z - z0_;
146  return GlobalPoint(
147  track_params_vector_[TrackPar::x0] + track_params_vector_[TrackPar::tx] * delta_z,
148  track_params_vector_[TrackPar::y0] + track_params_vector_[TrackPar::ty] * delta_z,
149  z);
150  }
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 113 of file CTPPSPixelLocalTrack.h.

113 { 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 114 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

114 { 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 116 of file CTPPSPixelLocalTrack.h.

116 { 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 117 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

117 { 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 102 of file CTPPSPixelLocalTrack.h.

102 { 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 103 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

103 { 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 104 of file CTPPSPixelLocalTrack.h.

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

Definition at line 106 of file CTPPSPixelLocalTrack.h.

106 { 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 107 of file CTPPSPixelLocalTrack.h.

References mathSSE::sqrt().

107 { 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 108 of file CTPPSPixelLocalTrack.h.

108 { 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::setRecoInfo ( CTPPSpixelLocalTrackReconstructionInfo  recoInfo)
inline

Definition at line 166 of file CTPPSPixelLocalTrack.h.

166 { recoInfo_ = recoInfo; }
CTPPSpixelLocalTrackReconstructionInfo recoInfo_
void CTPPSPixelLocalTrack::setValid ( bool  valid)
inline

Definition at line 161 of file CTPPSPixelLocalTrack.h.

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

Referenced by RPixPlaneCombinatoryTracking::fitTrack().

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

Definition at line 111 of file CTPPSPixelLocalTrack.h.

111 { 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 183 of file CTPPSPixelLocalTrack.h.

int CTPPSPixelLocalTrack::covarianceSize = dimension * dimension
static

Definition at line 84 of file CTPPSPixelLocalTrack.h.

int CTPPSPixelLocalTrack::dimension = 4
static

Definition at line 79 of file CTPPSPixelLocalTrack.h.

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

int CTPPSPixelLocalTrack::numberOfPointsUsedForFit_
private

number of points used for the track fit

Definition at line 189 of file CTPPSPixelLocalTrack.h.

CovarianceMatrix CTPPSPixelLocalTrack::par_covariance_matrix_
private

Definition at line 180 of file CTPPSPixelLocalTrack.h.

Referenced by trackPointInterpolationCovariance().

CTPPSpixelLocalTrackReconstructionInfo CTPPSPixelLocalTrack::recoInfo_
private

Definition at line 191 of file CTPPSPixelLocalTrack.h.

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

Definition at line 171 of file CTPPSPixelLocalTrack.h.

ParameterVector CTPPSPixelLocalTrack::track_params_vector_
private

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

Definition at line 174 of file CTPPSPixelLocalTrack.h.

Referenced by operator<().

bool CTPPSPixelLocalTrack::valid_
private

fit valid?

Definition at line 186 of file CTPPSPixelLocalTrack.h.

float CTPPSPixelLocalTrack::z0_
private

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

Definition at line 178 of file CTPPSPixelLocalTrack.h.

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