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 133 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().

133  {
134  os << "GEMSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
135  << sqrt(seg.localPositionError().yy()) << "0,)\n"
136  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
137  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
138  << " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2() / double(seg.degreesOfFreedom()) : 0)
139  << " #rechits = " << seg.specificRecHits().size() << " bx = " << seg.bunchX() << " time = " << seg.time()
140  << " +/- " << seg.timeErr() << " ns";
141 
142  return os;
143 }
float xx() const
Definition: LocalError.h:22
float bunchX() const
Definition: GEMSegment.h:87
LocalError localPositionError() const override
Definition: GEMSegment.cc:101
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:55
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:75
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19
float time() const
Definition: GEMSegment.h:85
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:71
LocalPoint localPosition() const override
Definition: GEMSegment.h:52
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:105
float timeErr() const
Definition: GEMSegment.h:86
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:79