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 mathSSE::sqrt().

192  {
193  os << "CSCRecHit2D: " <<
194  "local x: " << rh.localPosition().x() << " +/- " << sqrt( rh.localPositionError().xx() ) <<
195  " y: " << rh.localPosition().y() << " +/- " << sqrt( rh.localPositionError().yy() ) <<
196  " in strip X: " << rh.positionWithinStrip() << " +/- " << rh.errorWithinStrip() <<
197  " quality: " << rh.quality() << " tpeak: " << rh.tpeak() << " wireTime: " << rh.wireTime() << std::endl;
198  os << "strips: ";
199  for(size_t iS =0;iS< rh.nStrips();++iS){
200  os <<rh.channels(iS)<<" ";
201  }
202  int nwgs = rh.nWireGroups();
203  if ( nwgs == 1 ) {
204  os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroup" << std::endl; }
205  else {
206  os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroups" << std::endl; }
207  return os;
208 }
T sqrt(T t)
Definition: SSEVec.h:48