43 #include <FTFP_BERT.hh>
44 #include <G4RunManager.hh>
45 #include <G4VUserDetectorConstruction.hh>
46 #include <boost/program_options.hpp>
48 namespace ActsExamples {
56 size_t seed = vars[
"g4-seed"].as<
size_t>();
61 g4Cfg.randomNumbers = std::make_shared<ActsExamples::RandomNumbers>(
65 g4Cfg.excludeMaterials = {
"Air",
"Vacuum"};
68 std::make_shared<Geant4MaterialRecording>(g4Cfg, g4loglevel));
76 std::shared_ptr<const Acts::MagneticFieldProvider>
magneticField) {
79 size_t seed = vars[
"g4-seed"].as<
size_t>();
84 g4Cfg.randomNumbers = std::make_shared<ActsExamples::RandomNumbers>(
90 g4Cfg.trackingGeometry =
std::move(trackingGeometry);
91 g4Cfg.magneticField =
std::move(magneticField);
93 sequencer.
addAlgorithm(std::make_shared<Geant4Simulation>(g4Cfg, g4loglevel));
115 evgen.randomNumbers =
rnd;
123 if (vars[
"output-root"].as<bool>()) {
132 sequencer.
addWriter(std::make_shared<RootMaterialTrackWriter>(
136 auto result = sequencer.
run();
160 auto result = sequencer.run();