#include "DMM/Vertex.h" MEMPHYS::DMM::Vertex::Vertex(MEMPHYS::DMM::IDataServices& aService) :MEMPHYS::DMM::BaseData(aService) ,m_position() ,m_incomingPart() ,m_outgoingParts() { std::cout << "Create Vertex("<(this); } else if(aClass=="MEMPHYS::DMM::Vertex") { return (void*)static_cast(this); } else if(aClass=="MEMPHYS:DMM::BaseData") { return (void*)static_cast(this); } else { return 0; } }//cast //---------------------------------------------------------- bool MEMPHYS::DMM::Vertex::visit(Slash::Store::IConstVisitor&) const { return true; }//visit //---------------------------------------------------------- bool MEMPHYS::DMM::Vertex::read(Slash::Store::IVisitor&) { return true; }//read //---------------------------------------------------------- void MEMPHYS::DMM::Vertex::dump(std::ostream& f, const std::string& option) { MEMPHYS::DMM::BaseData::dump(f,option); m_position->dump(f,option); if(!m_incomingPart) { f << "Incoming Particle" << std::endl; m_incomingPart->dump(f,option); } else { f << "Primary vertex" << std::endl; } if (!m_outgoingParts.empty()) { Particle::VecOfSharedPtr::iterator ip; f << m_outgoingParts.size() << " Outgoing Particles" << std::endl; for (ip = m_outgoingParts.begin(); ip != m_outgoingParts.end(); ++ip ) { (*ip)->dump(f,option); } } else { f << "No outgoing particles" << std::endl; } }//dump