Project

General

Profile

Feature #20063

Updated by Kyle Knoepfel over 2 years ago

Hello,

Users can call initialize a random engine in a module constructor with
the createEngine(seed) call. To achieve this in mixing code one has to
take a more contorted way, and put in the MixFilter detail class
constructor something like

<pre><code class="cpp">


art::RandomNumberGenerator::base_engine_t& engine = art::ServiceHandle<art::RandomNumberGenerator>()->getEngine();
int dummy(0);
engine.setSeed( art::ServiceHandle<SeedService>()->getSeed(), dummy );
</code></pre>


It would be nice to streamline the interface for MixFilter users.

Andrei

Back