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

◆ operator<<()

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

Definition at line 133 of file GEMSegment.cc.

133  {
134  os << "GEMSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
135  << sqrt(seg.localPositionError().yy()) << "0,)\n"
136  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
137  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
138  << " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2() / double(seg.degreesOfFreedom()) : 0)
139  << " #rechits = " << seg.specificRecHits().size() << " bx = " << seg.bunchX() << " time = " << seg.time()
140  << " +/- " << seg.timeErr() << " ns";
141 
142  return os;
143 }

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

GEMSegment::localPosition
LocalPoint localPosition() const override
Definition: GEMSegment.h:52
GEMSegment::bunchX
float bunchX() const
Definition: GEMSegment.h:87
LocalError::xx
float xx() const
Definition: LocalError.h:22
GEMSegment::time
float time() const
Definition: GEMSegment.h:85
GEMSegment::timeErr
float timeErr() const
Definition: GEMSegment.h:86
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GEMSegment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:75
GEMSegment::localPositionError
LocalError localPositionError() const override
Definition: GEMSegment.cc:101
GEMSegment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:71
GEMSegment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:55
GEMSegment::specificRecHits
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:79
GEMSegment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:105
LocalError::yy
float yy() const
Definition: LocalError.h:24