Пример #1
0
        public static BackgroundParameters GetCurrentBackgroundParams(Detector det)
        {
            BackgroundParameters bp = new AnalysisDefs.BackgroundParameters();

            if ((det != null) && (CentralizedState.App.DB.BackgroundParameters.Get(det.Id.DetectorName) != null))
            {
                bp.Copy(CentralizedState.App.DB.BackgroundParameters.Map[det]);
            }
            return(bp);
        }
Пример #2
0
 public static BackgroundParameters GetCurrentBackgroundParams(Detector det)
 {
     BackgroundParameters bp = new AnalysisDefs.BackgroundParameters();
     if ((det != null) && (CentralizedState.App.DB.BackgroundParameters.Get(det.Id.DetectorName) != null))
         bp.Copy(CentralizedState.App.DB.BackgroundParameters.Map[det]);
     return bp;
 }