Package pymontecarlo.program._analytical.fileformat.options

Examples of pymontecarlo.program._analytical.fileformat.options.DetectorExtractorFactory$PhiZDetectorExtractor


            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);
View Full Code Here


        Map<String, Detector> detectors = new HashMap<String, Detector>();

        DetectorExtractor extractor;
        String key;
        Detector detector;
        for (Element detectorElement : detectorsRoot.getChildren()) {
            key = detectorElement.getAttributeValue("_key");

            extractor =
                    (DetectorExtractor) ExtractorManager
View Full Code Here

        HDF5Group resultsGroup =
                rootGroup.createSubgroup("result-" + identifier);

        // Save results from detectors
        String key;
        Detector detector;
        for (Entry<String, Detector> entry : detectors.entrySet()) {
            key = entry.getKey();
            detector = entry.getValue();
            detector.saveResults(resultsGroup, key);
        }

        // Save overall log
        Properties logProps = new Properties();
        logProps.putAll(props.getPropertyMap());
View Full Code Here

            double azimuthAngle = extractAzimuthAngle(detectorElement);
            int channels = extractChannels(detectorElement);
            List<XRayTransition> transitions =
                    extractTransitions(detectorElement);

            return new PhiZDetector(takeOffAngle, azimuthAngle, channels,
                    transitions);
        }
View Full Code Here

            double takeOffAngle = extractTakeOffAngle(detectorElement);
            double azimuthAngle = extractAzimuthAngle(detectorElement);
            List<XRayTransition> transitions =
                    extractTransitions(detectorElement);

            return new PhotonIntensityDetector(takeOffAngle, azimuthAngle,
                    transitions);
        }
View Full Code Here

TOP

Related Classes of pymontecarlo.program._analytical.fileformat.options.DetectorExtractorFactory$PhiZDetectorExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.