CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

The ostream operator.

Definition at line 72 of file ME0RecHit.cc.

References ME0RecHit::localPosition(), ME0RecHit::localPositionError(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().

72  {
73  os << "pos: x = " << hit.localPosition().x() ;
74  os << " +/- " << sqrt(hit.localPositionError().xx())<<" cm";
75  os<< " y = " << hit.localPosition().y() ;
76  os << " +/- " << sqrt(hit.localPositionError().yy())<<" cm";
77  return os;
78 }
float xx() const
Definition: LocalError.h:24
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
Definition: ME0RecHit.h:53
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:48
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: ME0RecHit.h:47