BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTruthVertex.cc File Reference
#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)
 

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 29 of file BesTruthVertex.cc.

30{
32 stream << " --";
33 else
34 stream << setw(4) << vert.GetIndex();
35
36 if (vert.GetParentTrack())
37 stream << setw(4) << vert.GetParentTrack()->GetIndex();
38 else
39 stream << " --";
40
41 stream << " " << setiosflags(ios::fixed)
42 << setprecision(4) << setw(11) << vert.GetPosition().x()
43 << setprecision(4) << setw(11) << vert.GetPosition().y()
44 << setprecision(4) << setw(11) << vert.GetPosition().z()
45 << " " << setiosflags(ios::scientific)
46 << setprecision(4) << setw(11) << vert.GetTime()
47 << resetiosflags(ios::scientific);
48
49 return stream;
50}

◆ operator<<() [2/2]

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

Definition at line 52 of file BesTruthVertex.cc.

53{
54 stream << *vert;
55 return stream;
56}