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.

References visualization-live-secondInstance_cfg::m.

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 }
CLHEP::HepMatrix AlgebraicMatrix

◆ operator<<()

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

Definition at line 181 of file CSCSegment.cc.

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

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 }
LocalPoint localPosition() const override
Definition: CSCSegment.h:39
double chi2() const override
Chi2 of the segment fit.
Definition: CSCSegment.h:58
LocalVector localDirection() const override
Local direction.
Definition: CSCSegment.h:42
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:23
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: CSCSegment.h:62
LocalError localDirectionError() const override
Error on the local direction.
Definition: CSCSegment.cc:52
const std::vector< CSCRecHit2D > & specificRecHits() const
Definition: CSCSegment.h:66
LocalError localPositionError() const override
Definition: CSCSegment.cc:48
const std::vector< CSCSegment > & duplicateSegments() const
Definition: CSCSegment.h:76
float xx() const
Definition: LocalError.h:22

Variable Documentation

◆ theProjectionMatrix

const AlgebraicMatrix theProjectionMatrix = createStaticMatrix()
static