rootElement = builder.build(optionsFile).getRootElement();
} catch (JDOMException e) {
throw new IOException(e);
}
OptionsExtractor extractor = new OptionsExtractor();
extractor.extract(rootElement);
// Create simulation
String name = extractor.getName();
MonteCarloSS mcss = extractor.getMonteCarloSS();
Map<String, Detector> detectors = extractor.getDetectors();
Set<Limit> limits = extractor.getLimits();
Strategy strategy = extractor.getStrategy();
// Setup detectors
report(0.0, "Setup detectors");
setupDetectors(mcss, detectors.values(), strategy);