CMS 3D CMS Logo

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

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