CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 6 of file FreeTrajectoryStatePrint.cc.

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

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 }
const GlobalTrajectoryParameters & parameters() const
const CurvilinearTrajectoryError & curvilinearError() const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
const AlgebraicSymMatrix55 & matrix() const
ROOT::Math::SVector< double, 6 > AlgebraicVector6
AlgebraicVector6 vector() const