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(), CSCRecHit2D::tpeak(), CSCRecHit2D::wireTime(), LocalError::xx(), and LocalError::yy().

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 }
float xx() const
Definition: LocalError.h:24
float tpeak() const
Fitted peaking time.
Definition: CSCRecHit2D.h:73
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:18
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 wireTime() const
Definition: CSCRecHit2D.h:89
float errorWithinStrip() const
The uncertainty of the estimated position within the strip.
Definition: CSCRecHit2D.h:79
LocalPoint localPosition() const
Definition: CSCRecHit2D.h:50
unsigned int nWireGroups() const
Definition: CSCRecHit2D.h:65