/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

SimVertex.cc
Go to the documentation of this file.
00001 #include "Event/SimVertex.h"
00002 #include "Event/SimTrackReference.h"
00003 #include "Event/SimTrack.h"
00004 #include <math.h>
00005 
00006 using namespace DayaBay;
00007 
00008 #include <iostream>
00009 
00010 std::ostream& DayaBay::SimVertex::fillStream(std::ostream& s) const
00011 {
00012     s << "{ "
00013       << "track :       " << m_track << std::endl
00014       << "process :     " << m_process << std::endl
00015       << "time :        " << (float)m_time << std::endl
00016       << "position :    " << m_position << std::endl
00017       << "totalEnergy : " << (float)m_totalEnergy << std::endl
00018       << "momentum :    " << m_momentum << std::endl
00019       << "secondaries : " << m_secondaries.size() << std::endl << " }";
00020     return s;
00021 }
00022 
00023 double SimVertex::mass() const
00024 {
00029     return sqrt(fabs(m_totalEnergy*m_totalEnergy - m_momentum.Mag2()));  
00030 }
00031 
00032 double SimVertex::kineticEnergy() const
00033 {
00038     return fabs(m_totalEnergy) - mass();
00039 }
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:05:28 for SimEvent by doxygen 1.7.4