32#include "BDSIMClass.hh"
33#include "BDSException.hh"
36int main(
int argc,
char** argv)
41 bds =
new BDSIM(argc, argv);
44 if (bds->InitialisationResult() == 1)
45 {std::cout <<
"Initialisation failed" << std::endl;
return 1;}
53 std::cerr << std::endl << exception.
what() << std::endl;
57 catch (
const std::exception& exception)
59 std::cerr << std::endl << exception.what() << std::endl;
General exception with possible name of object and message.
const char * what() const noexcept override
Override message in std::exception.
Interface class to use BDSIM.
void BeamOn(int nGenerate=-1)