Package gov.nist.microanalysis.EPQLibrary

Examples of gov.nist.microanalysis.EPQLibrary.XRayTransition


                }

                element =
                        gov.nist.microanalysis.EPQLibrary.Element
                                .byAtomicNumber(z);
                transitions.add(new XRayTransition(element, src - 1, dest - 1));
            }

            return transitions;
        }
View Full Code Here


        switch (ae.getID()) {
        case BaseXRayGeneration3.XRayGeneration: {
            for (int i = xrayEventListener.getEventCount() - 1; i >= 0; i--) {
                XRayTransport3.XRayTr xrtransport =
                        (XRayTransport3.XRayTr) xrayEventListener.getXRay(i);
                XRayTransition xrt = xrtransport.getTransition();

                if (xrt != null) {
                    double[] pos = xrtransport.getInitialPos();

                    HistogramDouble3D emittedDistribution =
View Full Code Here

        switch (ae.getID()) {
        case BaseXRayGeneration3.XRayGeneration: {
            for (int i = xrayEventListener.getEventCount() - 1; i >= 0; i--) {
                XRayTransport3.XRayTr xrtransport =
                        (XRayTransport3.XRayTr) xrayEventListener.getXRay(i);
                XRayTransition xrt = xrtransport.getTransition();

                if (xrt != null) {
                    // From
                    // http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html
                    double[] pos = xrtransport.getInitialPos();
View Full Code Here

                    new UserSpecifiedCoefficient(baseMAC);

            gov.nist.microanalysis.EPQLibrary.Element absorber;
            double energy, macValue;
            int z, src, dest;
            XRayTransition transition;
            for (Element subelement : modelElement.getChildren("mac")) {
                try {
                    absorber =
                            gov.nist.microanalysis.EPQLibrary.Element
                                    .byAtomicNumber(subelement.getAttribute(
                                            "absorber").getIntValue());
                } catch (DataConversionException e) {
                    throw new IOException(e);
                }

                if (subelement.getAttribute("energy") != null) {
                    try {
                        energy =
                                subelement.getAttribute("energy")
                                        .getDoubleValue();
                    } catch (DataConversionException e) {
                        throw new IOException(e);
                    }

                } else {
                    try {
                        z = subelement.getAttribute("z").getIntValue();
                        src = subelement.getAttribute("src").getIntValue() - 1;
                        dest =
                                subelement.getAttribute("dest").getIntValue() - 1;
                    } catch (DataConversionException e) {
                        throw new IOException(e);
                    }

                    transition =
                            new XRayTransition(
                                    gov.nist.microanalysis.EPQLibrary.Element
                                            .byAtomicNumber(z),
                                    src, dest);

                    try {
                        energy = transition.getEnergy_eV();
                    } catch (EPQException e) {
                        throw new IOException(e);
                    }
                }
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.EPQLibrary.XRayTransition

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.