Exemple #1
0
# materials
from materials import define_materials
# banks definitions
from bank import define_bank
# hits definitions
from hit import define_hit
# sensitive geometry
from geometry import *

# all the scripts must be run for every configuration
configs = ["original"]

for conf in configs:
    configuration.variation = conf

    # materials
    define_materials(configuration)

    # hits
    define_hit(configuration)

    # bank definitions
    define_bank(configuration)

    # geometry
    init_geom_file(
        configuration
    )  #  Overwrites any existing geometry file and starts with an empty file ready to append detectors
    makeBDX_DRIFT(configuration, parameters)
Exemple #2
0
    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
# banks definitions
from bank import define_bank
# hits definitions
from hit import define_hit

# hits
init_hits_file(configuration)
define_hit(configuration)

# bank definitions
init_bank_file(configuration)
define_bank(configuration)

# geometry
from geometry import *
init_geom_file(configuration)		#  Overwrites any existing geometry file and starts with an empty file ready to append detectors
makeGeometry(configuration)