Ghost sampler

Issue #104 resolved
Andrey Abramov created an issue

An empty sampler appearing at the beginning of the line. Eg. sampler d1 in example attached has no entries.

Comments (4)

  1. Jochem Snuverink

    The manual http://www.pp.rhul.ac.uk/bdsim/manual/model_description.html#samplers-output says this:

    Warning A sampler attached to the first item (therefore at the beginning of the beamline) may not record all primary particles. This is due to the bunch distribution having a finite length in z and some of the particles (typically half) start in front of the sampler. This is not an error, but as expected. It is best not to put a sampler on the first element, but to use the recorded primary coordinates in the output.

    But I think you are right that perhaps we shouldn't put a sampler at the very first element for the all samplers. To be discussed.

  2. Jochem Snuverink

    proposed solution for sample,all;

    1. don't put sampler at first element

    2. put additional sampler at end of line. Proposed name: sampler_end;

  3. Log in to comment