#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. |
std::ostream& operator<< | ( | std::ostream & | os, |
const CSCRecHit2D & | rh | ||
) |
Output operator for CSCRecHit2D.
Definition at line 192 of file CSCRecHit2D.cc.
References mathSSE::sqrt().
{ os << "CSCRecHit2D: " << "local x: " << rh.localPosition().x() << " +/- " << sqrt( rh.localPositionError().xx() ) << " y: " << rh.localPosition().y() << " +/- " << sqrt( rh.localPositionError().yy() ) << " in strip X: " << rh.positionWithinStrip() << " +/- " << rh.errorWithinStrip() << " quality: " << rh.quality() << " tpeak: " << rh.tpeak() << " wireTime: " << rh.wireTime() << std::endl; os << "strips: "; for(size_t iS =0;iS< rh.nStrips();++iS){ os <<rh.channels(iS)<<" "; } int nwgs = rh.nWireGroups(); if ( nwgs == 1 ) { os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroup" << std::endl; } else { os << "central wire: " << rh.hitWire() << " of " << nwgs << " wiregroups" << std::endl; } return os; }