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 ";
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
LocalPoint localPosition() const
LocalVector theLocalDirection
const std::vector< ME0RecHit > & specificRecHits() const
LocalVector localDirection() const
Local direction.
AlgebraicVector parameters() const
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
AlgebraicMatrix theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
std::vector< ME0RecHit > theME0RecHits
ME0Segment()
Default constructor.
CLHEP::HepMatrix AlgebraicMatrix
LocalError localPositionError() const
std::ostream & operator<<(std::ostream &os, const ME0Segment &seg)
double chi2() const
Chi2 of the segment fit.
LocalError localDirectionError() const
Error on the local direction.
virtual AlgebraicMatrix projectionMatrix() const
The projection matrix relates the trajectory state parameters to the segment parameters().
CLHEP::HepVector AlgebraicVector
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
virtual ~ME0Segment()
Destructor.
CLHEP::HepSymMatrix AlgebraicSymMatrix
const AlgebraicMatrix & getMatrix() const
AlgebraicSymMatrix theCovMatrix