test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

AlgebraicMatrix createStaticMatrix ( )

Definition at line 70 of file CSCSegment.cc.

References visualization-live-secondInstance_cfg::m.

71 {
72  AlgebraicMatrix m( 4, 5, 0);
73  m[0][1] = 1;
74  m[1][2] = 1;
75  m[2][3] = 1;
76  m[3][4] = 1;
77  return m;
78 }
CLHEP::HepMatrix AlgebraicMatrix
std::ostream& operator<< ( std::ostream &  os,
const CSCSegment seg 
)

Definition at line 190 of file CSCSegment.cc.

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

190  {
191  os << "CSCSegment: local pos = " << seg.localPosition() <<
192  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
193  "0,)\n"<<
194  " dir = " << seg.localDirection() <<
195  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
196  "0,)\n"<<
197  " chi2/ndf = " << seg.chi2()/double(seg.degreesOfFreedom()) <<
198  " #rechits = " << seg.specificRecHits().size()<<
199  " ME1/1a duplicates : "<<seg.duplicateSegments().size();
200  return os;
201 }
float xx() const
Definition: LocalError.h:24
LocalError localPositionError() const
Definition: CSCSegment.cc:47
const std::vector< CSCSegment > & duplicateSegments() const
Definition: CSCSegment.h:75
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: CSCSegment.h:61
LocalPoint localPosition() const
Definition: CSCSegment.h:38
LocalVector localDirection() const
Local direction.
Definition: CSCSegment.h:41
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
const std::vector< CSCRecHit2D > & specificRecHits() const
Definition: CSCSegment.h:65
double chi2() const
Chi2 of the segment fit.
Definition: CSCSegment.h:57
LocalError localDirectionError() const
Error on the local direction.
Definition: CSCSegment.cc:51

Variable Documentation

const AlgebraicMatrix theProjectionMatrix = createStaticMatrix()
static