CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  ME0RecHit
 

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 45 of file ME0RecHit.cc.

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

45  {
46  os << "pos: x = " << hit.localPosition().x();
47  os << " +/- " << sqrt(hit.localPositionError().xx()) << " cm";
48  os << " y = " << hit.localPosition().y();
49  os << " +/- " << sqrt(hit.localPositionError().yy()) << " cm";
50  return os;
51 }
float xx() const
Definition: LocalError.h:22
LocalPoint localPosition() const override
Return the 3-dimensional local position.
Definition: ME0RecHit.h:36
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
Definition: ME0RecHit.h:39