CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  GEMSegment
 

Functions

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

Function Documentation

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

Definition at line 126 of file GEMSegment.cc.

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

126  {
127  os << "GEMSegment: local pos = " << seg.localPosition() <<
128  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
129  "0,)\n"<<
130  " dir = " << seg.localDirection() <<
131  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
132  "0,)\n"<<
133  " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2()/double(seg.degreesOfFreedom()) :0 ) <<
134  " #rechits = " << seg.specificRecHits().size()<<
135  " bx = "<< seg.bunchX() <<
136  " time = "<< seg.time() << " +/- " << seg.timeErr() << " ns";
137 
138  return os;
139 }
float xx() const
Definition: LocalError.h:24
LocalError localPositionError() const
Definition: GEMSegment.cc:89
float bunchX() const
Definition: GEMSegment.h:77
double chi2() const
Chi2 of the segment fit.
Definition: GEMSegment.h:61
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:65
float yy() const
Definition: LocalError.h:26
LocalError localDirectionError() const
Error on the local direction.
Definition: GEMSegment.cc:93
T sqrt(T t)
Definition: SSEVec.h:18
LocalPoint localPosition() const
Definition: GEMSegment.h:42
float time() const
Definition: GEMSegment.h:75
LocalVector localDirection() const
Local direction.
Definition: GEMSegment.h:45
float timeErr() const
Definition: GEMSegment.h:76
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:69