CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
FreeTrajectoryState.h File Reference
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include "TrackingTools/TrajectoryParametrization/interface/CartesianTrajectoryError.h"
#include "TrackingTools/TrajectoryParametrization/interface/CurvilinearTrajectoryError.h"
#include "DataFormats/TrajectoryState/interface/TrackCharge.h"
#include "TrackingTools/TrajectoryParametrization/interface/TrajectoryStateExceptions.h"
#include <iosfwd>
#include "DataFormats/GeometrySurface/interface/BlockWipedAllocator.h"
#include "FWCore/Utilities/interface/Visibility.h"
#include "FWCore/Utilities/interface/Likely.h"

Go to the source code of this file.

Classes

class  FreeTrajectoryState
 

Functions

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

Function Documentation

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

Definition at line 6 of file FreeTrajectoryStatePrint.cc.

References FreeTrajectoryState::curvilinearError(), FreeTrajectoryState::hasError(), i, j, m, CurvilinearTrajectoryError::matrix(), FreeTrajectoryState::parameters(), 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
mathSSE::Vec4< T > v