CMS 3D CMS Logo

Functions | Variables
DTRecSegment4D.cc File Reference
#include "DataFormats/DTRecHit/interface/DTRecSegment4D.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

static AlgebraicMatrix initThe2DPhiProjMatrix ()
 
static AlgebraicMatrix initThe2DZProjMatrix ()
 
static AlgebraicMatrix initThe4DProjectionMatrix ()
 
std::ostream & operator<< (std::ostream &os, const DTRecSegment4D &seg)
 

Variables

static const AlgebraicMatrix the2DPhiProjMatrix {initThe2DPhiProjMatrix()}
 
static const AlgebraicMatrix the2DZProjMatrix {initThe2DZProjMatrix()}
 
static const AlgebraicMatrix the4DProjectionMatrix {initThe4DProjectionMatrix()}
 

Detailed Description

Author
Stefano Lacaprara - INFN Legnaro stefa.nosp@m.no.l.nosp@m.acapr.nosp@m.ara@.nosp@m.pd.in.nosp@m.fn.i.nosp@m.t
Riccardo Bellan - INFN TO ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition in file DTRecSegment4D.cc.

Function Documentation

static AlgebraicMatrix initThe2DPhiProjMatrix ( )
static

Definition at line 157 of file DTRecSegment4D.cc.

References the2DPhiProjMatrix.

157  {
159  the2DPhiProjMatrix[0][1] = 1;
160  the2DPhiProjMatrix[1][3] = 1;
161  return the2DPhiProjMatrix;
162 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the2DPhiProjMatrix
static AlgebraicMatrix initThe2DZProjMatrix ( )
static

Definition at line 165 of file DTRecSegment4D.cc.

References the2DZProjMatrix.

165  {
167  the2DZProjMatrix[0][2] = 1;
168  the2DZProjMatrix[1][4] = 1;
169  return the2DZProjMatrix;
170 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the2DZProjMatrix
static AlgebraicMatrix initThe4DProjectionMatrix ( )
static

Definition at line 147 of file DTRecSegment4D.cc.

References the4DProjectionMatrix.

147  {
149  the4DProjectionMatrix[0][1] = 1;
150  the4DProjectionMatrix[1][2] = 1;
151  the4DProjectionMatrix[2][3] = 1;
152  the4DProjectionMatrix[3][4] = 1;
153  return the4DProjectionMatrix;
154 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the4DProjectionMatrix
std::ostream& operator<< ( std::ostream &  os,
const DTRecSegment4D seg 
)

Definition at line 245 of file DTRecSegment4D.cc.

References DTRecSegment4D::chi2(), DTRecSegment4D::degreesOfFreedom(), DTRecSegment4D::dimension(), DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), DTRecSegment4D::localDirection(), DTRecSegment4D::localPosition(), DTRecSegment4D::phiSegment(), DTRecSegment2D::recHits(), and DTRecSegment4D::zSegment().

245  {
246  os << "Pos " << seg.localPosition() <<
247  " Dir: " << seg.localDirection() <<
248  " dim: " << seg.dimension() <<
249  " chi2/ndof: " << seg.chi2() << "/" << seg.degreesOfFreedom() << " :";
250  if (seg.hasPhi()) os << seg.phiSegment()->recHits().size();
251  else os << 0;
252  os << ":";
253  if (seg.hasZed()) os << seg.zSegment()->recHits().size();
254  else os << 0;
255  return os;
256 }
int dimension() const override
Dimension (in parameter space)
LocalPoint localPosition() const override
Local position in Chamber frame.
LocalVector localDirection() const override
Local direction in Chamber frame.
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
double chi2() const override
Chi2 of the segment fit.
bool hasPhi() const
Does it have the Phi projection?
bool hasZed() const
Does it have the Z projection?
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.

Variable Documentation

const AlgebraicMatrix the2DPhiProjMatrix {initThe2DPhiProjMatrix()}
static

Definition at line 163 of file DTRecSegment4D.cc.

Referenced by initThe2DPhiProjMatrix(), and DTRecSegment4D::projectionMatrix().

const AlgebraicMatrix the2DZProjMatrix {initThe2DZProjMatrix()}
static

Definition at line 171 of file DTRecSegment4D.cc.

Referenced by initThe2DZProjMatrix(), and DTRecSegment4D::projectionMatrix().

const AlgebraicMatrix the4DProjectionMatrix {initThe4DProjectionMatrix()}
static