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();
SpectrumProperties props = extractor.getSpectrumProperties();
Map<String, Detector> detectors = extractor.getDetectors();
Strategy strategy = extractor.getStrategy();
// Apply models' strategy
report(0.0, "Setup models");
strategy.addAlgorithm(PhiRhoZAlgorithm.class, getCorrectionAlgorithm());
AlgorithmUser.applyGlobalOverride(strategy);