# Loading configuration file and paramters configuration = load_configuration(cfg_file) # materials from materials import define_materials # mirrors definition from mirrors import define_mirrors # geometry from geometry import * # all the scripts must be run for every configuration allConfigs = ["original"] for conf in allConfigs: configuration.variation = conf # materials init_materials_file(configuration) define_materials(configuration) # mirror definitions init_mirrors_file(configuration) define_mirrors(configuration) # geometry init_geom_file(configuration) # Overwrites any existing geometry file and starts with an empty file ready to append detectors makeGeometry(configuration)
if len(sys.argv)==1: parser.print_help() sys.exit(1) args = parser.parse_args() cfg_file = args.config_filename print(cfg_file) # Loading configuration file and paramters configuration = load_configuration(cfg_file) # materials from materials import define_materials # geometry from geometry import * # all the scripts must be run for every configuration allConfigs = ["original"] for conf in allConfigs: configuration.variation = conf # materials init_materials_file(configuration) define_materials(configuration) # geometry init_geom_file(configuration) # Overwrites any existing geometry file and starts with an empty file makeGeometry(configuration)