#include <iomanip>
#include "BesTruthVertex.hh"
#include "BesTruthTrack.hh"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &stream, const BesTruthVertex &vert) |
ostream & | operator<< (ostream &stream, const BesTruthVertex *vert) |
ostream& operator<< | ( | ostream & | stream, | |
const BesTruthVertex * | vert | |||
) |
ostream& operator<< | ( | ostream & | stream, | |
const BesTruthVertex & | vert | |||
) |
Definition at line 29 of file BesTruthVertex.cc.
References BesTruthTrack::GetIndex(), BesTruthVertex::GetIndex(), BesTruthVertex::GetParentTrack(), BesTruthVertex::GetPosition(), BesTruthVertex::GetTime(), and BesTruthVertex::unassigned.
00030 { 00031 if (vert.GetIndex() == BesTruthVertex::unassigned) 00032 stream << " --"; 00033 else 00034 stream << setw(4) << vert.GetIndex(); 00035 00036 if (vert.GetParentTrack()) 00037 stream << setw(4) << vert.GetParentTrack()->GetIndex(); 00038 else 00039 stream << " --"; 00040 00041 stream << " " << setiosflags(ios::fixed) 00042 << setprecision(4) << setw(11) << vert.GetPosition().x() 00043 << setprecision(4) << setw(11) << vert.GetPosition().y() 00044 << setprecision(4) << setw(11) << vert.GetPosition().z() 00045 << " " << setiosflags(ios::scientific) 00046 << setprecision(4) << setw(11) << vert.GetTime() 00047 << resetiosflags(ios::scientific); 00048 00049 return stream; 00050 }