Skip to content
Snippets Groups Projects

Synchronize master branch with 2024-patches

Merged Marco Clemencic requested to merge 2024-patches-sync into master
1 file
+ 13
8
Compare changes
  • Side-by-side
  • Inline
@@ -30,14 +30,14 @@ def MDFprodOption(inputfiles, outputfile, n_instances):
write_lines = [
"input_files:\n",
] + ["- '%s'\n" % inputfile for inputfile in inputfiles] + [
"input_type: 'RAW'\n", "evt_max: -1 \n",
"input_type: 'RAW'\n", "evt_max: 100000 \n",
"output_file: '%s'\n" % outputfile,
"output_manifest_file: '%s' \n" % output_manifest_file,
"input_process: 'Hlt2'\n", "input_raw_format: 0.5\n",
"data_type: Upgrade\n", "simulation: False\n",
f"n_threads: {threads_per_instance} \n",
"scheduler_legacy_mode: False\n", "output_type: 'RAW' \n",
"geometry_version :run3/2024.Q1.2-v00.00 \n",
"geometry_version : run3/2024.Q1.2-v00.00 \n",
"conditions_version : 'master' \n", "print_freq: 1000 \n",
"write_decoding_keys_to_git: False \n"
]
@@ -96,20 +96,25 @@ def merge_lambda_yaml_files(FirstPass_lambda: str, SecondPass_lambda: str,
Lines_1 = calibFirst['data']
Lines_2 = calibSecond['data']
Lambda_1 = [None] * 11384 #number of histograms
Lambda_2 = [None] * 11384
Lambda_3 = [None] * 11384
Merged_lambda = [[None, None]] * 11384
Num_of_hist = 11384 #number of histograms
corr = 32768
#Correction over the cell index
Lambda_1 = [None] * Num_of_hist
Lambda_2 = [None] * Num_of_hist
Lambda_3 = [None] * Num_of_hist
Merged_lambda = [[None, None]] * Num_of_hist
output_merged_file = open(
os.path.join(output_file_path, "merged_lambda.yml"), 'w')
output_merged_file.write('data: [\n')
for line1 in Lines_1:
Lambda_1[line1[0] - 32768] = float(line1[1])
Lambda_1[line1[0] - corr] = float(line1[1])
for line2 in Lines_2:
Lambda_2[line2[0] - 32768] = float(line2[1])
Lambda_2[line2[0] - corr] = float(line2[1])
for i in range(0, len(Lambda_1)):
Loading