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 Track & trk, edm::Verbosity v ) {
9  ostringstream out;
10  if ( v > edm::Silent ) {
11  out << "track parameters: "
12  << " vtx = " << trk.vertex()
13  << " p = " << trk.momentum()
14  << endl;
15  }
16  if ( v >= edm::Detailed ) {
17  out << "covariance" << endl;
18  for ( int i = 0; i < 5; i++ ) {
19  for ( int j = 0; j < 5; j++ ) {
20  out.precision(6); out.width(13); out << trk.covariance( i, j );
21  }
22  out << endl;
23  }
24  out << endl;
25  }
26  return out.str();
27  }
28 }
int i
Definition: DBlmapReader.cc:9
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:148
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:8
CovarianceMatrix covariance() const
return track covariance matrix
Definition: TrackBase.h:180
Verbosity
Definition: Verbosity.h:5
int j
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:154