Skip to content

Commit

Permalink
Allow PLs>=256 in call -m
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 committed Jan 3, 2017
1 parent 487cba8 commit 39c70ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ void set_pdg(double *pl2p, int *PLs, double *pdg, int n_smpl, int n_gt, int unse
break;
}
if ( PLs[j]==bcf_int32_missing ) break;
assert( PLs[j]<256 );
pdg[j] = pl2p[ PLs[j] ];
pdg[j] = PLs[j] < 256 ? pl2p[PLs[j]] : pow(10., -PLs[j]/10.);
sum += pdg[j];
}

Expand All @@ -377,8 +376,7 @@ void set_pdg(double *pl2p, int *PLs, double *pdg, int n_smpl, int n_gt, int unse
{
assert( PLs[j]!=bcf_int32_vector_end );
if ( PLs[j]==bcf_int32_missing ) PLs[j] = 255;
assert( PLs[j]<256 );
pdg[j] = pl2p[ PLs[j] ];
pdg[j] = PLs[j] < 256 ? pl2p[PLs[j]] : pow(10., -PLs[j]/10.);
sum += pdg[j];
}
}
Expand Down

0 comments on commit 39c70ae

Please sign in to comment.