CMS 3D CMS Logo

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_.

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 }


Generated on Tue Jun 9 17:53:33 2009 for CMSSW by  doxygen 1.5.4