Main Page
Namespaces
Classes
Package Documentation
DataFormats
VertexReco
src
print.cc
Go to the documentation of this file.
1
#include "
DataFormats/VertexReco/interface/print.h
"
2
#include "
DataFormats/VertexReco/interface/Vertex.h
"
3
#include <sstream>
4
5
using namespace
std
;
6
7
namespace
reco
{
8
string
print
(
const
Vertex
&
vtx
,
edm::Verbosity
v
) {
9
ostringstream
out
;
10
if
( v >
edm::Silent
) {
11
out <<
"vertex position (x, y, z) = ( "
;
12
out.precision(6); out.width(13); out<< vtx.
x
();
13
out.precision(6); out.width(13); out<< vtx.
y
();
14
out.precision(6); out.width(13); out<< vtx.
z
();
15
out <<
" )"
<< endl;
16
// if ( v >= normal ) {
17
out <<
"error = "
<< endl;
18
for
(
int
i
= 0;
i
< 2;
i
++) {
19
for
(
int
j = 0; j < 2; j++) {
20
out.precision(6); out.width(13); out<<vtx.
covariance
(
i
, j);
21
}
22
out << endl;
23
}
24
out << endl;
25
}
26
// if ( v >= edm::Detailed ) {
27
// print track weights
28
// print original and refitted track parameters
29
// }
30
return
out.str();
31
}
32
}
mps_fire.i
i
Definition:
mps_fire.py:156
edm::Silent
Definition:
Verbosity.h:6
reco::Vertex::y
double y() const
y coordinate
Definition:
Vertex.h:113
reco::print
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition:
print.cc:10
std
Definition:
JetResolutionObject.h:76
reco::Vertex::covariance
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition:
Vertex.h:130
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
edm::Verbosity
Verbosity
Definition:
Verbosity.h:5
reco::Vertex
Definition:
Vertex.h:34
reco::Vertex::z
double z() const
z coordinate
Definition:
Vertex.h:115
Vertex.h
reco::Vertex::x
double x() const
x coordinate
Definition:
Vertex.h:111
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition:
badGlobalMuonTaggersAOD_cff.py:5
print.h
Generated for CMSSW Reference Manual by
1.8.11