Commit 7f1aac4e authored by Simon Spannagel's avatar Simon Spannagel
Browse files

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

(cherry picked from commit a0c926fd)
parent 99a0cce2
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