CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
ME0Segment.cc File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/GEMRecHit/interface/ME0Segment.h"
#include <iostream>

Go to the source code of this file.

Classes

class  ProjectionMatrixDiag
 

Functions

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

Detailed Description

Date:
2013/04/22 22:41:33
Author
David Nash

Definition in file ME0Segment.cc.

Function Documentation

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

Definition at line 113 of file ME0Segment.cc.

References ME0Segment::chi2(), ME0Segment::degreesOfFreedom(), ME0Segment::localDirection(), ME0Segment::localDirectionError(), ME0Segment::localPosition(), ME0Segment::localPositionError(), ME0Segment::specificRecHits(), mathSSE::sqrt(), ME0Segment::time(), ME0Segment::timeErr(), LocalError::xx(), and LocalError::yy().

113  {
114  os << "ME0Segment: local pos = " << seg.localPosition() <<
115  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
116  "0,)\n"<<
117  " dir = " << seg.localDirection() <<
118  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
119  "0,)\n"<<
120  " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2()/double(seg.degreesOfFreedom()) :0 ) <<
121  " #rechits = " << seg.specificRecHits().size()<<
122  " time = "<< seg.time() << " +/- " << seg.timeErr() << " ns ";
123 
124  return os;
125 }
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:63
LocalPoint localPosition() const
Definition: ME0Segment.h:40
float xx() const
Definition: LocalError.h:24
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:67
LocalVector localDirection() const
Local direction.
Definition: ME0Segment.h:43
float yy() const
Definition: LocalError.h:26
LocalError localPositionError() const
Definition: ME0Segment.cc:76
T sqrt(T t)
Definition: SSEVec.h:18
double chi2() const
Chi2 of the segment fit.
Definition: ME0Segment.h:59
LocalError localDirectionError() const
Error on the local direction.
Definition: ME0Segment.cc:80
float timeErr() const
Definition: ME0Segment.h:74
float time() const
Definition: ME0Segment.h:73