CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexTracker.cc
Go to the documentation of this file.
1 #include "VertexTracker.h"
2 
3 #include <ostream>
4 
5 unsigned int VertexTracker::next_id_ = 0;
6 
7 std::ostream&
8 operator<<(std::ostream& ost, const VertexTracker& vt)
9 {
10 // static int empty_count = 1;
11 // std::string name = vt.name_;
12 
13  // this is a bad place for this code
14 // if (name.empty())
15 // {
16 // std::ostringstream ostr;
17 // ostr << "EmptyName-" << empty_count;
18 // ++empty_count;
19 // name = ostr.str();
20 // }
21 
22  ost << vt.id_ << '\t'
23  << (void*)vt.addr_ << '\t'
24  << vt.total_as_leaf_ << '\t'
25  << vt.total_seen_ << '\t'
26  << vt.in_path_ << '\t'
27  << vt.percent_leaf_ << '\t'
28  << vt.percent_path_ << '\t'
29  << '"' << vt.library_ << "\"\t"
30  << '"' << vt.name_ << '"';
31 
32  return ost;
33 }
std::string library_
Definition: VertexTracker.h:91
std::string name_
Definition: VertexTracker.h:90
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
address_type addr_
Definition: VertexTracker.h:92
unsigned int total_as_leaf_
Definition: VertexTracker.h:94
float percent_leaf_
Definition: VertexTracker.h:99
unsigned int in_path_
Definition: VertexTracker.h:96
unsigned int total_seen_
Definition: VertexTracker.h:95
unsigned int id_
Definition: VertexTracker.h:93
static unsigned int next_id_