11 #ifndef DataFormats_CTPPSReco_CTPPSPixelLocalTrack_H 12 #define DataFormats_CTPPSReco_CTPPSPixelLocalTrack_H 74 enum TrackPar {x0 = 0, y0 = 1, tx = 2, ty = 3};
89 const CovarianceMatrix &par_covariance_matrix,
float chiSquared);
96 track_hits_vector_.find_or_insert(detId).push_back(hit);
100 inline float getX0()
const {
return track_params_vector_[TrackPar::x0]; }
101 inline float getX0Sigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::x0][TrackPar::x0]); }
102 inline float getX0Variance()
const {
return par_covariance_matrix_[TrackPar::x0][TrackPar::x0]; }
104 inline float getY0()
const {
return track_params_vector_[TrackPar::y0]; }
105 inline float getY0Sigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::y0][TrackPar::y0]); }
106 inline float getY0Variance()
const {
return par_covariance_matrix_[TrackPar::y0][TrackPar::y0]; }
108 inline float getZ0()
const {
return z0_; }
109 inline void setZ0(
float z0) { z0_ = z0; }
111 inline float getTx()
const {
return track_params_vector_[TrackPar::tx]; }
112 inline float getTxSigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::tx][TrackPar::tx]); }
114 inline float getTy()
const {
return track_params_vector_[TrackPar::ty]; }
115 inline float getTySigma()
const {
return sqrt(par_covariance_matrix_[TrackPar::ty][TrackPar::ty]); }
124 return track_params_vector_;
128 return par_covariance_matrix_;
134 if(numberOfPointUsedForFit_<= dimension/2)
return -999.;
135 else return chiSquared_ / (2*numberOfPointUsedForFit_ -
dimension);
138 inline int getNDF()
const {
return (2*numberOfPointUsedForFit_ - dimension); }
143 float delta_z = z - z0_;
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,
152 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)
const CovarianceMatrix & getCovarianceMatrix() 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
ParameterVector track_params_vector_
track parameters: (x0, y0, tx, ty); x = x0 + tx*(z-z0) ...
float getY0Variance() const
static const uint16_t valid_
float chiSquared_
fit chi^2
bool getIsUsedForFit() const
bool getIsRealHit() const
float getX0Variance() const
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
float getYPullNormalization() const
int numberOfPointUsedForFit_
float getChiSquared() const
float getChiSquaredOverNDF() const
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()
GlobalPoint space_point_on_det_
mm
math::Vector< dimension >::type ParameterVector
covariance matrix size
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)