CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 130 of file GEMSegment.cc.

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

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 }
float xx() const
Definition: LocalError.h:22
float bunchX() const
Definition: GEMSegment.h:85
LocalError localPositionError() const override
Definition: GEMSegment.cc:98
LocalPoint localPosition() const override
Definition: GEMSegment.h:52
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:55
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:102
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 deltaPhi() const
Definition: GEMSegment.h:87
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:79
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:71