CMS 3D CMS Logo

Functions
FreeTrajectoryStatePrint.cc File Reference
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
#include <ostream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const FreeTrajectoryState &fts)
 

Function Documentation

◆ operator<<()

ostream& operator<< ( ostream &  os,
const FreeTrajectoryState fts 
)

Definition at line 6 of file FreeTrajectoryStatePrint.cc.

6  {
7  os << "parameters" << endl;
8  {
9  const AlgebraicVector6& v = fts.parameters().vector();
10  os << "x = ";
11  {
12  for (int i = 0; i < 3; i++) {
13  os.precision(6);
14  os.width(13);
15  os << v[i];
16  }
17  }
18  os << endl;
19  os << "p = ";
20  {
21  for (int i = 3; i < 6; i++) {
22  os.precision(6);
23  os.width(13);
24  os << v[i];
25  }
26  }
27  os << endl;
28  }
29  if (fts.hasError()) {
30  os << "error" << endl;
31  {
33  for (int i = 0; i < 5; i++) {
34  for (int j = 0; j < 5; j++) {
35  os.precision(6);
36  os.width(13);
37  os << m(i, j);
38  }
39  os << endl;
40  }
41  }
42  } else {
43  os << "no error defined." << endl;
44  }
45  return os;
46 }

References FreeTrajectoryState::curvilinearError(), FreeTrajectoryState::hasError(), mps_fire::i, dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, CurvilinearTrajectoryError::matrix(), FreeTrajectoryState::parameters(), findQualityFiles::v, and GlobalTrajectoryParameters::vector().

mps_fire.i
i
Definition: mps_fire.py:428
FreeTrajectoryState::hasError
bool hasError() const
Definition: FreeTrajectoryState.h:77
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FreeTrajectoryState::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition: FreeTrajectoryState.h:89
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
GlobalTrajectoryParameters::vector
AlgebraicVector6 vector() const
Definition: GlobalTrajectoryParameters.h:97
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
AlgebraicVector6
ROOT::Math::SVector< double, 6 > AlgebraicVector6
Definition: AlgebraicROOTObjects.h:15
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition: AlgebraicROOTObjects.h:23
CurvilinearTrajectoryError::matrix
const AlgebraicSymMatrix55 & matrix() const
Definition: CurvilinearTrajectoryError.h:61