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)
 

Function Documentation

◆ operator<<()

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

Definition at line 115 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().

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