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); }
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; }