Samplers only attached to first occurrence of element in beamline

Issue #47 resolved
Jochem Snuverink created an issue

In case a sampler is attached to a beam line element and that element is use more than once in a line, then output will only be from the first occurrence of that element in the sequence.

Comments (5)

  1. Jochem Snuverink reporter

    This is actually by design. One can add samplers before each reused element like this:

    d: drift, l=0.5*m;
    b1: line=(d,d,d);
    use, b1;
    sample, range=d[2];
    

    If no index is specified, the sampler is added at first occurence (index=1)

  2. Jochem Snuverink reporter

    I propose the following: if no index is specified a sampler is added to all instances of the element.

  3. Log in to comment