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

◆ operator<<()

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

Definition at line 130 of file GEMSegment.cc.

130  {
131  os << "GEMSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
132  << sqrt(seg.localPositionError().yy()) << "0,)\n"
133  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
134  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
135  << " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2() / double(seg.degreesOfFreedom()) : 0)
136  << " #rechits = " << seg.specificRecHits().size() << " bx = " << seg.bunchX() << " deltaPhi = " << seg.deltaPhi();
137 
138  return os;
139 }

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

GEMSegment::localPosition
LocalPoint localPosition() const override
Definition: GEMSegment.h:52
GEMSegment::deltaPhi
float deltaPhi() const
Definition: GEMSegment.h:87
GEMSegment::bunchX
float bunchX() const
Definition: GEMSegment.h:85
LocalError::xx
float xx() const
Definition: LocalError.h:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GEMSegment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:75
GEMSegment::localPositionError
LocalError localPositionError() const override
Definition: GEMSegment.cc:98
GEMSegment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:71
GEMSegment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:55
GEMSegment::specificRecHits
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:79
GEMSegment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:102
LocalError::yy
float yy() const
Definition: LocalError.h:24