CMS 3D CMS Logo

Classes | Functions
GEMCSCSegment.cc File Reference
#include "DataFormats/GEMRecHit/interface/GEMCSCSegment.h"
#include <iostream>

Go to the source code of this file.

Classes

class  ProjectionMatrixDiag
 

Functions

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

Detailed Description

Based on CSCSegment class

Author
Raffaella Radogna

Definition in file GEMCSCSegment.cc.

Function Documentation

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

Definition at line 109 of file GEMCSCSegment.cc.

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

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 }
float xx() const
Definition: LocalError.h:22
LocalError localDirectionError() const override
Error on the local direction.
LocalPoint localPosition() const override
Definition: GEMCSCSegment.h:45
LocalError localPositionError() const override
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMCSCSegment.h:64
double chi2() const override
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:60
LocalVector localDirection() const override
Local direction.
Definition: GEMCSCSegment.h:48