CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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().

239  {
240  os << "Pos " << seg.localPosition() <<
241  " Dir: " << seg.localDirection() <<
242  " dim: " << seg.dimension() <<
243  " chi2/ndof: " << seg.chi2() << "/" << seg.degreesOfFreedom() << " :";
244  if (seg.hasPhi()) os << seg.phiSegment()->recHits().size();
245  else os << 0;
246  os << ":";
247  if (seg.hasZed()) os << seg.zSegment()->recHits().size();
248  else os << 0;
249  return os;
250 }
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
virtual LocalVector localDirection() const
Local direction in Chamber frame.
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
bool hasPhi() const
Does it have the Phi projection?
virtual LocalPoint localPosition() const
Local position in Chamber frame.
virtual int dimension() const
Dimension (in parameter space)
bool hasZed() const
Does it have the Z projection?
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
virtual double chi2() const
Chi2 of the segment fit.