BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTruthVertex.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2//////// BOOST --- BESIII Object_Oriented Simulation Tool //
3////////---------------------------------------------------------------------------//
4////////Description:
5////////Author : Dengzy
6////
7//// ////Created: Aug, 2004
8//// ////Modified:
9//// ////Comment:
10//// ////---------------------------------------------------------------------------//
11//// //// $Id: BesTruthVertex.cc
12
13#include <iomanip>
14using namespace std;
15#include "BesTruthVertex.hh"
16#include "BesTruthTrack.hh"
17
19:m_processName(""),
20m_position(0),
21m_time(0),
22m_parent(0),
23m_terminal(false),
24m_index(unassigned),
25m_currentDau(0),
26m_minDau(0)
27{}
28
29ostream &operator<<(ostream &stream, const BesTruthVertex &vert)
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}
51
52ostream &operator<<(ostream &stream, const BesTruthVertex *vert)
53{
54 stream << *vert;
55 return stream;
56}
57
58
ostream & operator<<(ostream &stream, const BesTruthVertex &vert)
G4int GetIndex() const
BesTruthTrack * GetParentTrack() const
G4double GetTime() const
friend ostream & operator<<(ostream &, const BesTruthVertex &)
G4ThreeVector GetPosition() const
G4int GetIndex() const