public static Shot operator +(Shot s1, Shot s2)
{
if (s1.TOFs.Count == s2.TOFs.Count)
{
Shot temp = new Shot();
for (int i = 0 ; i < s1.TOFs.Count ; i++)
{
temp.TOFs.Add((TOF)s1.TOFs[i] + (TOF)s2.TOFs[i]);
}
return temp;
}
else
{
if (s1.TOFs.Count == 0) return s2;
if (s2.TOFs.Count == 0) return s1;
return null;
}
}