CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
print.cc
Go to the documentation of this file.
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 }
int i
Definition: DBlmapReader.cc:9
double y() const
y coordinate
Definition: Vertex.h:110
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:123
Verbosity
Definition: Verbosity.h:5
int j
Definition: DBlmapReader.cc:9
double z() const
y coordinate
Definition: Vertex.h:112
tuple out
Definition: dbtoconf.py:99
double x() const
x coordinate
Definition: Vertex.h:108