CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CSCRecHit2D.cc File Reference
#include <DataFormats/CSCRecHit/interface/CSCRecHit2D.h>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSCRecHit2D &rh)
 Output operator for CSCRecHit2D. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCRecHit2D rh 
)

Output operator for CSCRecHit2D.

Definition at line 192 of file CSCRecHit2D.cc.

References CSCRecHit2D::channels(), CSCRecHit2D::errorWithinStrip(), CSCRecHit2D::hitWire(), CSCRecHit2D::localPosition(), CSCRecHit2D::localPositionError(), CSCRecHit2D::nStrips(), CSCRecHit2D::nWireGroups(), CSCRecHit2D::positionWithinStrip(), CSCRecHit2D::quality(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().

192  {
193  os << "CSCRecHit2D: local x = " << rh.localPosition().x() << " +/- " << sqrt( rh.localPositionError().xx() ) <<
194  " y = " << rh.localPosition().y() << " +/- " << sqrt( rh.localPositionError().yy() ) <<
195  " in strip X = " << rh.positionWithinStrip() << " +/- = " << rh.errorWithinStrip()<<" quality = "<<rh.quality()<<"\n";
196  os << " strip # : ";
197  for(size_t iS =0;iS< rh.nStrips();++iS){
198  os <<rh.channels(iS)<<" ";
199  }
200 os << "\n wire # : ";
201 
202  os << "nWireGroups " << (int)rh.nWireGroups() << " central wire " << rh.hitWire() <<std::endl;
203 
204  return os;
205 }
float xx() const
Definition: LocalError.h:24
T y() const
Definition: PV3DBase.h:62
int channels(unsigned int i) const
Extracting strip channel numbers comprising the rechit - low.
Definition: CSCRecHit2D.h:55
LocalError localPositionError() const
Definition: CSCRecHit2D.h:51
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:46
unsigned int nStrips() const
Definition: CSCRecHit2D.h:56
float positionWithinStrip() const
The estimated position within the strip.
Definition: CSCRecHit2D.h:76
short int hitWire() const
L1A.
Definition: CSCRecHit2D.h:62
int quality() const
quality flag of the reconstruction
Definition: CSCRecHit2D.h:82
float errorWithinStrip() const
The uncertainty of the estimated position within the strip.
Definition: CSCRecHit2D.h:79
LocalPoint localPosition() const
Definition: CSCRecHit2D.h:50
T x() const
Definition: PV3DBase.h:61
unsigned int nWireGroups() const
Definition: CSCRecHit2D.h:65