TrackingTools
TrajectoryState
src
FreeTrajectoryStatePrint.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h
"
2
#include <ostream>
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);
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
{
32
const
AlgebraicSymMatrix55
&
m
= fts.
curvilinearError
().
matrix
();
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
}
mps_fire.i
i
Definition:
mps_fire.py:428
FreeTrajectoryState.h
FreeTrajectoryState::hasError
bool hasError() const
Definition:
FreeTrajectoryState.h:77
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
std::operator<<
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition:
Utilities.h:32
FreeTrajectoryState::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition:
FreeTrajectoryState.h:89
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:78
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
std
Definition:
JetResolutionObject.h:76
FreeTrajectoryState
Definition:
FreeTrajectoryState.h:27
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
Generated for CMSSW Reference Manual by
1.8.16