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

◆ initThe2DPhiProjMatrix()

static AlgebraicMatrix initThe2DPhiProjMatrix ( )
static

Definition at line 134 of file DTRecSegment4D.cc.

134  {
136  the2DPhiProjMatrix[0][1] = 1;
137  the2DPhiProjMatrix[1][3] = 1;
138  return the2DPhiProjMatrix;
139 }

References the2DPhiProjMatrix.

◆ initThe2DZProjMatrix()

static AlgebraicMatrix initThe2DZProjMatrix ( )
static

Definition at line 142 of file DTRecSegment4D.cc.

142  {
144  the2DZProjMatrix[0][2] = 1;
145  the2DZProjMatrix[1][4] = 1;
146  return the2DZProjMatrix;
147 }

References the2DZProjMatrix.

◆ initThe4DProjectionMatrix()

static AlgebraicMatrix initThe4DProjectionMatrix ( )
static

Definition at line 124 of file DTRecSegment4D.cc.

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 }

References the4DProjectionMatrix.

◆ operator<<()

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

Definition at line 217 of file DTRecSegment4D.cc.

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 }

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

Variable Documentation

◆ the2DPhiProjMatrix

const AlgebraicMatrix the2DPhiProjMatrix {initThe2DPhiProjMatrix()}
static

Definition at line 140 of file DTRecSegment4D.cc.

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

◆ the2DZProjMatrix

const AlgebraicMatrix the2DZProjMatrix {initThe2DZProjMatrix()}
static

Definition at line 148 of file DTRecSegment4D.cc.

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

◆ the4DProjectionMatrix

const AlgebraicMatrix the4DProjectionMatrix {initThe4DProjectionMatrix()}
static
DTRecSegment4D::dimension
int dimension() const override
Dimension (in parameter space)
Definition: DTRecSegment4D.h:79
DTRecSegment4D::localDirection
LocalVector localDirection() const override
Local direction in Chamber frame.
Definition: DTRecSegment4D.h:67
the2DZProjMatrix
static const AlgebraicMatrix the2DZProjMatrix
Definition: DTRecSegment4D.cc:148
DTRecSegment4D::localPosition
LocalPoint localPosition() const override
Local position in Chamber frame.
Definition: DTRecSegment4D.h:61
DTRecSegment4D::zSegment
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
Definition: DTRecSegment4D.h:99
DTRecSegment2D::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition: DTRecSegment2D.cc:86
the2DPhiProjMatrix
static const AlgebraicMatrix the2DPhiProjMatrix
Definition: DTRecSegment4D.cc:140
DTRecSegment4D::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: DTRecSegment4D.cc:179
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
DTRecSegment4D::hasZed
bool hasZed() const
Does it have the Z projection?
Definition: DTRecSegment4D.h:93
DTRecSegment4D::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: DTRecSegment4D.cc:170
DTRecSegment4D::hasPhi
bool hasPhi() const
Does it have the Phi projection?
Definition: DTRecSegment4D.h:90
DTRecSegment4D::phiSegment
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
Definition: DTRecSegment4D.h:96
the4DProjectionMatrix
static const AlgebraicMatrix the4DProjectionMatrix
Definition: DTRecSegment4D.cc:132