/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/TruSim/TruSim-00-00-17/src/BesTruthVertex.cc

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------//
00012 
00013 #include <iomanip>
00014 using namespace std;
00015 #include "BesTruthVertex.hh"
00016 #include "BesTruthTrack.hh"
00017 
00018 BesTruthVertex::BesTruthVertex()
00019 :m_processName(""),
00020 m_position(0), 
00021 m_time(0), 
00022 m_parent(0),
00023 m_terminal(false),
00024 m_index(unassigned),
00025 m_currentDau(0),
00026 m_minDau(0)
00027 {}
00028 
00029 ostream &operator<<(ostream &stream, const BesTruthVertex &vert)
00030 {
00031   if (vert.GetIndex() == BesTruthVertex::unassigned)
00032     stream << "  --";
00033   else
00034     stream << setw(4) << vert.GetIndex();
00035 
00036   if (vert.GetParentTrack())
00037     stream << setw(4) << vert.GetParentTrack()->GetIndex();
00038   else
00039     stream << "  --";
00040 
00041   stream << " "  << setiosflags(ios::fixed)
00042          << setprecision(4) << setw(11) << vert.GetPosition().x()
00043          << setprecision(4) << setw(11) << vert.GetPosition().y()
00044          << setprecision(4) << setw(11) << vert.GetPosition().z()
00045          << " "  << setiosflags(ios::scientific)
00046          << setprecision(4) << setw(11) << vert.GetTime()
00047          << resetiosflags(ios::scientific);
00048 
00049   return stream;
00050 }
00051 
00052 ostream &operator<<(ostream &stream, const BesTruthVertex *vert)
00053 {
00054   stream << *vert;
00055   return stream;
00056 }
00057 
00058 

Generated on Tue Nov 29 23:14:33 2016 for BOSS_7.0.2 by  doxygen 1.4.7