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 130 of file GEMSegment.cc.

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

130  {
131  os << "GEMSegment: local pos = " << seg.localPosition() << " posErr = (" << sqrt(seg.localPositionError().xx()) << ","
132  << sqrt(seg.localPositionError().yy()) << "0,)\n"
133  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
134  << sqrt(seg.localDirectionError().yy()) << "0,)\n"
135  << " chi2/ndf = " << ((seg.degreesOfFreedom() != 0.) ? seg.chi2() / double(seg.degreesOfFreedom()) : 0)
136  << " #rechits = " << seg.specificRecHits().size() << " bx = " << seg.bunchX() << " deltaPhi = " << seg.deltaPhi();
137 
138  return os;
139 }
LocalError localPositionError() const override
Definition: GEMSegment.cc:98
LocalPoint localPosition() const override
Definition: GEMSegment.h:52
LocalVector localDirection() const override
Local direction.
Definition: GEMSegment.h:55
LocalError localDirectionError() const override
Error on the local direction.
Definition: GEMSegment.cc:102
float deltaPhi() const
Definition: GEMSegment.h:87
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: GEMSegment.h:75
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:23
const std::vector< GEMRecHit > & specificRecHits() const
Definition: GEMSegment.h:79
float bunchX() const
Definition: GEMSegment.h:85
float xx() const
Definition: LocalError.h:22
double chi2() const override
Chi2 of the segment fit.
Definition: GEMSegment.h:71