CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DataFormats/CSCRecHit/src/CSCSegment.cc File Reference

#include <DataFormats/CSCRecHit/interface/CSCSegment.h>
#include <iostream>

Go to the source code of this file.

Functions

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

Detailed Description

Date:
2011/03/30 16:02:52
Author:
Matteo Sani

Definition in file CSCSegment.cc.


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().

                                                              {
  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;  
}