test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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(), i, 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); os.width(13); os<<v[i];
14  }
15  }
16  os << endl;
17  os << "p = ";
18  {
19  for (int i = 3; i < 6; i++) {
20  os.precision(6); os.width(13); os<<v[i];
21  }
22  }
23  os << endl;
24  }
25  if (fts.hasError()) {
26  os << "error" << endl;
27  {
29  for (int i = 0; i < 5; i++) {
30  for (int j = 0; j < 5; j++) {
31  os.precision(6); os.width(13); os<<m(i,j);
32  }
33  os << endl;
34  }
35  }
36  }
37  else {
38  os << "no error defined." << endl;
39  }
40  return os;
41 }
int i
Definition: DBlmapReader.cc:9
const GlobalTrajectoryParameters & parameters() const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
const CurvilinearTrajectoryError & curvilinearError() const
ROOT::Math::SVector< double, 6 > AlgebraicVector6
int j
Definition: DBlmapReader.cc:9
const AlgebraicSymMatrix55 & matrix() const
AlgebraicVector6 vector() const