CMS 3D CMS Logo

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 100 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().

100  {
101  os << "ME0Segment: local pos = " << seg.localPosition() <<
102  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
103  "0,)\n"<<
104  " dir = " << seg.localDirection() <<
105  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
106  "0,)\n"<<
107  " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2()/double(seg.degreesOfFreedom()) :0 ) <<
108  " #rechits = " << seg.specificRecHits().size()<<
109  " time = "<< seg.time() << " +/- " << seg.timeErr() << " ns ";
110 
111  return os;
112 }
float xx() const
Definition: LocalError.h:24
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:67
LocalError localDirectionError() const override
Error on the local direction.
Definition: ME0Segment.cc:67
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:63
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
double chi2() const override
Chi2 of the segment fit.
Definition: ME0Segment.h:59
LocalVector localDirection() const override
Local direction.
Definition: ME0Segment.h:43
LocalPoint localPosition() const override
Definition: ME0Segment.h:40
LocalError localPositionError() const override
Definition: ME0Segment.cc:63
float timeErr() const
Definition: ME0Segment.h:74
float time() const
Definition: ME0Segment.h:73