CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const DTRecHit1D &hit)
 

Detailed Description

Author
G. Cerminara - INFN Torino

Definition in file DTRecHit1D.cc.

Function Documentation

ostream& operator<< ( ostream &  os,
const DTRecHit1D hit 
)

Definition at line 77 of file DTRecHit1D.cc.

References DTRecHit1D::localPosition(), DTRecHit1D::localPositionError(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and LocalError::xx().

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