Example #1
0
        public virtual void SetSeparationValue(SeparationTypes type, double value, bool aligned = false)
        {
            switch (type)
            {
            case SeparationTypes.LC:
                if (aligned)
                {
                    this.NetAligned = value;
                }
                else
                {
                    this.Net = value;
                }
                break;

            case SeparationTypes.DriftTime:
                if (aligned)
                {
                    this.DriftTimeAligned = value;
                }
                else
                {
                    this.DriftTime = value;
                }
                break;

            default:
                throw new NotImplementedException();
            }
        }
Example #2
0
        public virtual double GetSeparationValue(SeparationTypes type)
        {
            double value = 0.0;

            switch (type)
            {
            case SeparationTypes.LC:
                value = this.Net;
                break;

            case SeparationTypes.DriftTime:
                value = this.DriftTime;
                break;

            default:
                throw new NotImplementedException();
            }

            return(value);
        }