Sampler Filter

Issue #309 resolved
Laurie Nevay created an issue

It would be good if we can attach a filter to a sampler. For example, I only want to record muons on one sampler. In my model case this will vastly reduce the number of hits stored for a very large study. Also, I will store muon trajectories and need to know the sampler hit information as well so I will need the sampler hits but only for muons.

We have SD filters but just need to attach it to the sampler and also provide an input interface for this.

Perhaps this could be only for sampler placements? Would be better if it’s applicable to:

  1. all beam line samplers
  2. a specific sampler
  3. all sampler placements
  4. a specific sampler placement

Perhaps we can make some reuse of BDSScorerFactory::CreateFilter. Also BDSSDManager has a bunch of extra filters already defined.

Comments (1)

  1. Log in to comment