本文整理汇总了C#中Tuple.CopyFrom方法的典型用法代码示例。如果您正苦于以下问题:C# Tuple.CopyFrom方法的具体用法?C# Tuple.CopyFrom怎么用?C# Tuple.CopyFrom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tuple
的用法示例。
在下文中一共展示了Tuple.CopyFrom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CalculateVerificationResults
//.........这里部分代码省略.........
{
INCCAnalysis.calc_mass(ccres.pu240e_mass,
ref ccres.pu_mass, ref ccres.dcl_pu_mass, ref ccres.dcl_pu240e_mass, ref ccres.dcl_minus_asy_pu_mass, ref ccres.dcl_minus_asy_pu_mass_pct, ref ccres.pass,
meas);
}
else
{
INCCAnalysis.calc_u235_mass(cal_curve.percent_u235, ccres.pu240e_mass,
ref ccres.pu_mass, ref ccres.dcl_pu_mass, ref ccres.dcl_minus_asy_pu_mass, ref ccres.dcl_minus_asy_pu_mass_pct, ref ccres.pass,
meas);
}
if (!ccres.pass)
{
meas.AddWarningMessage("Passive calibration curve: failed stratum rejection limits", 10198, mkey);
}
else
{
meas.AddWarningMessage("Passive calibration curve: passed stratum rejection limits", 10200, mkey);
}
if (ccres.pu240e_mass.v > ccres.methodParams.cev.upper_mass_limit)
{
meas.AddWarningMessage("Passive calibration curve: upper Pu240e mass limit exceeded.", 10210, mkey);
}
if (ccres.pu240e_mass.v < ccres.methodParams.cev.lower_mass_limit)
{
meas.AddWarningMessage("Passive calibration curve: lower Pu240e mass limit exceeded.", 10211, mkey);
}
}
// normal and backup retention
if (meas.INCCAnalysisState.Methods.Normal == AnalysisMethod.CalibrationCurve)
{
normal_mass.CopyFrom(ccres.pu240e_mass);
}
if (meas.INCCAnalysisState.Methods.Backup == AnalysisMethod.CalibrationCurve)
{
backup_mass.CopyFrom(ccres.pu240e_mass);
}
}
if (meas.INCCAnalysisState.Methods.Has(AnalysisMethod.KnownA))
{
INCCMethodResults.results_known_alpha_rec kares = (INCCMethodResults.results_known_alpha_rec)
meas.INCCAnalysisResults.LookupMethodResults(mkey, meas.INCCAnalysisState.Methods.selector, AnalysisMethod.KnownA, true);
INCCAnalysisParams.known_alpha_rec ka_params = (INCCAnalysisParams.known_alpha_rec)meas.INCCAnalysisState.Methods.GetMethodParameters(AnalysisMethod.KnownA);
if (ka_params == null)
{
meas.Logger.TraceEvent(NCCReporter.LogLevels.Warning, 10199, "No Known alpha method parameters found");
return;
}
bool success = false;
kares.dcl_pu_mass = meas.AcquireState.mass; // dev note: another use of acq, a requirement, here
// JFL copy the input calib to the results rec
kares.methodParams = new INCCAnalysisParams.known_alpha_rec(ka_params);
if (ka_params.known_alpha_type == INCCAnalysisParams.KnownAlphaVariant.Conventional)
{
INCCMethodResults.results_known_alpha_rec karesdup = INCCAnalysis.CalculateKnownAlpha(mkey, results.rates, meas, RatesAdjustments.DeadtimeCorrected); // rates (triples) not used
if (karesdup != null) // we have the new mass results, and they are preserved in the results map
{
success = true;
meas.Logger.TraceEvent(NCCReporter.LogLevels.Info, 240, "Known alpha results for pu240E {0} +- {1}", karesdup.pu240e_mass.v, karesdup.pu240e_mass.err);
}
}
else if (ka_params.known_alpha_type == INCCAnalysisParams.KnownAlphaVariant.HeavyMetalCorrection)