CMS 3D CMS Logo

Functions
DTSLRecCluster.cc File Reference
#include "DataFormats/DTRecHit/interface/DTSLRecCluster.h"
#include <iostream>

Go to the source code of this file.

Functions

static AlgebraicMatrix initMatrix ()
 
ostream & operator<< (ostream &os, const DTSLRecCluster &clus)
 

Function Documentation

◆ initMatrix()

static AlgebraicMatrix initMatrix ( )
static

Definition at line 25 of file DTSLRecCluster.cc.

25  {
26  AlgebraicMatrix m(2, 5, 0);
27  m[0][1] = 1;
28  return m;
29 }

References visualization-live-secondInstance_cfg::m.

◆ operator<<()

ostream& operator<< ( ostream &  os,
const DTSLRecCluster clus 
)

Definition at line 64 of file DTSLRecCluster.cc.

64  {
65  os << "Pos " << clus.localPosition() << " err " << clus.localPositionError() << " nHits: " << clus.nHits();
66  return os;
67 }

References DTSLRecCluster::localPosition(), DTSLRecCluster::localPositionError(), and DTSLRecCluster::nHits().

DTSLRecCluster::localPosition
LocalPoint localPosition() const override
Local position.
Definition: DTSLRecCluster.h:64
DTSLRecCluster::nHits
int nHits() const
Definition: DTSLRecCluster.h:75
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
DTSLRecCluster::localPositionError
LocalError localPositionError() const override
Error on the local position.
Definition: DTSLRecCluster.h:65
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14