BOSS 8.0.0
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 "TruSim/BesTruthTrack.hh"
16#include "TruSim/BesTruthVertex.hh"
17
19 : m_processName( "" )
20 , m_position( 0 )
21 , m_time( 0 )
22 , m_parent( 0 )
23 , m_terminal( false )
24 , m_index( unassigned )
25 , m_currentDau( 0 )
26 , m_minDau( 0 ) {}
27
28ostream& operator<<( ostream& stream, const BesTruthVertex& vert ) {
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}
43
44ostream& operator<<( ostream& stream, const BesTruthVertex* vert ) {
45 stream << *vert;
46 return stream;
47}
ostream & operator<<(ostream &stream, const BesTruthVertex &vert)
friend ostream & operator<<(ostream &, const BesTruthVertex &)