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 134 of file DTRecSegment4D.cc.

References the2DPhiProjMatrix.

134  {
136  the2DPhiProjMatrix[0][1] = 1;
137  the2DPhiProjMatrix[1][3] = 1;
138  return the2DPhiProjMatrix;
139 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the2DPhiProjMatrix
static AlgebraicMatrix initThe2DZProjMatrix ( )
static

Definition at line 142 of file DTRecSegment4D.cc.

References the2DZProjMatrix.

142  {
144  the2DZProjMatrix[0][2] = 1;
145  the2DZProjMatrix[1][4] = 1;
146  return the2DZProjMatrix;
147 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the2DZProjMatrix
static AlgebraicMatrix initThe4DProjectionMatrix ( )
static

Definition at line 124 of file DTRecSegment4D.cc.

References the4DProjectionMatrix.

124  {
126  the4DProjectionMatrix[0][1] = 1;
127  the4DProjectionMatrix[1][2] = 1;
128  the4DProjectionMatrix[2][3] = 1;
129  the4DProjectionMatrix[3][4] = 1;
130  return the4DProjectionMatrix;
131 }
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix the4DProjectionMatrix
std::ostream& operator<< ( std::ostream &  os,
const DTRecSegment4D seg 
)

Definition at line 217 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().

217  {
218  os << "Pos " << seg.localPosition() << " Dir: " << seg.localDirection() << " dim: " << seg.dimension()
219  << " chi2/ndof: " << seg.chi2() << "/" << seg.degreesOfFreedom() << " :";
220  if (seg.hasPhi())
221  os << seg.phiSegment()->recHits().size();
222  else
223  os << 0;
224  os << ":";
225  if (seg.hasZed())
226  os << seg.zSegment()->recHits().size();
227  else
228  os << 0;
229  return os;
230 }
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 140 of file DTRecSegment4D.cc.

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

const AlgebraicMatrix the2DZProjMatrix {initThe2DZProjMatrix()}
static

Definition at line 148 of file DTRecSegment4D.cc.

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

const AlgebraicMatrix the4DProjectionMatrix {initThe4DProjectionMatrix()}
static