|
@@ -112,25 +112,30 @@ namespace OTSModelSharp
|
|
|
var parts = curFldData.GetListAnalysisParticles();
|
|
|
string libname = m_Sample.GetMsrParams().GetSTDName();
|
|
|
//process the maxeds rules
|
|
|
- if (libname != "NoSTDDB")
|
|
|
+ if (m_Sample.GetMsrParams().GetEngineType() == OTS_CLASSIFY_ENGINE_TYPE.InclutionPlusExpressionParse ||
|
|
|
+ m_Sample.GetMsrParams().GetEngineType() == OTS_CLASSIFY_ENGINE_TYPE.ExpressionParse)
|
|
|
{
|
|
|
- IClassifyEngine engine = m_classifyEngine.GetExpressionClassifyEngine(libname);
|
|
|
- double maxedstime = 0;
|
|
|
- List<COTSParticleClr> maxedsparts = new List<COTSParticleClr>();
|
|
|
- foreach (var p in parts)
|
|
|
+ if (libname != "NoSTDDB")
|
|
|
{
|
|
|
- if (engine.IfNeedMaxEDS(p, ref maxedstime))
|
|
|
+ IClassifyEngine engine = m_classifyEngine.GetExpressionClassifyEngine(libname);
|
|
|
+ double maxedstime = 0;
|
|
|
+ List<COTSParticleClr> maxedsparts = new List<COTSParticleClr>();
|
|
|
+ foreach (var p in parts)
|
|
|
{
|
|
|
- maxedsparts.Add(p);
|
|
|
+ if (engine.IfNeedMaxEDS(p, ref maxedstime))
|
|
|
+ {
|
|
|
+ maxedsparts.Add(p);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- if (maxedsparts.Count > 0)
|
|
|
- {
|
|
|
- log.Warn("Begin to collect MaxEDS particles:" + maxedsparts.Count + "(" + maxedstime.ToString() + ") on Point mode");
|
|
|
+ if (maxedsparts.Count > 0)
|
|
|
+ {
|
|
|
+ log.Warn("Begin to collect MaxEDS particles:" + maxedsparts.Count + "(" + maxedstime.ToString() + ") on Point mode");
|
|
|
|
|
|
- m_EDSController.GetXRayByParts(maxedsparts, (uint)maxedstime, true);
|
|
|
+ m_EDSController.GetXRayByParts(maxedsparts, (uint)maxedstime, true);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|