24 bool clearSurfaceMaterial,
bool clearVolumeMaterial)
25 : m_readerConfig(rConfig),
26 m_clearSurfaceMaterial(clearSurfaceMaterial),
27 m_clearVolumeMaterial(clearVolumeMaterial),
32 ACTS_VERBOSE(
"Reading JSON material description from: " << jFileName);
33 std::ifstream
ifj(jFileName.c_str());
35 throw std::runtime_error{
"Unable to open input JSON material file: " +
40 if (jFileName.find(
".cbor") != std::string::npos) {
41 std::vector<std::uint8_t> iCbor((std::istreambuf_iterator<char>(
ifj)),
42 std::istreambuf_iterator<char>());
43 jin = nlohmann::json::from_cbor(iCbor);
48 auto maps = jmConverter.jsonToMaterialMaps(jin);
64 ACTS_VERBOSE(
"-> Found material for surface, assigning");