1 #ifndef CSCCalibration_CSCThrTurnOnFcn_h 2 #define CSCCalibration_CSCThrTurnOnFcn_h 13 #include "Minuit2/FCNBase.h" 24 std::vector<float>
ery;
29 void setData(
const std::vector<float> &
x,
const std::vector<float> &
y) {
30 for(
unsigned int i=0;
i<x.size();
i++) {
31 xdata.push_back(x[
i]); ydata.push_back(y[i]);
37 for(
unsigned int i=0;
i<er.size();
i++) ery.push_back(er[
i]);
44 double operator() (
const std::vector<double>&)
const override;
47 double Up()
const override {
return 1.;}
void setNorm(float n)
Set the norm (if needed)
std::vector< float > ydata
void setData(const std::vector< float > &x, const std::vector< float > &y)
Cache the current data, x and y.
double operator()(const std::vector< double > &) const override
Provide the chi-squared function for the given data.
double Up() const override
@ What?
std::vector< float > xdata
data
void setErrors(const std::vector< float > &er)
Set the errors.