#include "DMM/WCDigit.h" MEMPHYS::DMM::WCDigit::WCDigit(MEMPHYS::DMM::IDataServices& aService) :MEMPHYS::DMM::BaseData(aService) ,m_hit() ,m_effPE(0) ,m_time(0) { std::cout << "Create Digit("<(this); } else if(aClass=="MEMPHYS::DMM::WCDigit") { return (void*)static_cast(this); } else if(aClass=="MEMPHYS:DMM::BaseData") { return (void*)static_cast(this); } else { return 0; } }//cast //---------------------------------------------------------- bool MEMPHYS::DMM::WCDigit::visit(Slash::Store::IConstVisitor&) const { return true; }//visit //---------------------------------------------------------- bool MEMPHYS::DMM::WCDigit::read(Slash::Store::IVisitor&) { return true; }//read //---------------------------------------------------------- void MEMPHYS::DMM::WCDigit::dump(std::ostream& f, const std::string& option) { MEMPHYS::DMM::BaseData::dump(f,option); f << "effective # pe " << m_effPE << ", " << "time " << m_time << std::endl; f << " The corresponding WCHit" << std::endl; m_hit->dump(f,option); }//dump