CMS 3D CMS Logo

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  CSCRecHit2D
 

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.

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

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