32#include "BDSIMClass.hh"
33#include "BDSException.hh"
37int main(
int argc,
char** argv)
42 bds =
new BDSIM(argc, argv);
45 if (bds->InitialisationResult() == 1)
46 {std::cout <<
"Intialisation failed" << std::endl;
return 1;}
54 std::cerr << std::endl << exception.
what() << std::endl;
58 catch (
const std::exception& exception)
60 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)