CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/DataFormats/CSCRecHit/interface/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 152 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().

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