#ifndef CLUSTER_H #define CLUSTER_H namespace pool_tutorial { // Simple class modeling a calorimetric cluster class Cluster { public: // Constructor Cluster(); // Destructor virtual ~Cluster(); // Copy constructor Cluster( const Cluster& rhs ); // Assignment operator Cluster& operator=( const Cluster& rhs ); // Retrieves/sets the deposited energy double energyDeposited() const; void setEnergyDeposited( double energyDeposited ); // Retrieves/sets the position of the shower double centreInX() const; double centreInY() const; double startingPointAlongZ() const; void setPosition( double x, double y, double z ); private: // The energy deposited double m_energyDeposited; // The x-centre of the shower double m_centreInX; // The y-centre of the shower double m_centreInY; // The starting point of the shower along the z-axis double m_startingPointAlongZ; }; } #endif