11 #ifndef DataFormats_CTPPSReco_CTPPSPixelLocalTrack_H 12 #define DataFormats_CTPPSReco_CTPPSPixelLocalTrack_H 76 enum TrackPar {x0 = 0, y0 = 1, tx = 2, ty = 3};
91 const CovarianceMatrix &par_covariance_matrix,
float chiSquared);
98 track_hits_vector_.find_or_insert(detId).push_back(hit);
102 inline float getX0()
const {
return track_params_vector_[TrackPar::x0]; }
103 inline float getX0Sigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::x0][TrackPar::x0]); }
104 inline float getX0Variance()
const {
return par_covariance_matrix_[TrackPar::x0][TrackPar::x0]; }
106 inline float getY0()
const {
return track_params_vector_[TrackPar::y0]; }
107 inline float getY0Sigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::y0][TrackPar::y0]); }
108 inline float getY0Variance()
const {
return par_covariance_matrix_[TrackPar::y0][TrackPar::y0]; }
110 inline float getZ0()
const {
return z0_; }
111 inline void setZ0(
float z0) { z0_ = z0; }
113 inline float getTx()
const {
return track_params_vector_[TrackPar::tx]; }
114 inline float getTxSigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::tx][TrackPar::tx]); }
116 inline float getTy()
const {
return track_params_vector_[TrackPar::ty]; }
117 inline float getTySigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::ty][TrackPar::ty]); }
126 return track_params_vector_;
130 return par_covariance_matrix_;
136 if(numberOfPointsUsedForFit_<= dimension/2)
return -999.;
137 else return chiSquared_ / (2*numberOfPointsUsedForFit_ -
dimension);
140 inline int getNDF()
const {
return (2*numberOfPointsUsedForFit_ - dimension); }
145 float delta_z = z - z0_;
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,
154 return GlobalPoint(track_params_vector_[TrackPar::x0], track_params_vector_[TrackPar::y0], z0_);
CTPPSPixelFittedRecHit(const CTPPSPixelRecHit &hit, const GlobalPoint &space_point_on_det, const LocalPoint &residual, const LocalPoint &pull)
CTPPSpixelLocalTrackReconstructionInfo getRecoInfo() const
const CovarianceMatrix & getCovarianceMatrix() const
unsigned short getNumberOfPointsUsedForFit() const
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
GlobalPoint getTrackPoint(float z) const
returns the point from which the track is passing by at the selected z
LocalPoint pull_
normalised residual
math::Error< dimension >::type CovarianceMatrix
Global3DPoint GlobalPoint
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
float getY0Variance() const
static const uint16_t valid_
float chiSquared_
fit chi^2
bool getIsUsedForFit() const
bool getIsRealHit() const
float getX0Variance() const
float getYPullNormalization() const
float getChiSquared() const
float getChiSquaredOverNDF() const
void setRecoInfo(CTPPSpixelLocalTrackReconstructionInfo recoInfo)
float getXResidual() const
void setIsUsedForFit(bool usedForFit)
void addHit(unsigned int detId, const CTPPSPixelFittedRecHit &hit)
const edm::DetSetVector< CTPPSPixelFittedRecHit > & getHits() const
Vector3DBase unit() const
void setIsRealHit(bool realHit)
edm::DetSetVector< CTPPSPixelFittedRecHit > track_hits_vector_
float getYResidual() const
virtual ~CTPPSPixelFittedRecHit()
CTPPSpixelLocalTrackReconstructionInfo recoInfo_
GlobalPoint space_point_on_det_
mm
math::Vector< dimension >::type ParameterVector
covariance matrix size
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
GlobalVector getDirectionVector() const
const ParameterVector & getParameterVector() const
CovarianceMatrix par_covariance_matrix_
GlobalPoint getTrackCentrePoint()
float getXPullNormalization() const
uint32_t dimension(pat::CandKinResolution::Parametrization parametrization)
Returns the number of free parameters in a parametrization (3 or 4)
const GlobalPoint & getGlobalCoordinates() const
void setValid(bool valid)