Skip to content

Commit f9a96e0

Browse files
author
Szymon Pulawski
committed
WIP: update digitizer params for 2025 (temporary values)
1 parent 2fc42f7 commit f9a96e0

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

MC/bin/o2dpg_sim_config.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,39 @@ def add(cfg, flatconfig):
105105
if COLTYPEIR == "PbPb":
106106
# 4 ADC channels / MIP
107107
add(config, {"FV0DigParam.adcChannelsPerMip": "4"})
108+
# 2025
109+
# first and last run of 2025
110+
if 562260 <= int(args.run) and int(args.run) <= 568721:
111+
# 14 ADC channels / MIP for FT0
112+
add(config, {"FT0DigParam.mMip_in_V": "7", "FT0DigParam.mMV_2_Nchannels": "2", "FT0DigParam.mMV_2_NchannelsInverse": "0.5"})
113+
# 15 ADC channels / MIP for FV0
114+
add(config, {"FV0DigParam.adcChannelsPerMip": "15"})
115+
if COLTYPEIR == "PbPb":
116+
# 4 ADC channels / MIP
117+
add(config, {"FV0DigParam.adcChannelsPerMip": "4"})
118+
# central and semicentral FT0 thresholds
119+
add(config, {"FT0DigParam.mtrg_central_trh": "1433", "FT0DigParam.mtrg_semicentral_trh": "35"})
120+
# FV0 trigger settings
121+
add(config, {"FV0DigParam.NchannelsLevel": "2", "FV0DigParam.InnerChargeLevel": "4", "FV0DigParam.OuterChargeLevel": "4", "FV0DigParam.ChargeLevel": "8"})
122+
if COLTYPEIR == "OO":
123+
# 4 ADC channels / MIP
124+
add(config, {"FV0DigParam.adcChannelsPerMip": "4"})
125+
# central and semicentral FT0 thresholds
126+
add(config, {"FT0DigParam.mtrg_central_trh": "1433", "FT0DigParam.mtrg_semicentral_trh": "35"})
127+
# FV0 trigger settings
128+
add(config, {"FV0DigParam.NchannelsLevel": "2", "FV0DigParam.InnerChargeLevel": "4", "FV0DigParam.OuterChargeLevel": "4", "FV0DigParam.ChargeLevel": "8"})
129+
if COLTYPEIR == "NeNe":
130+
# 4 ADC channels / MIP
131+
add(config, {"FV0DigParam.adcChannelsPerMip": "4"})
132+
# central and semicentral FT0 thresholds
133+
add(config, {"FT0DigParam.mtrg_central_trh": "1433", "FT0DigParam.mtrg_semicentral_trh": "35"})
134+
# FV0 trigger settings
135+
add(config, {"FV0DigParam.NchannelsLevel": "2", "FV0DigParam.InnerChargeLevel": "4", "FV0DigParam.OuterChargeLevel": "4", "FV0DigParam.ChargeLevel": "8"})
136+
if COLTYPEIR == "pp":
137+
# central and semicentral FT0 thresholds
138+
add(config, {"FT0DigParam.mtrg_central_trh": "40", "FT0DigParam.mtrg_semicentral_trh": "20"})
139+
# FV0 trigger settings
140+
add(config, {"FV0DigParam.NchannelsLevel": "2", "FV0DigParam.InnerChargeLevel": "4", "FV0DigParam.OuterChargeLevel": "4", "FV0DigParam.ChargeLevel": "8"})
108141

109142
return config
110143

@@ -234,4 +267,4 @@ def overwrite_config(config, mainkey, subkey, value):
234267
if mainkey not in config:
235268
# Initialize the main key in the dictionary if it does not already exist
236269
config[mainkey] = {}
237-
config[mainkey][subkey] = value
270+
config[mainkey][subkey] = value

0 commit comments

Comments
 (0)