CMS 3D CMS Logo

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 }
double y() const
y coordinate
Definition: Vertex.h:113
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:130
Verbosity
Definition: Verbosity.h:5
double z() const
z coordinate
Definition: Vertex.h:115
double x() const
x coordinate
Definition: Vertex.h:111
fixed size matrix