13 , observables({var}) {
40 std::vector<fptype> values;
43 values.push_back(v.getValue());
59 void DataSet::generateName() {
65 if(v != observables[0])
74 throw GooFit::OutOfRange(v.getName(), v.getValue(), v.getLowerLimit(), v.getUpperLimit());
Thrown when a general error is encountered.
std::vector< Observable > observables
DataSet(const Observable &var, std::string n="")
void checkAllVars() const
Throw an error if any variables are out of range, call in addEvent.
Special class for observables. Used in DataSets.
size_t indexOfVariable(const Observable &var) const
const std::vector< Observable > & getObservables() const
std::vector< fptype > getCurrentValues() const
virtual void addWeightedEvent(fptype weight)