31#include "BDSIMClass.hh"
32#include "BDSException.hh"
35int main(
int argc,
char** argv)
40 bds =
new BDSIM(argc, argv);
43 if (bds->InitialisationResult() == 1)
44 {std::cout <<
"Initialisation failed" << std::endl;
return 1;}
52 std::cerr << std::endl << exception.
what() << std::endl;
56 catch (
const std::exception& exception)
58 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)