Skip to content

Commit

Permalink
Refs #4980 fix cases
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Mar 19, 2012
1 parent ff548f4 commit b3b9f9b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ namespace boost
int64_t time = itev->pulseTime().totalNanoseconds();
ar & time;
}
break;
}
case Mantid::API::WEIGHTED:
{
Expand All @@ -64,6 +65,7 @@ namespace boost
double error = itev->error();
ar & error;
}
break;
}
case Mantid::API::WEIGHTED_NOTIME:
{
Expand All @@ -83,6 +85,7 @@ namespace boost
double error = itev->error();
ar & error;
}
break;
}
}
}
Expand Down Expand Up @@ -111,8 +114,9 @@ namespace boost
mylist.push_back(Mantid::DataObjects::TofEvent(tof,pulseTime));
}
elist = Mantid::DataObjects::EventList(mylist);
break;
}
case 2:
case 2:
{
std::vector<Mantid::DataObjects::WeightedEvent> mylist;
double tof = 0.0;
Expand All @@ -130,8 +134,9 @@ namespace boost
mylist.push_back(Mantid::DataObjects::WeightedEvent(tof,pulseTime,weight,error));
}
elist = Mantid::DataObjects::EventList(mylist);
break;
}
case 3:
case 3:
{
std::vector<Mantid::DataObjects::WeightedEventNoTime> mylist;
double tof = 0.0;
Expand All @@ -145,6 +150,7 @@ namespace boost
mylist.push_back(Mantid::DataObjects::WeightedEventNoTime(tof,weight,error));
}
elist = Mantid::DataObjects::EventList(mylist);
break;
}
}
}
Expand Down

0 comments on commit b3b9f9b

Please sign in to comment.