CMS 3D CMS Logo

Classes | Functions
CSCSegment.h File Reference
#include <DataFormats/TrackingRecHit/interface/RecSegment.h>
#include <DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  CSCSegment
 

Functions

std::ostream & operator<< (std::ostream &os, const CSCSegment &seg)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const CSCSegment seg 
)

Definition at line 181 of file CSCSegment.cc.

181  {
182  os << "CSCSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
183  << sqrt(seg.localPositionError().yy()) << "0,)\n"
184  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
185  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
186  << " chi2/ndf = " << seg.chi2() / double(seg.degreesOfFreedom())
187  << " #rechits = " << seg.specificRecHits().size() << " ME1/1a duplicates : " << seg.duplicateSegments().size();
188  return os;
189 }

References CSCSegment::chi2(), CSCSegment::degreesOfFreedom(), CSCSegment::duplicateSegments(), CSCSegment::localDirection(), CSCSegment::localDirectionError(), CSCSegment::localPosition(), CSCSegment::localPositionError(), CSCSegment::specificRecHits(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().

CSCSegment::specificRecHits
const std::vector< CSCRecHit2D > & specificRecHits() const
Definition: CSCSegment.h:66
LocalError::xx
float xx() const
Definition: LocalError.h:22
CSCSegment::duplicateSegments
const std::vector< CSCSegment > & duplicateSegments() const
Definition: CSCSegment.h:76
CSCSegment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: CSCSegment.h:62
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
CSCSegment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: CSCSegment.h:42
CSCSegment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: CSCSegment.cc:52
CSCSegment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: CSCSegment.h:58
CSCSegment::localPosition
LocalPoint localPosition() const override
Definition: CSCSegment.h:39
LocalError::yy
float yy() const
Definition: LocalError.h:24
CSCSegment::localPositionError
LocalError localPositionError() const override
Definition: CSCSegment.cc:48