ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yiiyama/Toolset/GenTreeViewer/src/GenTreeViewer.cc
(Generate patch)

Comparing UserCode/yiiyama/Toolset/GenTreeViewer/src/GenTreeViewer.cc (file contents):
Revision 1.1 by yiiyama, Fri Jul 13 17:16:04 2012 UTC vs.
Revision 1.2 by yiiyama, Mon Oct 8 12:31:54 2012 UTC

# Line 73 | Line 73 | PNode::print(std::vector<bool>& last)
73    using namespace std;
74  
75    stringstream ss;
76 <  ss << "+" << setw(5) << pdgId << " (" << setw(5) << fixed << setprecision(1) << pt << ") " << status << " ";
76 >  ss << "+" << setw(7) << pdgId << " (" << setw(5) << fixed << setprecision(1) << pt << ") " << status << " ";
77    for(unsigned iD(0); iD < daughters.size(); iD++){
78      if(iD > 0){
79        ss << endl;
80        for(unsigned i(0); i < last.size(); i++)
81 <        ss << (last[i] ? " " : "|") << "                ";
81 >        ss << (last[i] ? " " : "|") << "                  ";
82      }
83      last.push_back(iD == daughters.size() - 1);
84      ss << daughters[iD]->print(last);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines