1 #ifndef CSCCalibration_CSCThrTurnOnFcn_h 2 #define CSCCalibration_CSCThrTurnOnFcn_h 12 #include "Minuit2/FCNBase.h" 20 std::vector<float>
ery;
25 void setData(
const std::vector<float>&
x,
const std::vector<float>&
y) {
26 for (
unsigned int i = 0;
i <
x.size();
i++) {
34 for (
unsigned int i = 0;
i < er.size();
i++)
42 double operator()(
const std::vector<double>&)
const override;
45 double Up()
const override {
return 1.; }
double Up() const override
@ What?
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.
std::vector< float > xdata
data
void setErrors(const std::vector< float > &er)
Set the errors.