#include "TruSim/BesTruthTrack.hh"
#include <iomanip>
Go to the source code of this file.
◆ operator<<() [1/2]
| ostream & operator<< |
( |
ostream & | stream, |
|
|
const BesTruthTrack & | track ) |
Definition at line 31 of file BesTruthTrack.cc.
31 {
32
34 else stream << setw( 4 ) << track.
GetIndex() <<
" ";
35
36
38 else stream << " --";
39
40
42 else stream << " --";
43
44
46 else stream << " --";
47
48
51 else stream << " --";
52
53
54 stream << " " << setiosflags( ios::fixed ) << setprecision( 4 ) << setw( 11 )
55 << track.
GetP4().x() << setprecision( 4 ) << setw( 11 ) << track.
GetP4().y()
56 << setprecision( 4 ) << setw( 11 ) << track.
GetP4().z() << setprecision( 4 )
57 << setw( 11 ) << track.
GetP4().e();
58
59
61 {
63 for ( G4int i = 0; i < nDaughter; i++ )
65 }
66 return stream;
67}
HepLorentzVector GetP4() const
BesTruthVertex * GetTerminalVertex() const
BesTruthVertex * GetVertex() const
vector< int > GetDaughterIndexes() const
G4String GetParticleName() const
◆ operator<<() [2/2]
| ostream & operator<< |
( |
ostream & | stream, |
|
|
const BesTruthTrack * | track ) |
Definition at line 69 of file BesTruthTrack.cc.
69 {
70 stream << *track;
71 return stream;
72}