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

Removed the internal parameters for precision when specialising detectors via the geometry config

parent aa9de9cf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ void GeometryManager::load(ConfigManager* conf_manager, RandomNumberGenerator& s

    // Loop over all defined detectors
    LOG(DEBUG) << "Loading detectors";
    // Gets me a list of detector configurations. The sections for each detector in the geometry config file.
    for(auto& geometry_section : conf_manager->getDetectorConfigurations()) {

        // Read role of this section and default to "active" (i.e. detector)
@@ -449,7 +450,8 @@ void GeometryManager::close_geometry() {
            // Add all non internal parameters to the config for a specialized model
            for(auto& [key, value] : config.getAll()) {
                // Skip all internal parameters
                if(key == "type" || key == "position" || key == "orientation_mode" || key == "orientation") {
                if(key == "type" || key == "position" || key == "orientation_mode" || key == "orientation" ||
                   key == "alignment_precision_position" || key == "alignment_precision_orientation" || key == "role") {
                    continue;
                }
                // Add the extra parameter to the new overwritten config