Exemple #1
0
        public bool SetBackgroundSession(Session bkg)
        {
            // Set background counts for this session and adjust for livetime

            if (bkg == null)
            {
                Background = null;
                return(true);
            }

            if (IsEmpty || !IsLoaded || bkg.IsEmpty || !bkg.IsLoaded)
            {
                return(false);
            }

            Background = bkg.GetAdjustedCounts(Livetime);

            return(true);
        }
Exemple #2
0
        public bool SetBackground(Session bkg)
        {
            // Set background counts for this session and adjust for livetime

            if (bkg == null)
            {
                Background = null;
                return true;
            }                

            if (IsEmpty || !IsLoaded)
                return false;
            
            Background = bkg.GetAdjustedCounts(Livetime);

            return true;
        }