CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CSCSegment.h File Reference
#include <DataFormats/TrackingRecHit/interface/RecSegment.h>
#include <DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  CSCSegment
 

Functions

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

Function Documentation

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

Definition at line 189 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().

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