#include "example/test1.hpp" #include "example/test2.hpp" #include using std::cout; using std::endl; int main() { cout << "Testing test2:" << endl; test2* Event = new test2(); float E1 = 50.; float Theta1 = acos(0.9); test1* Cell1 = new test1(E1,Theta1); Event->addCell(Cell1); float E2 = 10.; float Theta2 = acos(0.8); test1* Cell2 = new test1(E2,Theta2); Event->addCell(Cell2); float E3 = 0.05; float Theta3 = acos(0.5); test1* Cell3 = new test1(E3,Theta3); Event->addCell(Cell3); cout << " total ET " << Event->CalcET() << " (should be 53)" << endl; cout << " number of cells " << Event->NCells() << " (should be 2)" << endl; return 0; }