Package gov.nist.microanalysis.NISTMonte.MonteCarloSS

Examples of gov.nist.microanalysis.NISTMonte.MonteCarloSS.ElectronGun


     *             if an error occurs while saving the log file
     */
    private void createLog(Properties props, MonteCarloSS mcss)
            throws IOException {
        // Beam
        ElectronGun beam = mcss.getElectronGun();
        props.setProperty("beam.energy",
                Double.toString(FromSI.eV(beam.getBeamEnergy())));
        props.setProperty("beam.center.x", Double.toString(beam.getCenter()[0]));
        props.setProperty("beam.center.y", Double.toString(beam.getCenter()[1]));
        props.setProperty("beam.center.z", Double.toString(beam.getCenter()[2]));

        if (beam instanceof PencilBeam) {
            props.setProperty("beam.direction.x",
                    Double.toString(((PencilBeam) beam).getDirection()[0]));
            props.setProperty("beam.direction.y",
View Full Code Here


        // Calculate maximum dimensions
        double[] c0 = new double[3];
        double[] c1 = new double[3];
        mcss.estimateTrajectoryVolume(c0, c1);

        ElectronGun gun = mcss.getElectronGun();
        double offset = 0.0;
        if (gun instanceof GaussianFWHMBeam)
            offset = ((GaussianFWHMBeam) gun).getDiameter() / 2.0;

        double xMin = Math.min(c0[0], c1[0]) - offset;
View Full Code Here


    public MonteCarloSS getMonteCarloSS() throws EPQException {
        MonteCarloSS mcss = createMonteCarloSS();

        ElectronGun beam = createElectronGun();
        mcss.setBeamEnergy(beam.getBeamEnergy());
        mcss.setElectronGun(beam);

        createGeometry(mcss.getChamber());

        return mcss;
View Full Code Here

        // Calculate maximum depth
        double[] c0 = new double[3];
        double[] c1 = new double[3];
        mcss.estimateTrajectoryVolume(c0, c1);

        ElectronGun gun = mcss.getElectronGun();
        double[] center = gun.getCenter();

        // FIXME: Should find a way to know the normal
        double[] normal = Math2.Z_AXIS;

        double rmax = Math2.max(new double[] { c0[0], c0[1], c1[0], c1[1] });
View Full Code Here

        // Calculate maximum depth
        double[] c0 = new double[3];
        double[] c1 = new double[3];
        mcss.estimateTrajectoryVolume(c0, c1);

        ElectronGun gun = mcss.getElectronGun();
        double[] center = gun.getCenter();

        // FIXME: Should find a way to know the normal
        double[] normal = Math2.Z_AXIS;

        double rmax = Math2.max(new double[] { c0[0], c0[1], c1[0], c1[1] });
View Full Code Here

        // Name
        name = root.getAttributeValue("name");

        // Beam
        ElectronGun beam = extractBeam(root);
        mcss.setBeamEnergy(beam.getBeamEnergy());
        mcss.setElectronGun(beam);

        // Geometry
        extractGeometry(root, mcss.getChamber());
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.NISTMonte.MonteCarloSS.ElectronGun

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.