コード例 #1
0
ファイル: RTAnalysis.cs プロジェクト: radtek/INCC6
 public void HandleAnArrayOfNeutronEvents(List <ulong> timeOfNewEvents, List <uint> neutronsOfNewEvents, int actualEventCount)
 {
     if (handler != null)
     {
         handler.HandleAnArrayOfNeutronEvents(timeOfNewEvents, neutronsOfNewEvents, actualEventCount);
     }
 }
コード例 #2
0
        public void HandleAnArrayOfNeutronEvents(List <ulong> timeOfNewEvents, List <uint> neutronsOfNewEvents, int actualEventCount)
        {
            //if (actualEventCount < timeOfNewEvents.Length)
            //{
            //    UInt64[] tcopy = new ulong[actualEventCount];
            //    UInt32[] ncopy = new UInt32[actualEventCount];
            //    Array.Copy(timeOfNewEvents, tcopy, actualEventCount);
            //    Array.Copy(neutronsOfNewEvents, ncopy, actualEventCount);

            //    handler.HandleAnArrayOfNeutronEvents(tcopy, ncopy, actualEventCount);
            //}
            //else
            handler.HandleAnArrayOfNeutronEvents(timeOfNewEvents, neutronsOfNewEvents, actualEventCount);
        }