CMS 3D CMS Logo

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

217  {
218  os << "Pos " << seg.localPosition() << " Dir: " << seg.localDirection() << " dim: " << seg.dimension()
219  << " chi2/ndof: " << seg.chi2() << "/" << seg.degreesOfFreedom() << " :";
220  if (seg.hasPhi())
221  os << seg.phiSegment()->recHits().size();
222  else
223  os << 0;
224  os << ":";
225  if (seg.hasZed())
226  os << seg.zSegment()->recHits().size();
227  else
228  os << 0;
229  return os;
230 }
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
LocalVector localDirection() const override
Local direction in Chamber frame.
int dimension() const override
Dimension (in parameter space)
LocalPoint localPosition() const override
Local position in Chamber frame.
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
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.
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
double chi2() const override
Chi2 of the segment fit.