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

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