CMS 3D CMS Logo

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

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

110  {
111  os << "GEMCSCSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx())
112  << "," << sqrt(seg.localPositionError().yy()) << "0,)\n"
113  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
114  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
115  << " chi2/ndf = "
116  << ((seg.degreesOfFreedom() != 0) ? (seg.chi2() / double(seg.degreesOfFreedom())) : 0.0)
117  << " #rechits = " << seg.nRecHits();
118  return os;
119 }
LocalVector localDirection() const override
Local direction.
Definition: GEMCSCSegment.h:46
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMCSCSegment.h:62
LocalError localDirectionError() const override
Error on the local direction.
LocalError localPositionError() const override
float yy() const
Definition: LocalError.h:24
double chi2() const override
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:58
LocalPoint localPosition() const override
Definition: GEMCSCSegment.h:43
T sqrt(T t)
Definition: SSEVec.h:23
float xx() const
Definition: LocalError.h:22