CMS 3D CMS Logo

Functions | Variables
CSCSegment.cc File Reference
#include <DataFormats/CSCRecHit/interface/CSCSegment.h>
#include <iostream>

Go to the source code of this file.

Functions

AlgebraicMatrix createStaticMatrix ()
 
std::ostream & operator<< (std::ostream &os, const CSCSegment &seg)
 

Variables

static const AlgebraicMatrix theProjectionMatrix = createStaticMatrix()
 

Detailed Description

Author
Matteo Sani

Definition in file CSCSegment.cc.

Function Documentation

◆ createStaticMatrix()

AlgebraicMatrix createStaticMatrix ( )

Definition at line 70 of file CSCSegment.cc.

70  {
71  AlgebraicMatrix m(4, 5, 0);
72  m[0][1] = 1;
73  m[1][2] = 1;
74  m[2][3] = 1;
75  m[3][4] = 1;
76  return m;
77 }

References visualization-live-secondInstance_cfg::m.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const CSCSegment seg 
)

Definition at line 181 of file CSCSegment.cc.

181  {
182  os << "CSCSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
183  << sqrt(seg.localPositionError().yy()) << "0,)\n"
184  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
185  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
186  << " chi2/ndf = " << seg.chi2() / double(seg.degreesOfFreedom())
187  << " #rechits = " << seg.specificRecHits().size() << " ME1/1a duplicates : " << seg.duplicateSegments().size();
188  return os;
189 }

References CSCSegment::chi2(), CSCSegment::degreesOfFreedom(), CSCSegment::duplicateSegments(), CSCSegment::localDirection(), CSCSegment::localDirectionError(), CSCSegment::localPosition(), CSCSegment::localPositionError(), CSCSegment::specificRecHits(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().

Variable Documentation

◆ theProjectionMatrix

const AlgebraicMatrix theProjectionMatrix = createStaticMatrix()
static
CSCSegment::specificRecHits
const std::vector< CSCRecHit2D > & specificRecHits() const
Definition: CSCSegment.h:66
LocalError::xx
float xx() const
Definition: LocalError.h:22
CSCSegment::duplicateSegments
const std::vector< CSCSegment > & duplicateSegments() const
Definition: CSCSegment.h:76
CSCSegment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: CSCSegment.h:62
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
CSCSegment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: CSCSegment.h:42
CSCSegment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: CSCSegment.cc:52
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
CSCSegment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: CSCSegment.h:58
CSCSegment::localPosition
LocalPoint localPosition() const override
Definition: CSCSegment.h:39
LocalError::yy
float yy() const
Definition: LocalError.h:24
CSCSegment::localPositionError
LocalError localPositionError() const override
Definition: CSCSegment.cc:48