CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 114 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().

114  {
115  os << "ME0Segment: local pos = " << seg.localPosition() <<
116  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
117  "0,)\n"<<
118  " dir = " << seg.localDirection() <<
119  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
120  "0,)\n"<<
121  " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2()/double(seg.degreesOfFreedom()) :0 ) <<
122  " #rechits = " << seg.specificRecHits().size()<<
123  " time = "<< seg.time() << " +/- " << seg.timeErr() << " ns ";
124 
125  return os;
126 }
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:63
LocalPoint localPosition() const
Definition: ME0Segment.h:40
float xx() const
Definition: LocalError.h:24
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:67
LocalVector localDirection() const
Local direction.
Definition: ME0Segment.h:43
float yy() const
Definition: LocalError.h:26
LocalError localPositionError() const
Definition: ME0Segment.cc:77
T sqrt(T t)
Definition: SSEVec.h:48
double chi2() const
Chi2 of the segment fit.
Definition: ME0Segment.h:59
LocalError localDirectionError() const
Error on the local direction.
Definition: ME0Segment.cc:81
float timeErr() const
Definition: ME0Segment.h:74
float time() const
Definition: ME0Segment.h:73