CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_1/src/DataFormats/DTRecHit/interface/DTRecSegment4D.h File Reference

#include "DataFormats/TrackingRecHit/interface/RecSegment.h"
#include "DataFormats/DTRecHit/interface/DTSLRecSegment2D.h"
#include "DataFormats/DTRecHit/interface/DTChamberRecSegment2D.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  DTRecSegment4D

Functions

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

Function Documentation

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

Definition at line 239 of file DTRecSegment4D.cc.

References DTRecSegment4D::chi2(), DTRecSegment4D::degreesOfFreedom(), DTRecSegment4D::dimension(), DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), DTRecSegment4D::localDirection(), DTRecSegment4D::localPosition(), DTRecSegment4D::phiSegment(), DTRecSegment2D::recHits(), and DTRecSegment4D::zSegment().

                                                                  {
  os << "Pos " << seg.localPosition() << 
    " Dir: " << seg.localDirection() <<
    " dim: " << seg.dimension() <<
    " chi2/ndof: " << seg.chi2() << "/" << seg.degreesOfFreedom() << " :";
  if (seg.hasPhi()) os << seg.phiSegment()->recHits().size();
  else os << 0;
  os << ":";
  if (seg.hasZed()) os << seg.zSegment()->recHits().size();
  else os << 0;
  return os;
}