Commit e8bb5c99 authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Merge branch 'b-g4-11-3' into 'v3.1-stable'

[v3.1-stable] Added handling of Geant4 v11.3.0.

See merge request allpix-squared/allpix-squared!1164
parents 78c1ab66 9bde703a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#ifndef ALLPIX_WORKER_RUN_MANAGER_H
#define ALLPIX_WORKER_RUN_MANAGER_H

#include <G4Version.hh>
#include <G4WorkerRunManager.hh>

namespace allpix {
@@ -85,12 +86,21 @@ namespace allpix {
         */
        G4Event* GenerateEvent(G4int i_event) override;

#if G4VERSION_NUMBER < 1130
        /**
         * @brief Previously used to merge the partial results obtained by this manager and the master.
         *
         * Merge the run results with the master results. It will now do nothing.
         */
        void MergePartialResults() override {}
#else
        /**
         * @brief Previously used to merge the partial results obtained by this manager and the master.
         *
         * Merge the run results with the master results. It will now do nothing.
         */
        void MergePartialResults(G4bool) override {}
#endif
    };
} // namespace allpix