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.

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 }

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

ME0Segment::specificRecHits
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:74
ME0Segment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:70
ME0Segment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: ME0Segment.cc:87
ME0Segment::timeErr
float timeErr() const
Definition: ME0Segment.h:81
LocalError::xx
float xx() const
Definition: LocalError.h:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ME0Segment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: ME0Segment.h:50
ME0Segment::localPositionError
LocalError localPositionError() const override
Definition: ME0Segment.cc:83
ME0Segment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: ME0Segment.h:66
ME0Segment::localPosition
LocalPoint localPosition() const override
Definition: ME0Segment.h:47
ME0Segment::time
float time() const
Definition: ME0Segment.h:80
LocalError::yy
float yy() const
Definition: LocalError.h:24