1 #ifndef SaturationFcn_h 2 #define SaturationFcn_h 4 #include "Minuit2/FCNBase.h" 20 void set_data(
int N,
float *charge_ptr,
float *adc_ptr){
32 x3start=(y[4]*x[1]-y[1]*x[4])/(x[1]-x[4]);
33 x0start=daty[13]-x3start;
34 x1start=(y[4]-y[1])/(x[4]-x[1])/x0start;
39 virtual double Up()
const {
return 1.;}
41 virtual double operator()(
const std::vector<double>& x)
const {
45 double val=1.0+
pow(x[1]*datx[
i],x[2]);
47 val=x[0]*x[1]*datx[
i]/
pow(val,val2);
62 double datx[20],daty[20];
virtual double Up() const
void set_data(int N, float *charge_ptr, float *adc_ptr)
virtual double operator()(const std::vector< double > &x) const
std::vector< std::vector< double > > tmp
Power< A, B >::type pow(const A &a, const B &b)