Skip to content

Commit 855182e

Browse files
larsb-psjgardiner
authored andcommitted
Simplified DecayAngMECLegendre weight computation.
1 parent cf1adea commit 855182e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/RwCalculators/GReWeightXSecMEC.cxx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,7 @@ double GReWeightXSecMEC::CalcWeightDecayAngMECLegendre(double theta_rad, double
16021602
for( size_t i = 0; i < twk_dials.size(); ++i ){
16031603
int l = i + 1; // l in P_l(costheta) determines the Legendre-Polynomial
16041604
double P_l = gsl_sf_legendre_Pl( l, costheta );
1605-
double w_l = P_l + 1.0;
1606-
weight += twk_dials[i] * ( w_l - 1.0 );
1605+
weight += twk_dials[i] * P_l;
16071606
}
16081607

16091608
return weight;

0 commit comments

Comments
 (0)