1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex4.2/main.cpp

23 lines
387 B
C++

#include "iostream"
#include "CaloCell.hh"
#include "CaloGrid.hh"
#include "Point.hh"
#include "Calorimeter.hh"
int main() {
CaloCell cell(0, 1) ;
Point p ;
CaloGrid grid(2, 2) ;
grid.cell(1, 1);
int nx = 2;
int ny = 2;
Calorimeter calo(nx, ny) ;
std::cout << calo.grid().cell(0,0)->getId() << std::endl;
std::cout << calo.grid().cell(nx-1,ny-1)->getId() << std::endl;
}