CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
DTRecHit1D.h File Reference
#include "DataFormats/TrackingRecHit/interface/RecHit1D.h"
#include "DataFormats/DTRecHit/interface/DTEnums.h"
#include "DataFormats/MuonDetId/interface/DTWireId.h"

Go to the source code of this file.

Classes

class  DTRecHit1D
 

Functions

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

Function Documentation

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

The ostream operator.

Definition at line 103 of file DTRecHit1D.cc.

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

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