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