9 SigmaPt(
const std::vector<double>& parameters_,
const std::vector<double>& errors_) {
30 if (fabs(eta) <=
b_0) {
31 return (
c +
b_1 * eta * eta);
33 return (
b_2 +
b_3 * (fabs(eta) -
b_4) * (fabs(eta) -
b_4));
36 if (fabs(eta) <=
b_0) {
65 std::vector<double>
errors;
66 parameters.push_back(1.66);
67 parameters.push_back(0.021);
68 parameters.push_back(0.);
69 parameters.push_back(0.);
70 parameters.push_back(0.);
71 parameters.push_back(0.0058);
72 parameters.push_back(0.);
73 parameters.push_back(0.03);
74 parameters.push_back(1.8);
75 parameters.push_back(0.);
76 parameters.push_back(0.);
77 parameters.push_back(0.);
78 parameters.push_back(0.);
79 parameters.push_back(0.);
80 parameters.push_back(0.);
81 errors.push_back(0.09);
82 errors.push_back(0.002);
86 errors.push_back(0.0009);
88 errors.push_back(0.03);
89 errors.push_back(0.3);
97 sigmaPt.setParErr(parameters, errors);
102 else if (eta <= -2.0)
104 else if (eta <= -1.8)
106 else if (eta <= -1.6)
108 else if (eta <= -1.4)
110 else if (eta <= -1.2)
112 else if (eta <= -1.0)
114 else if (eta <= -0.8)
116 else if (eta <= -0.6)
118 else if (eta <= -0.4)
120 else if (eta <= -0.2)
150 double sigmaPtPlus = sigmaPt(eta) + sigmaPt.sigma(eta);
151 double sigmaPtMinus = sigmaPt(eta) - sigmaPt.sigma(eta);
152 if (fabs(sigmaPtPlus * sigmaPtPlus - etaByPoints(eta) * etaByPoints(eta)) >
153 fabs(sigmaPtMinus * sigmaPtMinus - etaByPoints(eta) * etaByPoints(eta))) {
154 return (fabs(sigmaPtPlus * sigmaPtPlus - etaByPoints(eta) * etaByPoints(eta)));
156 return (fabs(sigmaPtMinus * sigmaPtMinus - etaByPoints(eta) * etaByPoints(eta)));
Returns ( sigmaPt/Pt(data)^2 - sigmaPt/Pt(MC)^2 )
void setParErr(const std::vector< double > ¶meters, const std::vector< double > &errors)
double operator()(const double &eta)
double etaByPoints(const double &eta)
double sigma(const double &eta)
double squaredDiff(const double &eta)
SigmaPt(const std::vector< double > ¶meters_, const std::vector< double > &errors_)
Power< A, B >::type pow(const A &a, const B &b)