Package gov.nist.microanalysis.NISTMonte

Examples of gov.nist.microanalysis.NISTMonte.Electron




    @Override
    public Electron createElectron() {
        return new Electron(getCenter(), getTheta(), getPhi(), getBeamEnergy());
    }
View Full Code Here


        final double r =
                random.nextGaussian() * GAUSSIAN_TO_FWHM * diameter / 2.0;
        final double th = 2.0 * Math.PI * random.nextDouble();
        initialPos[0] += r * Math.cos(th);
        initialPos[1] += r * Math.sin(th);
        return new Electron(initialPos, getTheta(), getPhi(), getBeamEnergy());
    }
View Full Code Here



    @Test
    public void testCreateElectron() {
        Electron e = beam.createElectron();
        assertEquals(5.0, FromSI.keV(e.getEnergy()), 1e-4);
    }
View Full Code Here



    @Test
    public void testCreateElectron() {
        Electron e = beam.createElectron();
        assertEquals(5.0, FromSI.keV(e.getEnergy()), 1e-4);
    }
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.NISTMonte.Electron

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.