CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/FWCore/Services/src/VertexTracker.cc File Reference

#include "VertexTracker.h"
#include <ostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ost, const VertexTracker &vt)

Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const VertexTracker vt 
)

Definition at line 8 of file VertexTracker.cc.

References VertexTracker::addr_, VertexTracker::id_, VertexTracker::in_path_, VertexTracker::library_, VertexTracker::name_, VertexTracker::percent_leaf_, VertexTracker::percent_path_, VertexTracker::total_as_leaf_, and VertexTracker::total_seen_.

{
//   static int empty_count = 1;
//   std::string name = vt.name_;

  // this is a bad place for this code
//   if (name.empty())
//     {
//       std::ostringstream ostr;
//       ostr << "EmptyName-" << empty_count;
//       ++empty_count;
//       name = ostr.str();
//     }

  ost << vt.id_ << '\t'
      << (void*)vt.addr_ << '\t'
      << vt.total_as_leaf_ << '\t'
      << vt.total_seen_ << '\t'
      << vt.in_path_ << '\t'
      << vt.percent_leaf_ << '\t'
      << vt.percent_path_ << '\t'
      << '"' << vt.library_ << "\"\t"
      << '"' << vt.name_ << '"';

  return ost;
}