CMS 3D CMS Logo

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

◆ operator<<()

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

Output operator for CSCRecHit2D.

Definition at line 207 of file CSCRecHit2D.cc.

207  {
208  os << "CSCRecHit2D: "
209  << "local x: " << rh.localPosition().x() << " +/- " << sqrt(rh.localPositionError().xx())
210  << " y: " << rh.localPosition().y() << " +/- " << sqrt(rh.localPositionError().yy())
211  << " in strip X: " << rh.positionWithinStrip() << " +/- " << rh.errorWithinStrip() << " quality: " << rh.quality()
212  << " tpeak: " << rh.tpeak() << " wireTime: " << rh.wireTime() << std::endl;
213  os << "strips: ";
214  for (size_t iS = 0; iS < rh.nStrips(); ++iS) {
215  os << rh.channels(iS) << " ";
216  }
217  int nwgs = rh.nWireGroups();
218  if (nwgs == 1) {
219  os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroup" << std::endl;
220  } else {
221  os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroups" << std::endl;
222  }
223  return os;
224 }

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().

CSCRecHit2D::quality
int quality() const
quality flag of the reconstruction
Definition: CSCRecHit2D.h:88
CSCRecHit2D::errorWithinStrip
float errorWithinStrip() const
The uncertainty of the estimated position within the strip.
Definition: CSCRecHit2D.h:85
CSCRecHit2D::nWireGroups
unsigned int nWireGroups() const
Definition: CSCRecHit2D.h:71
LocalError::xx
float xx() const
Definition: LocalError.h:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
CSCRecHit2D::tpeak
float tpeak() const
Fitted peaking time.
Definition: CSCRecHit2D.h:79
CSCRecHit2D::wireTime
float wireTime() const
Definition: CSCRecHit2D.h:95
CSCRecHit2D::localPosition
LocalPoint localPosition() const override
Definition: CSCRecHit2D.h:56
CSCRecHit2D::localPositionError
LocalError localPositionError() const override
Definition: CSCRecHit2D.h:57
CSCRecHit2D::channels
int channels(unsigned int i) const
Extracting strip channel numbers comprising the rechit - low.
Definition: CSCRecHit2D.h:61
CSCRecHit2D::positionWithinStrip
float positionWithinStrip() const
The estimated position within the strip.
Definition: CSCRecHit2D.h:82
CSCRecHit2D::nStrips
unsigned int nStrips() const
Definition: CSCRecHit2D.h:62
CSCRecHit2D::hitWire
short int hitWire() const
L1A.
Definition: CSCRecHit2D.h:68
LocalError::yy
float yy() const
Definition: LocalError.h:24