CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FreeTrajectoryStatePrint.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 using namespace std;
5 
6 ostream& operator<<(ostream& os, const FreeTrajectoryState& fts) {
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
ostream & operator<<(std::ostream &o, const vector< std::string > &iValue)
Definition: refresh.cc:30
int j
Definition: DBlmapReader.cc:9
const AlgebraicSymMatrix55 & matrix() const
AlgebraicVector6 vector() const
mathSSE::Vec4< T > v