CMS 3D CMS Logo

Classes | Functions
GEMSegment.cc File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/GEMRecHit/interface/GEMSegment.h"
#include <iostream>

Go to the source code of this file.

Classes

class  ProjectionMatrixDiag
 

Functions

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

Function Documentation

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

Definition at line 126 of file GEMSegment.cc.

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

126  {
127  os << "GEMSegment: local pos = " << seg.localPosition() <<
128  " posErr = (" << sqrt(seg.localPositionError().xx())<<","<<sqrt(seg.localPositionError().yy())<<
129  "0,)\n"<<
130  " dir = " << seg.localDirection() <<
131  " dirErr = (" << sqrt(seg.localDirectionError().xx())<<","<<sqrt(seg.localDirectionError().yy())<<
132  "0,)\n"<<
133  " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2()/double(seg.degreesOfFreedom()) :0 ) <<
134  " #rechits = " << seg.specificRecHits().size()<<
135  " bx = "<< seg.bunchX() <<
136  " time = "<< seg.time() << " +/- " << seg.timeErr() << " ns";
137 
138  return os;
139 }
float xx() const
Definition: LocalError.h:24
float bunchX() const
Definition: GEMSegment.h:77
LocalError localPositionError() const override
Definition: GEMSegment.cc:89
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:45
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:65
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
float time() const
Definition: GEMSegment.h:75
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:61
LocalPoint localPosition() const override
Definition: GEMSegment.h:42
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:93
float timeErr() const
Definition: GEMSegment.h:76
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:69