CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DTRecSegment4D.cc File Reference
#include "DataFormats/DTRecHit/interface/DTRecSegment4D.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

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

Detailed Description

Date:
2009/09/21 10:13:37
Revision:
1.15
Author
Stefano Lacaprara - INFN Legnaro stefa.nosp@m.no.l.nosp@m.acapr.nosp@m.ara@.nosp@m.pd.in.nosp@m.fn.i.nosp@m.t
Riccardo Bellan - INFN TO ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition in file DTRecSegment4D.cc.

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.