PlotAverageOffTOF() 공개 메소드

public PlotAverageOffTOF ( ArrayList t ) : void
t System.Collections.ArrayList
리턴 void
예제 #1
0
        private void UpdateTOFAveragePlots()
        {
            Scan averageScan = Controller.GetController().DataStore.AverageScan;

            if (averageScan.Points.Count == 0)
            {
                return;
            }

            ArrayList currentTOFs = averageScan.GetGatedAverageOnShot(startSpectrumGate, endSpectrumGate).TOFs;

            window.PlotAverageOnTOF(currentTOFs);
            if (currentTOFs.Count > 1)
            {
                double normVal = (((TOF)currentTOFs[1]).Integrate(NormSigGateLow, NormSigGateHigh)) - (((TOF)currentTOFs[1]).Integrate(NormBgGateLow, NormBgGateHigh)) * (NormSigGateHigh - NormSigGateLow) / (NormBgGateHigh - NormBgGateLow);
                window.PlotAverageNormedOnTOF(((TOF)currentTOFs[0]) / normVal);
            }
            Profile p = Controller.GetController().ProfileManager.CurrentProfile;

            if (p != null && (bool)p.AcquisitorConfig.switchPlugin.Settings["switchActive"])
            {
                currentTOFs = averageScan.GetGatedAverageOffShot(startSpectrumGate, endSpectrumGate).TOFs;
                window.PlotAverageOffTOF(currentTOFs);
                if (currentTOFs.Count > 1)
                {
                    double normVal = (((TOF)currentTOFs[1]).Integrate(NormSigGateLow, NormSigGateHigh)) - (((TOF)currentTOFs[1]).Integrate(NormBgGateLow, NormBgGateHigh)) * (NormSigGateHigh - NormSigGateLow) / (NormBgGateHigh - NormBgGateLow);
                    window.PlotAverageNormedOffTOF(((TOF)currentTOFs[0]) / normVal);
                }
            }
        }
예제 #2
0
        private void UpdateTOFAveragePlots()
        {
            Scan averageScan = Controller.GetController().DataStore.AverageScan;

            if (averageScan.Points.Count == 0)
            {
                return;
            }
            TOF tof =
                (TOF)((ArrayList)averageScan.GetGatedAverageOnShot(startSpectrumGate, endSpectrumGate).TOFs)[0];

            window.PlotAverageOnTOF(tof);
            Profile p = Controller.GetController().ProfileManager.CurrentProfile;

            if (p != null && (bool)p.AcquisitorConfig.switchPlugin.Settings["switchActive"])
            {
                window.PlotAverageOffTOF(
                    (TOF)averageScan.GetGatedAverageOffShot(startSpectrumGate, endSpectrumGate).TOFs[0]);
            }
            if (fftviewerIsOpen)
            {
                fftviewer.PlotFFT(tof.Data,
                                  (int)p.AcquisitorConfig.shotGathererPlugin.Settings["gateLength"], (int)p.AcquisitorConfig.shotGathererPlugin.Settings["sampleRate"]);
            }
        }