#include "Cluster.h" pool_tutorial::Cluster::Cluster(): m_energyDeposited( 0 ), m_centreInX( 0 ), m_centreInY( 0 ), m_startingPointAlongZ( 0 ) {} pool_tutorial::Cluster::~Cluster() {} pool_tutorial::Cluster::Cluster( const pool_tutorial::Cluster& rhs ): m_energyDeposited( rhs.m_energyDeposited ), m_centreInX( rhs.m_centreInX ), m_centreInY( rhs.m_centreInY ), m_startingPointAlongZ( rhs.m_startingPointAlongZ ) {} pool_tutorial::Cluster& pool_tutorial::Cluster::operator=( const pool_tutorial::Cluster& rhs ) { m_energyDeposited = rhs.m_energyDeposited; m_centreInX = rhs.m_centreInX; m_centreInY = rhs.m_centreInY; m_startingPointAlongZ = rhs.m_startingPointAlongZ; return *this; } double pool_tutorial::Cluster::energyDeposited() const { return m_energyDeposited; } void pool_tutorial::Cluster::setEnergyDeposited( double energyDeposited ) { m_energyDeposited = energyDeposited; } double pool_tutorial::Cluster::centreInX() const { return m_centreInX; } double pool_tutorial::Cluster::centreInY() const { return m_centreInY; } double pool_tutorial::Cluster::startingPointAlongZ() const { return m_startingPointAlongZ; } void pool_tutorial::Cluster::setPosition( double x, double y, double z ) { m_centreInX = x; m_centreInY = y; m_startingPointAlongZ = z; }