13 #include <boost/program_options.hpp>
32 std::pair<std::shared_ptr<const Acts::TrackingGeometry>,
33 std::vector<std::shared_ptr<FW::IContextDecorator>>>
34 build(
const boost::program_options::variables_map& vm,
37 std::shared_ptr<const Acts::IMaterialDecorator> matDeco =
nullptr;
38 auto matType = vm[
"mat-input-type"].template as<std::string>();
39 if (matType ==
"none") {
40 matDeco = std::make_shared<const Acts::MaterialWiper>();
41 }
else if (matType ==
"file") {
43 auto fileName = vm[
"mat-input-file"].template as<std::string>();
45 if (fileName.find(
".json") != std::string::npos) {
49 matDeco = std::make_shared<const Acts::JsonMaterialDecorator>(
50 jsonGeoConvConfig, fileName);
51 }
else if (fileName.find(
".root") != std::string::npos) {
54 rootMatDecConfig.
fileName = fileName;
56 std::make_shared<const FW::RootMaterialDecorator>(rootMatDecConfig);
61 return detector.
finalize(vm, matDeco);