CMS 3D CMS Logo

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

Go to the source code of this file.

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 78 of file GEMRecHit.cc.

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

78  {
79  os << "pos: " << hit.localPosition().x();
80  os << " +/- " << sqrt(hit.localPositionError().xx());
81  return os;
82 }
float xx() const
Definition: LocalError.h:22
LocalPoint localPosition() const override
Return the 3-dimensional local position.
Definition: GEMRecHit.h:37
T sqrt(T t)
Definition: SSEVec.h:19
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
Definition: GEMRecHit.h:40