CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
GEMRecHit.h File Reference
#include "DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h"
#include "DataFormats/MuonDetId/interface/GEMDetId.h"

Go to the source code of this file.

Classes

class  GEMRecHit
 

Functions

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

Function Documentation

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

The ostream operator.

Definition at line 93 of file GEMRecHit.cc.

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

93  {
94  os << "pos: " << hit.localPosition().x() ;
95  os << " +/- " << sqrt(hit.localPositionError().xx()) ;
96  return os;
97 }
float xx() const
Definition: LocalError.h:24
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: GEMRecHit.h:53
T sqrt(T t)
Definition: SSEVec.h:48
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
Definition: GEMRecHit.h:59