CMS 3D CMS Logo

Classes | Functions
GEMCSCSegment.h File Reference
#include "DataFormats/TrackingRecHit/interface/RecSegment.h"
#include "DataFormats/GEMRecHit/interface/GEMRecHitCollection.h"
#include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
#include "DataFormats/CSCRecHit/interface/CSCSegmentCollection.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  GEMCSCSegment
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 109 of file GEMCSCSegment.cc.

109  {
110  os << "GEMCSCSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx())
111  << "," << sqrt(seg.localPositionError().yy()) << "0,)\n"
112  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
113  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
114  << " chi2/ndf = "
115  << ((seg.degreesOfFreedom() != 0) ? (seg.chi2() / double(seg.degreesOfFreedom())) : 0.0)
116  << " #rechits = " << seg.nRecHits();
117  return os;
118 }

References GEMCSCSegment::chi2(), GEMCSCSegment::degreesOfFreedom(), GEMCSCSegment::localDirection(), GEMCSCSegment::localDirectionError(), GEMCSCSegment::localPosition(), GEMCSCSegment::localPositionError(), GEMCSCSegment::nRecHits(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().

GEMCSCSegment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:60
LocalError::xx
float xx() const
Definition: LocalError.h:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GEMCSCSegment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMCSCSegment.cc:86
GEMCSCSegment::localPositionError
LocalError localPositionError() const override
Definition: GEMCSCSegment.cc:82
GEMCSCSegment::localPosition
LocalPoint localPosition() const override
Definition: GEMCSCSegment.h:45
GEMCSCSegment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: GEMCSCSegment.h:48
LocalError::yy
float yy() const
Definition: LocalError.h:24
GEMCSCSegment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMCSCSegment.h:64