CMS 3D CMS Logo

Functions
RPCRecHit.cc File Reference
#include "DataFormats/RPCRecHit/interface/RPCRecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

The ostream operator.

Definition at line 98 of file RPCRecHit.cc.

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

98  {
99  os << "pos: " << hit.localPosition().x() ;
100  os << " +/- " << sqrt(hit.localPositionError().xx()) ;
101  return os;
102 }
float xx() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:18
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
Definition: RPCRecHit.h:59
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: RPCRecHit.h:53