CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CSCRecHit2D.h File Reference
#include "DataFormats/Common/interface/RangeMap.h"
#include <DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h>
#include <DataFormats/MuonDetId/interface/CSCDetId.h>
#include <vector>
#include <map>
#include <iosfwd>

Go to the source code of this file.

Classes

class  GCC11_FINAL< T, TOPO >
 Unlimited (trivial) bounds. More...
 

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