diff options
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 34d6c809..7098869d 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -131,7 +131,6 @@ static void record_panel(struct detgeom_panel *p, float *dp, for ( fs=0; fs<p->w; fs++ ) { double counts; - double cf; double intensity, sa; double pix_area, Lsq; double xs, ys, rx, ry; @@ -165,8 +164,7 @@ static void record_panel(struct detgeom_panel *p, float *dp, if ( do_poisson ) { counts = poisson_noise(rng, intensity * ph_per_e * sa); } else { - cf = intensity * ph_per_e * sa; - counts = cf; + counts = intensity * ph_per_e * sa; } /* Number of photons in pixel */ |