Skip to content

Commit

Permalink
Refs #4980 errorSquared
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Mar 19, 2012
1 parent b3b9f9b commit 4a1b364
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace boost
ar & time;
double weight = itev->weight();
ar & weight;
double error = itev->error();
ar & error;
double errSq = itev->errorSquared();
ar & errSq;
}
break;
}
Expand All @@ -82,8 +82,8 @@ namespace boost
ar & tof;
double weight = itev->weight();
ar & weight;
double error = itev->error();
ar & error;
double errSq = itev->errorSquared();
ar & errSq;
}
break;
}
Expand Down Expand Up @@ -123,15 +123,15 @@ namespace boost
Mantid::Kernel::DateAndTime pulseTime = 0;
int64_t time = 0;
double weight = 0.0;
double error = 0.0;
double errSq = 0.0;
for (int ev=0; ev<evsize; ev++)
{
ar & tof;
ar & time;
ar & weight;
ar & error;
ar & errSq;
pulseTime = Mantid::Kernel::DateAndTime(time);
mylist.push_back(Mantid::DataObjects::WeightedEvent(tof,pulseTime,weight,error));
mylist.push_back(Mantid::DataObjects::WeightedEvent(tof,pulseTime,weight,errSq));
}
elist = Mantid::DataObjects::EventList(mylist);
break;
Expand All @@ -141,13 +141,13 @@ namespace boost
std::vector<Mantid::DataObjects::WeightedEventNoTime> mylist;
double tof = 0.0;
double weight = 0.0;
double error = 0.0;
double errSq = 0.0;
for (int ev=0; ev<evsize; ev++)
{
ar & tof;
ar & weight;
ar & error;
mylist.push_back(Mantid::DataObjects::WeightedEventNoTime(tof,weight,error));
ar & errSq;
mylist.push_back(Mantid::DataObjects::WeightedEventNoTime(tof,weight,errSq));
}
elist = Mantid::DataObjects::EventList(mylist);
break;
Expand Down

0 comments on commit 4a1b364

Please sign in to comment.