Commit a0c926fd authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Do not pull the rug under DepositionGenerator, run() needs the rug!

parent 33284599
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ namespace allpix {
     */
    template <class GEN> class ActionInitializationPrimaries : public G4VUserActionInitialization {
    public:
        explicit ActionInitializationPrimaries(const Configuration& config, std::shared_ptr<PrimariesReader> reader)
            : config_(config), reader_(std::move(reader)){};
        explicit ActionInitializationPrimaries(const Configuration& config, std::shared_ptr<PrimariesReader>& reader)
            : config_(config), reader_(reader){};

        /**
         * @brief Build the user action to be executed by the worker