CMS 3D CMS Logo

Classes | Functions
ME0Segment.h File Reference
#include "DataFormats/TrackingRecHit/interface/RecSegment.h"
#include "DataFormats/GEMRecHit/interface/ME0RecHitCollection.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  ME0Segment
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 117 of file ME0Segment.cc.

References ME0Segment::chi2(), ME0Segment::degreesOfFreedom(), ME0Segment::localDirection(), ME0Segment::localDirectionError(), ME0Segment::localPosition(), ME0Segment::localPositionError(), ME0Segment::specificRecHits(), mathSSE::sqrt(), ME0Segment::time(), ME0Segment::timeErr(), LocalError::xx(), and LocalError::yy().

117  {
118  os << "ME0Segment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
119  << sqrt(seg.localPositionError().yy()) << "0,)\n"
120  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
121  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
122  << " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2() / double(seg.degreesOfFreedom()) : 0)
123  << " #rechits = " << seg.specificRecHits().size() << " time = " << seg.time() << " +/- " << seg.timeErr()
124  << " ns ";
125 
126  return os;
127 }
LocalPoint localPosition() const override
Definition: ME0Segment.h:47
float time() const
Definition: ME0Segment.h:80
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:74
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19
double chi2() const override
Chi2 of the segment fit.
Definition: ME0Segment.h:66
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:70
LocalError localDirectionError() const override
Error on the local direction.
Definition: ME0Segment.cc:89
LocalError localPositionError() const override
Definition: ME0Segment.cc:85
float timeErr() const
Definition: ME0Segment.h:81
LocalVector localDirection() const override
Local direction.
Definition: ME0Segment.h:50
float xx() const
Definition: LocalError.h:22