CMS 3D CMS Logo

Classes | Functions
GEMCSCSegment.cc File Reference
#include "DataFormats/GEMRecHit/interface/GEMCSCSegment.h"
#include <iostream>

Go to the source code of this file.

Classes

class  ProjectionMatrixDiag
 

Functions

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

Detailed Description

Based on CSCSegment class

Author
Raffaella Radogna

Definition in file GEMCSCSegment.cc.

Function Documentation

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

Definition at line 115 of file GEMCSCSegment.cc.

References GEMCSCSegment::chi2(), GEMCSCSegment::degreesOfFreedom(), GEMCSCSegment::localDirection(), GEMCSCSegment::localDirectionError(), GEMCSCSegment::localPosition(), GEMCSCSegment::localPositionError(), GEMCSCSegment::nRecHits(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().

115  {
116  os << "GEMCSCSegment: local pos = " << seg.localPosition() <<
117  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
118  "0,)\n"<<
119  " dir = " << seg.localDirection() <<
120  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
121  "0,)\n"<<
122  " chi2/ndf = " << ((seg.degreesOfFreedom()!=0)?(seg.chi2()/double(seg.degreesOfFreedom())):0.0) <<
123  " #rechits = " << seg.nRecHits();
124  return os;
125 }
float xx() const
Definition: LocalError.h:24
LocalError localDirectionError() const override
Error on the local direction.
LocalPoint localPosition() const override
Definition: GEMCSCSegment.h:42
LocalError localPositionError() const override
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMCSCSegment.h:61
double chi2() const override
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:57
LocalVector localDirection() const override
Local direction.
Definition: GEMCSCSegment.h:45