PlotAverageNormedOnTOF() публичный Метод

public PlotAverageNormedOnTOF ( TOF t ) : void
t Data.TOF
Результат 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);
                }
            }
        }