#include "DMM/Particle.h" MEMPHYS::DMM::Particle::Particle(MEMPHYS::DMM::IDataServices& aService) :MEMPHYS::DMM::BaseData(aService) ,m_PDGId(0) ,m_momentum() ,m_prodPoint() ,m_endPoint() { std::cout << "Create Particle("<(this); } else if(aClass=="MEMPHYS::DMM::Particle") { return (void*)static_cast(this); } else if(aClass=="MEMPHYS:DMM::BaseData") { return (void*)static_cast(this); } else { return 0; } }//cast //---------------------------------------------------------- bool MEMPHYS::DMM::Particle::visit(Slash::Store::IConstVisitor&) const { return true; }//visit //---------------------------------------------------------- bool MEMPHYS::DMM::Particle::read(Slash::Store::IVisitor&) { return true; }//read //---------------------------------------------------------- void MEMPHYS::DMM::Particle::dump(std::ostream& f, const std::string& option) { MEMPHYS::DMM::BaseData::dump(f,option); f << " PDG code " << m_PDGId << " mass " << m_momentum[4] << ", " << " Etot " << m_momentum[3] << "\n " << "(px,py,pz) " << m_momentum[0] << ", " << m_momentum[1] << ", " << m_momentum[2] << ", " << std::endl; f << " Production Point: "; m_prodPoint->dump(f,option); if (!m_endPoint) { f << " End/Decay Point: "; m_endPoint->dump(f,option); } }//dump