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 virtual double operator() (
const std::vector<double>&)
const;
47 virtual double Up()
const {
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.
virtual double operator()(const std::vector< double > &) const
Provide the chi-squared function for the given data.
std::vector< float > xdata
data
void setErrors(const std::vector< float > &er)
Set the errors.
virtual double Up() const
@ What?