CMS 3D CMS Logo

Functions
DTRecSegment2D.cc File Reference
#include "DataFormats/DTRecHit/interface/DTRecSegment2D.h"
#include <iostream>

Go to the source code of this file.

Functions

static AlgebraicMatrix initTheProjectionMatrix ()
 
ostream & operator<< (ostream &os, const DTRecSegment2D &seg)
 

Detailed Description

Author
Stefano Lacaprara - INFN Legnaro stefa.nosp@m.no.l.nosp@m.acapr.nosp@m.ara@.nosp@m.pd.in.nosp@m.fn.i.nosp@m.t
Riccardo Bellan - INFN TO ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition in file DTRecSegment2D.cc.

Function Documentation

◆ initTheProjectionMatrix()

static AlgebraicMatrix initTheProjectionMatrix ( )
static

Definition at line 20 of file DTRecSegment2D.cc.

20  {
22  theProjectionMatrix[0][1] = 1;
23  theProjectionMatrix[1][3] = 1;
24  return theProjectionMatrix;
25 }

References theProjectionMatrix.

◆ operator<<()

ostream& operator<< ( ostream &  os,
const DTRecSegment2D seg 
)

Definition at line 80 of file DTRecSegment2D.cc.

80  {
81  os << "Pos " << seg.localPosition() << " Dir: " << seg.localDirection() << " chi2/ndof: " << seg.chi2() << "/"
82  << seg.degreesOfFreedom();
83  return os;
84 }

References DTRecSegment2D::chi2(), DTRecSegment2D::degreesOfFreedom(), DTRecSegment2D::localDirection(), and DTRecSegment2D::localPosition().

DTRecSegment2D::chi2
double chi2() const override
the chi2 of the fit
Definition: DTRecSegment2D.h:96
DTRecSegment2D::localPosition
LocalPoint localPosition() const override
local position in SL frame
Definition: DTRecSegment2D.h:84
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: CSCSegment.cc:79
DTRecSegment2D::degreesOfFreedom
int degreesOfFreedom() const override
return the DOF of the segment
Definition: DTRecSegment2D.cc:78
DTRecSegment2D::localDirection
LocalVector localDirection() const override
the local direction in SL frame
Definition: DTRecSegment2D.h:90