CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 "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 115 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().

115  {
116  os << "GEMCSCSegment: local pos = " << seg.localPosition() <<
117  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
118  "0,)\n"<<
119  " dir = " << seg.localDirection() <<
120  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
121  "0,)\n"<<
122  " chi2/ndf = " << ((seg.degreesOfFreedom()!=0)?(seg.chi2()/double(seg.degreesOfFreedom())):0.0) <<
123  " #rechits = " << seg.nRecHits();
124  return os;
125 }
float xx() const
Definition: LocalError.h:24
LocalError localPositionError() const
LocalError localDirectionError() const
Error on the local direction.
LocalPoint localPosition() const
Definition: GEMCSCSegment.h:42
LocalVector localDirection() const
Local direction.
Definition: GEMCSCSegment.h:45
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: GEMCSCSegment.h:61
double chi2() const
Chi2 of the segment fit.
Definition: GEMCSCSegment.h:57