CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DTRecHit1D.cc File Reference
#include "DataFormats/DTRecHit/interface/DTRecHit1D.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const DTRecHit1D &hit)
 The ostream operator. More...
 

Detailed Description

Date:
2007/08/02 05:58:16
Revision:
1.6
Author
G. Cerminara - INFN Torino

Definition in file DTRecHit1D.cc.

Function Documentation

ostream& operator<< ( ostream &  os,
const DTRecHit1D hit 
)

The ostream operator.

Definition at line 105 of file DTRecHit1D.cc.

References DTRecHit1D::localPosition(), DTRecHit1D::localPositionError(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and LocalError::xx().

105  {
106  os << "pos: " << hit.localPosition().x() ;
107  os << " +/- " << sqrt(hit.localPositionError().xx()) ;
108  return os;
109 }
float xx() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:46
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
Definition: DTRecHit1D.h:68
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: DTRecHit1D.h:62
T x() const
Definition: PV3DBase.h:61