#include "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 33 of file BesTruthTrack.cc.
34{
35
37 stream << " --";
38 else
39 stream << setw(4) << track.
GetIndex() <<
" ";
40
41
44 else
45 stream <<" --";
46
47
50 else
51 stream <<" --";
52
53
56 else
57 stream << " --";
58
59
62 else
63 stream << " --";
64
65
66
67 stream << " " << setiosflags(ios::fixed)
68 <<setprecision(4) << setw(11) << track.
GetP4().x()
69 <<setprecision(4) << setw(11) << track.
GetP4().y()
70 <<setprecision(4) << setw(11) << track.
GetP4().z()
71 <<setprecision(4) << setw(11) << track.
GetP4().e();
72
73
75 {
77 for(G4int i=0;i<nDaughter;i++)
79 }
80 return stream;
81}
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 83 of file BesTruthTrack.cc.
84{
85 stream << *track;
86 return stream;
87}