コード例 #1
0
 public IDDReanalysisAssay(Measurement m, Detector det)
 {
     InitializeComponent();
     // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking)
     ah = new AcquireHandlers(m.AcquireState, det);
     ah.mo = AssaySelector.MeasurementOption.verification;
     Text = "Select measurement for detector " + ah.det.Id.DetectorName;
     toolTip1.SetToolTip(StratumIdComboBox, "You must select an existing stratum.");
     toolTip1.SetToolTip(MaterialTypeComboBox, "You must select an existing material type.");
     toolTip1.SetToolTip(UseCurrentCalibCheckBox, "x = use current calibration parameters for the selected material type.\r\nblank = use calibration parameters from the original measurement.");
     normmodified = false;
     meas = m;
     norm = new VTuple(meas.Norm.currNormalizationConstant);  // fill from m
     FieldFiller();
 }
コード例 #2
0
ファイル: Cycle.cs プロジェクト: hnordquist/INCC6
        private TimeSpan ts; // timestamp of last neutron v. requested time

        #endregion Fields

        #region Constructors

        public Cycle(LMLoggers.LognLM logger)
        {
            // Raw counts aka totals
            singles = new VTuple();
            dsid = new DataSourceIdentifier();
            qcstatus = new QCStatusMap();
            countresults = new CountingResults();
            daqStatus = CycleDAQStatus.None;
            this.logger = logger;
            hitsPerChn = new double[NC.ChannelCount];
        }
コード例 #3
0
ファイル: INCCKnew.cs プロジェクト: hnordquist/INCC6
        public static unsafe void CopyTuples(Tuple[] src, double* dstval, double* dsterr, int maxlen)
        {
            if (dstval == null || dsterr == null || src == null)
                throw new ArgumentException();

            int len = src.Length;
            double [] v = new double[maxlen];
            double [] err = new double[maxlen];

            for (int i = 0; i < maxlen; i++)
            {
                v[i] = src[i].v;
                err[i] = src[i].err;
            }
            TransferUtils.CopyDbls(v, dstval);
            TransferUtils.CopyDbls(err, dsterr);
        }
コード例 #4
0
ファイル: INCCKnew.cs プロジェクト: hnordquist/INCC6
 public static unsafe Tuple[] Copy(double* vptr, double* errptr, int len)
 {
     Tuple[] vals = new Tuple[len];
     for (int i = 0; i < len; i++)
         vals[i] = new Tuple(vptr[i], errptr[i]);
     return vals;
 }
コード例 #5
0
 static VTuple[] TupleArraySlurp(ref VTuple[] dest, string field, DataRow dr)
 {
     double[] v = DB.Utils.ReifyDoubles(dr[field].ToString());
     double[] err = DB.Utils.ReifyDoubles(dr[field + "_err"].ToString());
     for (int i = 0; i < v.Length && i < dest.Length; i++)
         dest[i] = new VTuple(v[i], err[i]);
     return dest;
 }
コード例 #6
0
 public void AddNumericRowWithExtra(string label, Tuple value, double extra)
 {
     Row r = new Row();
     AddPaddedLabel(r, label);
     r.Add(1, FormatFloatingPt(value.v));
     r.Add(2, " +-");
     r.Add(3, FormatFloatingPt(value.err));
     r.Add(4, FormatFloatingPt(extra));
     Add(r);
 }
コード例 #7
0
 public void AddNumericRow(string label, Tuple value)
 {
     Row r = new Row();
     AddPaddedLabel(r, label);
     r.Add(1, FormatFloatingPt(value.v));
     r.Add(2, " +-");
     r.Add(3, FormatFloatingPt(value.err));
     Add(r);
 }
コード例 #8
0
        public void AddDualNumericRow(string label, Tuple value, Tuple value2)
        {
            Row r = new Row();
            AddPaddedLabel(r, label);

            r.Add(1, FormatFloatingPt(value.v));
            r.Add(2, " +-");
            r.Add(3, FormatFloatingPt(value.err));
            r.Add(4, "     ");
            r.Add(5, FormatFloatingPt(value2.v));
            r.Add(6, " +-");
            r.Add(7, FormatFloatingPt(value2.err));
            Add(r);
        }