00001 #include "McTruth/DecayMode.h" 00002 #include <iostream> 00003 void DecayMode::getData (int* data, unsigned int size) { 00004 for (unsigned int index=0; index<m_size; index++) { 00005 data[index] = m_data[index]; 00006 } 00007 } 00008 00009 void DecayMode::putData (int* data, unsigned int size) { 00010 assert(size); 00011 for (unsigned int index=0; index<m_size; index++) { 00012 m_data[index] = data[index]; 00013 } 00014 } 00015 00016 bool DecayMode::values_ok(unsigned int size) { 00017 if (size > m_size) { 00018 std::cout << " DecayMode:: error: size beyond the range!" <<std::endl; 00019 return false; 00020 } else { 00021 return true; 00022 } 00023 }