CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/FWCore/Services/src/VertexTracker.cc

Go to the documentation of this file.
00001 #include "VertexTracker.h"
00002 
00003 #include <ostream>
00004 
00005 unsigned int VertexTracker::next_id_ = 0;
00006 
00007 std::ostream& 
00008 operator<<(std::ostream& ost, const VertexTracker& vt)
00009 {
00010 //   static int empty_count = 1;
00011 //   std::string name = vt.name_;
00012 
00013   // this is a bad place for this code
00014 //   if (name.empty())
00015 //     {
00016 //       std::ostringstream ostr;
00017 //       ostr << "EmptyName-" << empty_count;
00018 //       ++empty_count;
00019 //       name = ostr.str();
00020 //     }
00021 
00022   ost << vt.id_ << '\t'
00023       << (void*)vt.addr_ << '\t'
00024       << vt.total_as_leaf_ << '\t'
00025       << vt.total_seen_ << '\t'
00026       << vt.in_path_ << '\t'
00027       << vt.percent_leaf_ << '\t'
00028       << vt.percent_path_ << '\t'
00029       << '"' << vt.library_ << "\"\t"
00030       << '"' << vt.name_ << '"';
00031 
00032   return ost;
00033 }