//CaloGrid.hh #include "CaloCell.hh" #ifndef CALOGRID_HH #define CALOGRID_HH class CaloGrid { public: CaloGrid( int nx, int ny ) { init(nx, ny ); } CaloGrid( const CaloGrid& other ) { // Set everything using init to allocate memory init(other.nx, other.ny ) ; // Copy elements // Because we make it a 1Dim array, we can simply run over all elements in one go for (int i=0 ; i