/* * testAccel1.cc * * Created on: 23 mars 2011 * Author: christian */ #include "Accelerator.h" #include "Dipole.h" #include "FODO.h" #include #include #include using namespace std; using namespace vhc; /** Test d'affichage.*/ void printTest() { cout<<"This is the print test running."<add(e1); acc->add(e2); acc->add(e3); acc->add(e4); acc->add(e5); acc->add(e6); acc->add(e7); acc->add(e8); acc->close(); return acc; } /** Test de simulateur.*/ void simulatorTest() { cout<<"This is the simulator test running."<getElements().front()->getEntryPosition(), 9.11E-31, constants::E); a->step(1.); a->clear(); delete a; } /** Lance les tests.*/ int main() { simulatorTest(); printTest(); return 0; }