52 static const double p0_minus[20] = { 1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1. };
53 static const double p1_minus[20] = {
75 static const double p2_minus[20] = {
98 static const double p1_expoM[5] = {
106 static const double p2_expoM[5] = {
115 static const double p0_plus[20] = { 1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1. };
116 static const double p1_plus[20] = {
138 static const double p2_plus[20] = {
161 static const double p1_expoP[5] = {
169 static const double p2_expoP[5] = {
181 for (
int ibin=0;ibin<20;ibin++) {
184 Pweight_[ibin] = p0_minus[ibin] + p1_minus[ibin]*Shift + p2_minus[ibin]*Shift*Shift;
187 Pweight_[ibin] = p0_plus[ibin] + p1_plus[ibin]*Shift + p2_plus[ibin]*Shift*Shift;
193 for (
int ibin=20;ibin<25;ibin++) {
195 Pweight_[ibin] = p1_expoM[ibin-20]*
exp(p2_expoM[ibin-20]*Shift);
198 Pweight_[ibin] = p1_expoP[ibin-20]*
exp(p2_expoP[ibin-20]*Shift);