11 #include <boost/program_options.hpp>
21 #include "G4VUserDetectorConstruction.hh"
23 using namespace ActsExamples;
28 const boost::program_options::variables_map& vm,
29 std::unique_ptr<G4VUserDetectorConstruction> g4detector) {
36 auto outputMaterialTracks = g4Config.outputMaterialTracks;
37 g4Config.detectorConstruction = std::move(g4detector);
39 std::make_shared<GeantinoRecording>(std::move(g4Config), logLevel));
42 if (vm[
"output-root"].
template as<bool>()) {
47 materialTrackWriter.
collection = outputMaterialTracks;
49 joinPaths(outputDir, outputMaterialTracks +
".root");
50 sequencer.
addWriter(std::make_shared<RootMaterialTrackWriter>(
51 materialTrackWriter, logLevel));
53 return sequencer.
run();