24 theProjectionMatrix[0][1] = 1;
25 theProjectionMatrix[1][2] = 1;
26 theProjectionMatrix[2][3] = 1;
27 theProjectionMatrix[3][4] = 1;
30 return (theProjectionMatrix);
36 RecSegment(buildDetId(proto_segment.front()->me0Id())), theOrigin(origin), theLocalDirection(direction), theCovMatrix(errors),
37 theChi2(chi2), theTimeValue(0.), theTimeUncrt(0.), theDeltaPhi(0.){
38 for(
const auto* rh : proto_segment )
theME0RecHits.push_back(*rh);
45 for(
const auto* rh : proto_segment )
theME0RecHits.push_back(*rh);
51 std::vector<const TrackingRecHit*> pointersOfRecHits;
52 for(
const auto& rh :
theME0RecHits ) pointersOfRecHits.push_back(&rh);
53 return pointersOfRecHits;
58 std::vector<TrackingRecHit*> pointersOfRecHits;
59 for(
auto& rh :
theME0RecHits ) pointersOfRecHits.push_back(&rh);
60 return pointersOfRecHits;
109 " time = "<< seg.
time() <<
" +/- " << seg.
timeErr() <<
" ns ";
LocalVector theLocalDirection
const std::vector< ME0RecHit > & specificRecHits() const
LocalError localDirectionError() const override
Error on the local direction.
~ME0Segment() override
Destructor.
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
AlgebraicMatrix theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
std::vector< ME0RecHit > theME0RecHits
ME0Segment()
Default constructor.
CLHEP::HepMatrix AlgebraicMatrix
AlgebraicMatrix projectionMatrix() const override
The projection matrix relates the trajectory state parameters to the segment parameters().
std::ostream & operator<<(std::ostream &os, const ME0Segment &seg)
double chi2() const override
Chi2 of the segment fit.
LocalVector localDirection() const override
Local direction.
LocalPoint localPosition() const override
CLHEP::HepVector AlgebraicVector
AlgebraicVector parameters() const override
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
LocalError localPositionError() const override
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
const AlgebraicMatrix & getMatrix() const
AlgebraicSymMatrix theCovMatrix