BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTruthVertex.cc File Reference
#include <iomanip>
#include "TruSim/BesTruthTrack.hh"
#include "TruSim/BesTruthVertex.hh"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &stream, const BesTruthVertex &vert)
ostream & operator<< (ostream &stream, const BesTruthVertex *vert)

Function Documentation

◆ operator<<() [1/2]

ostream & operator<< ( ostream & stream,
const BesTruthVertex & vert )

Definition at line 28 of file BesTruthVertex.cc.

28 {
29 if ( vert.GetIndex() == BesTruthVertex::unassigned ) stream << " --";
30 else stream << setw( 4 ) << vert.GetIndex();
31
32 if ( vert.GetParentTrack() ) stream << setw( 4 ) << vert.GetParentTrack()->GetIndex();
33 else stream << " --";
34
35 stream << " " << setiosflags( ios::fixed ) << setprecision( 4 ) << setw( 11 )
36 << vert.GetPosition().x() << setprecision( 4 ) << setw( 11 ) << vert.GetPosition().y()
37 << setprecision( 4 ) << setw( 11 ) << vert.GetPosition().z() << " "
38 << setiosflags( ios::scientific ) << setprecision( 4 ) << setw( 11 ) << vert.GetTime()
39 << resetiosflags( ios::scientific );
40
41 return stream;
42}

◆ operator<<() [2/2]

ostream & operator<< ( ostream & stream,
const BesTruthVertex * vert )

Definition at line 44 of file BesTruthVertex.cc.

44 {
45 stream << *vert;
46 return stream;
47}