00001 #include "Event/SimTrack.h" 00002 #include <ostream> 00003 00004 using namespace DayaBay; 00005 00006 std::ostream& SimTrack::fillStream(std::ostream& s) const 00007 { 00008 s << "{ " 00009 << "trackId : " << m_trackId << std::endl 00010 << "parentParticle : " << m_parentParticle << std::endl 00011 << "ancestorTrack : " << m_ancestorTrack << std::endl 00012 << "ancestorVertex : " << m_ancestorVertex << std::endl 00013 << "particle : " << m_particle << std::endl 00014 << "vertices : " << m_vertices.size() << std::endl 00015 << "unrecordedDescendants : " << std::endl 00016 << " }"; 00017 for(descendants_map::const_iterator it = m_unrecordedDescendants.begin(); 00018 it != m_unrecordedDescendants.end(); ++it) { 00019 s << "pdg " << it->first << "(" << it->second << ")" << " "; 00020 } 00021 s << std::endl << " }"; 00022 return s; 00023 } 00024 00025 00026 00027 unsigned int SimTrack::unrecordedDescendants(int pdg) const 00028 { 00032 00033 descendants_map::const_iterator it = m_unrecordedDescendants.find(pdg); 00034 if(it == m_unrecordedDescendants.end()) return 0; 00035 return it->second; 00036 } 00037