53 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. };
54 static const double p1_minus[20] = {
76 static const double p2_minus[20] = {
99 static const double p1_expoM[5] = {
107 static const double p2_expoM[5] = {
116 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. };
117 static const double p1_plus[20] = {
139 static const double p2_plus[20] = {
162 static const double p1_expoP[5] = {
170 static const double p2_expoP[5] = {
182 for (
int ibin=0;ibin<20;ibin++) {
185 Pweight_[ibin] = p0_minus[ibin] + p1_minus[ibin]*Shift + p2_minus[ibin]*Shift*Shift;
188 Pweight_[ibin] = p0_plus[ibin] + p1_plus[ibin]*Shift + p2_plus[ibin]*Shift*Shift;
194 for (
int ibin=20;ibin<25;ibin++) {
196 Pweight_[ibin] = p1_expoM[ibin-20]*
exp(p2_expoM[ibin-20]*Shift);
199 Pweight_[ibin] = p1_expoP[ibin-20]*
exp(p2_expoP[ibin-20]*Shift);