26 theProjectionMatrix[0][1] = 1;
27 theProjectionMatrix[1][2] = 1;
28 theProjectionMatrix[2][3] = 1;
29 theProjectionMatrix[3][4] = 1;
32 return (theProjectionMatrix);
41 RecSegment(buildDetId(csc_segment->cscDetId())),
43 theLocalDirection(direction), theCovMatrix(errors), theChi2(chi2) {
45 for(
unsigned int i=0;
i<gem_rhs.size(); ++
i) {
51 <<
" GEM RecHits: " << gem_rhs.size()<<
"\n" 52 <<
" CSC Segment Details: \n"<<*csc_segment<<
"\n" 53 <<
" GEMCSC Segment Details: \n"<<*
this<<
"\n" 54 <<
"[GEMCSCSegment :: ctor] ------------------------------------------------------------";
63 std::vector<const TrackingRecHit*> pointersOfRecHits;
65 pointersOfRecHits.push_back(&(*irh));
68 pointersOfRecHits.push_back(&(*irh));
70 return pointersOfRecHits;
75 std::vector<TrackingRecHit*> pointersOfRecHits;
77 pointersOfRecHits.push_back(&(*irh));
79 return pointersOfRecHits;
109 return (theProjectionMatrix.
getMatrix());
116 os <<
"GEMCSCSegment: local pos = " << seg.
localPosition() <<
LocalError localDirectionError() const override
Error on the local direction.
CSCDetId cscDetId() const
LocalPoint localPosition() const override
GEMCSCSegment()
Default constructor.
std::vector< GEMRecHit > theGEMRecHits
AlgebraicMatrix theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
LocalError localPositionError() const override
CLHEP::HepMatrix AlgebraicMatrix
AlgebraicSymMatrix theCovMatrix
AlgebraicVector parameters() const override
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
const std::vector< CSCRecHit2D > & specificRecHits() const
~GEMCSCSegment() override
Destructor.
CLHEP::HepVector AlgebraicVector
std::ostream & operator<<(std::ostream &os, const GEMCSCSegment &seg)
AlgebraicMatrix projectionMatrix() const override
The projection matrix relates the trajectory state parameters to the segment parameters().
LocalVector theLocalDirection
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
CLHEP::HepSymMatrix AlgebraicSymMatrix
const AlgebraicMatrix & getMatrix() const
double chi2() const override
Chi2 of the segment fit.
LocalVector localDirection() const override
Local direction.