CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
GEMCSCSegment.cc File Reference
#include "DataFormats/GEMRecHit/interface/GEMCSCSegment.h"
#include "FWCore/MessageLogger/interface/MessageLogger.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 110 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().

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 }
float xx() const
Definition: LocalError.h:22
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
double chi2() const override
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:58
LocalPoint localPosition() const override
Definition: GEMCSCSegment.h:43
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19