Home CMS Production Clean room MedAustron HEPHY testbeams old
testbeam-MA2018 testbeam-MA2019 testbeam-MA2020 testbeam-MA2021 testbeam-MA2023 testbeam-MA2024 testbeam-MA2025
  Testbeams at MedAustron in 2025, all entries  Not logged in ELOG logo
ID Date Author Subject Run Number DUT Beam Energy Rate Settingdown Particle Type Data t-Start t-Stop Duration_min Frontend Phantom Phantom thickness
  1   Wed Mar 12 09:29:08 2025 tb-crewvalidating setup TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
1st test
  2   Thu Mar 13 16:29:06 2025 tb-crewvalidating setup94TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown13.03.2025 16:27:3313.03.2025 16:29:311HVNone 
automatic log for run 94
Comment:
tests without beam
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 0
HDMI2_clk = 0
HDMI3_clk = 0
HDMI4_clk = 0
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xD

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF0 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0x0 #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5700"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5500"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  3   Thu Mar 13 16:36:43 2025 tb-crewvalidating setup95TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown13.03.2025 16:34:1913.03.2025 16:37:082HVNone 
automatic log for run 95
Comment:
tests without beam
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xD

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xFF #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0x0 #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5700"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5500"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  4   Fri Mar 14 19:47:58 2025 mausivalidating setup TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
system tests
  5   Fri Mar 14 19:50:29 2025 elog-producervalidating setup109TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 19:49:1014.03.2025 19:50:551HVNone 
automatic log for run 109
Comment:
system tests
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xF

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xF #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 0


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  6   Fri Mar 14 19:57:28 2025 elog-producervalidating setup110TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 19:51:5114.03.2025 19:57:546HVNone 
automatic log for run 110
Comment:
bla
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xF

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xF #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 0


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  7   Fri Mar 14 20:04:41 2025 elog-producervalidating setup111TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 20:03:3414.03.2025 20:05:071HVNone 
automatic log for run 111
Comment:
bla
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xF

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xF #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  8   Fri Mar 14 20:40:06 2025 elog-producervalidating setup112TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 20:07:4714.03.2025 20:40:3232HVNone 
automatic log for run 112
Comment:
still testing nonsense
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 10 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xF

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xF #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  9   Fri Mar 14 21:40:34 2025 elog-producervalidating setup TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
tracker test without beam
  10   Fri Mar 14 21:41:12 2025 elog-producervalidating setup116TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 21:41:0514.03.2025 21:41:380HVNone 
automatic log for run 116
Comment:
tracker test without beam
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 20000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  11   Fri Mar 14 21:43:10 2025 elog-producervalidating setup117TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 21:42:4614.03.2025 21:43:360HVNone 
automatic log for run 117
Comment:
tracker test without beam
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  12   Fri Mar 14 21:44:46 2025 elog-producervalidating setup118TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 21:44:2014.03.2025 21:45:120HVNone 
automatic log for run 118
Comment:
tracker test without beam
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
#files2log = "peary_config.cfg, matrix_mpw4.txt" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  13   Fri Mar 14 21:53:59 2025 elog-producervalidating setup TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
starting beam
  14   Fri Mar 14 21:54:32 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
about to get p+
  15   Fri Mar 14 22:09:23 2025 elog-producer1st tests with beam200TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 22:04:0114.03.2025 22:09:495HVNone 
automatic log for run 200
Comment:
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.conf" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
Attachment 2: tjmonopix2_1.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.conf" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  16   Fri Mar 14 22:13:14 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
APV25 latency 42 required for these input stretches
  17   Fri Mar 14 22:20:25 2025 elog-producer1st tests with beam201TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 22:11:2314.03.2025 22:20:519HVNone 
automatic log for run 201
Comment:
Attachment 1: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
Attachment 2: tjmonopix2_1.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xB #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  18   Fri Mar 14 22:41:04 2025 elog-producer1st tests with beam202TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 22:38:5114.03.2025 22:41:302HVNone 
automatic log for run 202
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  19   Fri Mar 14 22:41:16 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
ignored veto of tracker
  20   Fri Mar 14 22:47:46 2025 elog-producer1st tests with beam203TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 22:42:3014.03.2025 22:48:125HVNone 
automatic log for run 203
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0x3F #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  21   Fri Mar 14 22:48:01 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
max trigger 75 -> 100
  22   Fri Mar 14 23:21:11 2025 elog-producer1st tests with beam208TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 23:19:4714.03.2025 23:21:371HVNone 
automatic log for run 208
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  23   Fri Mar 14 23:21:26 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
wrong trigger mode used for tracker
  24   Fri Mar 14 23:22:22 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
changed telescope timing again to latency 40
  25   Fri Mar 14 23:32:56 2025 elog-producer1st tests with beam TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
208 shows correlation
  26   Fri Mar 14 23:35:49 2025 elog-producer1st tests with beam209TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 23:26:4414.03.2025 23:36:169HVNone 
automatic log for run 209
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  27   Fri Mar 14 23:55:03 2025 elog-producer1st tests with beam210TJ-Monopix2800 MeVLow Flux Very LowProtonCrap14.03.2025 23:37:0214.03.2025 23:55:2918HVNone 
automatic log for run 210
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  28   Sat Mar 15 00:00:49 2025 elog-producer1st tests with beam211TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown14.03.2025 23:58:3115.03.2025 00:01:152HVNone 
automatic log for run 211
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  29   Sat Mar 15 00:46:34 2025 elog-producerproper run212TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown15.03.2025 00:05:0815.03.2025 00:47:0041HVNone 
automatic log for run 212
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  30   Sat Mar 15 01:05:30 2025 elog-producerFast RO Test213TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown15.03.2025 00:50:3615.03.2025 01:05:5615HVNone 
automatic log for run 213
Comment:
Fast RO for Monopix:

Delay = 2
rd_frz_delay = 2

LOAD_CONF=10
FREEZE_STOP_CONF=11
STOP_CONF=10
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  31   Sat Mar 15 01:22:54 2025 elog-producerFast RO Test214TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown15.03.2025 01:08:5415.03.2025 01:23:2114HVNone 
automatic log for run 214
Comment:
Fast RO for Monopix: Medium

Delay = 20
rd_frz_delay = 20

LOAD_CONF=20
FREEZE_STOP_CONF=21
STOP_CONF=20
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  37   Sat Mar 15 02:34:31 2025 elog-producerFast RO Test TJ-Monopix2800 MeVLow Flux Very LowProtonUnknown   HVNone 
Run 223, 8b10b error again
  38   Sat Mar 15 02:46:47 2025 elog-producerenergy scans TJ-Monopix2252.7 MeVLow Flux Very LowProtonUnknown   HVNone 
sticking with fast RO settings
  39   Sat Mar 15 02:53:18 2025 elog-producerenergy scans224TJ-Monopix2252.7 MeVLow Flux Very LowProtonUnknown15.03.2025 02:49:4415.03.2025 02:53:443HVNone 
automatic log for run 224
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  41   Sat Mar 15 03:14:22 2025 elog-producerenergy scans226TJ-Monopix2252.7 MeVLow Flux Very LowProtonUnknown   HVNone 
Run 226
  42   Sat Mar 15 03:18:15 2025 elog-producerenergy scans227TJ-Monopix2252.7 MeVLow Flux Very LowProtonUnknown15.03.2025 03:16:5215.03.2025 03:18:411HVNone 
automatic log for run 227
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  43   Sat Mar 15 03:29:19 2025 elog-producerenergy scans228TJ-Monopix2175.3 MeVLow Flux Very LowProtonUnknown15.03.2025 03:20:0215.03.2025 03:29:459HVNone 
automatic log for run 228
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  44   Sat Mar 15 03:39:19 2025 elog-producerenergy scans229TJ-Monopix2145.4 MeVLow Flux Very LowProtonUnknown15.03.2025 03:30:4215.03.2025 03:39:459HVNone 
automatic log for run 229
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  45   Sat Mar 15 03:59:08 2025 elog-producerenergy scans230TJ-Monopix2100.4 MeVLow Flux Very LowProtonUnknown15.03.2025 03:41:1815.03.2025 03:59:3418HVNone 
automatic log for run 230
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  46   Sat Mar 15 04:11:28 2025 elog-producerenergy scans231TJ-Monopix283 MeVLow Flux Very LowProtonCrap15.03.2025 04:00:2015.03.2025 04:11:5411HVNone 
automatic log for run 231
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  47   Sat Mar 15 04:20:39 2025 elog-producerenergy scans232TJ-Monopix283 MeVLow Flux Very LowProtonGood15.03.2025 04:13:5115.03.2025 04:21:057HVNone 
automatic log for run 232
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  33   Sat Mar 15 01:38:17 2025 elog-producerFast RO Test216TJ-Monopix2800 MeVLow Flux MediumProtonUnknown   HVNone 
Fast RO for Monopix:
W02W01 8b10b error quite early

Delay = 2
rd_frz_delay = 2

LOAD_CONF=10
FREEZE_STOP_CONF=11
STOP_CONF=10
  34   Sat Mar 15 01:51:31 2025 elog-producerFast RO Test TJ-Monopix2800 MeVLow Flux MediumProtonUnknown   HVNone 
Run 219, Medium settings, fast RO, W02R01 to 8b10b a few minutes in
  35   Sat Mar 15 01:58:29 2025 elog-producerFast RO Test TJ-Monopix2800 MeVLow Flux MediumProtonUnknown   HVNone 
Run 220, 8b10b error
  48   Sat Mar 15 04:26:35 2025 elog-producer test rate limits 233TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:24:0615.03.2025 04:27:012HVNone 
automatic log for run 233
Comment:
Increase csinti thr to -0.05
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.05 #-0.025 #-0.012
DACThreshold1 = -0.05 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=496
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  49   Sat Mar 15 04:28:39 2025 elog-producer test rate limits 234TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:28:2315.03.2025 04:29:060HVNone 
automatic log for run 234
Comment:
Increase csinti thr to -0.075
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.075 #-0.025 #-0.012
DACThreshold1 = -0.075 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=496
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  50   Sat Mar 15 04:35:45 2025 elog-producertest rate limits235TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:29:5715.03.2025 04:36:126HVNone 
automatic log for run 235
Comment:
Increase csinti thr to -0.2
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=496
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  53   Sat Mar 15 04:48:44 2025 elog-producertest 8b10b238TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:47:5515.03.2025 04:49:101HVNone 
automatic log for run 238
Comment:
THR -0.2

tiny part of matrix enabled
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=492
start_row=200
stop_row=300
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  54   Sat Mar 15 04:51:42 2025 elog-producertest 8b10b239TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:50:0815.03.2025 04:52:092HVNone 
automatic log for run 239
Comment:
THR -0.2

tiny part of matrix enabled
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=454
start_row=200
stop_row=300
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  55   Sat Mar 15 04:58:42 2025 elog-producertest 8b10b241TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 04:56:5315.03.2025 04:59:082HVNone 
automatic log for run 241
Comment:
test HVC fe
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=454
start_row=250
stop_row=300
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  56   Sat Mar 15 05:02:22 2025 elog-producertest 8b10b242TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 05:00:5815.03.2025 05:02:481HVNone 
automatic log for run 242
Comment:
more quadratic now
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=466
start_row=226
stop_row=242
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  57   Sat Mar 15 05:06:44 2025 elog-producertest 8b10b243TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 05:05:5915.03.2025 05:07:101HVNone 
automatic log for run 243
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=466
start_row=226
stop_row=238
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  58   Sat Mar 15 05:12:19 2025 elog-producertest 8b10b244TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 05:08:0315.03.2025 05:12:464HVNone 
automatic log for run 244
Comment:
both chips, more stat with small window on W02R01
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=466
start_row=226
stop_row=238
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  59   Sat Mar 15 05:27:08 2025 elog-producertest 8b10b245TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 05:26:5215.03.2025 05:27:340HVNone 
automatic log for run 245
Comment:
test with swapped ethernet ports and bsaq IP adresses
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=450
stop_column=466
start_row=226
stop_row=238
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
#daqboard_ip="192.168.10.23"
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
#daqboard_ip="192.168.12.23"
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  60   Sat Mar 15 05:42:14 2025 elog-producertest 8b10b246TJ-Monopix2800 MeVLow Flux MediumProtonUnknown15.03.2025 05:38:4215.03.2025 05:42:413HVNone 
automatic log for run 246
Comment:
BDAQ Board to Monopix connection swapped - and now the W02R01 chip works fine with full rate
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
#daqboard_ip="192.168.10.23"
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
#daqboard_ip="192.168.12.23"
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  61   Sat Mar 15 08:52:52 2025 RD50 Generic UserAlignment Run 800MeV2Sandwich-iCT setup(GSI)+RaMon800 MeVLow Flux MediumProtonGood08:229:4078   

RaMon Rate 400kHz

front sensors 200mu: ~10-20kHz pro Streifen

Comments:

In between run, sensors were shifted by 2mm to the left (left and right in online DAQ is mirrored)

 

  64   Sat Mar 15 10:07:28 2025 RD50 Generic UserAlignment Run 252MeV4Sandwich-iCT setup(GSI)+RaMon252.7 MeVLow Flux MediumProtonGood10:0711:4396   

RaMon Rate 1MHz

front sensors 200mu: ~10-25kHz pro Streifen

  65   Sat Mar 15 11:46:28 2025 RD50 Generic UserSlab Measurement 145MeV5Sandwich-iCT setup(GSI)+RaMon145.4 MeVLow Flux MediumProtonGood11:4813:1385   

RaMon Rate 600kHz

front sensors 200mu: ~1kHz pro Streifen

Comments:

change of the trigger settings inbetween, we saw inefficency on all detectors

  66   Sat Mar 15 13:15:25 2025 RD50 Generic UserSlab Measurement 205MeV6Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHeliumGood13:2714:4982   

RaMon Rate 1.3 MHz

Comments:

We entered the room and connected the second LAN Port to the ReadOut-PC. The Eventbuilder-parameter got changed.

  68   Sat Mar 15 15:26:08 2025 RD50 Generic UserRate testing8Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHelium 15:3116:3059   

RaMon Rate: 1.3MHz

Comments:

Tested different evenbuilder settings which made things worse, probably switch is the bottleneck, changed rate settings inbetween, requires sergey

  69   Sat Mar 15 16:50:39 2025 RD50 Generic UserSlab Test Water 1cm9Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHeliumGood16:3517:2348 Plastic Water Slabs1cm

RaMon Rate: 1.3MHz

  70   Sat Mar 15 17:30:18 2025 RD50 Generic UserSlab Test Water 2cm10Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHelium 17:3018:2454 Plastic Water Slabs2cm

RaMon Rate 1.5 MHz

  71   Sat Mar 15 18:37:36 2025 RD50 Generic UserSlab Test Water 3cm11Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHelium 18:4119:2847 Plastic Water Slabs3cm

RaMon Rate 1.5MHz

  72   Sat Mar 15 19:37:42 2025 RD50 Generic UserSlab Test Water 4cm12Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux MediumHelium 19:3920:4162 Plastic Water Slabs4cm

RaMon Rate 1.4MHz

  32   Sat Mar 15 01:29:25 2025 elog-producerFast RO Test215TJ-Monopix2800 MeVLow Flux LowProtonUnknown15.03.2025 01:26:1315.03.2025 01:29:513HVNone 
automatic log for run 215
Comment:
Lower rates then Very low settings, so just a quick run here
Fast RO for Monopix:

Delay = 2
rd_frz_delay = 2

LOAD_CONF=10
FREEZE_STOP_CONF=11
STOP_CONF=10
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  36   Sat Mar 15 02:15:34 2025 elog-producerFast RO Test221TJ-Monopix2800 MeVLow Flux LowProtonUnknown15.03.2025 02:02:1515.03.2025 02:16:0013HVNone 
automatic log for run 221
Comment:
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.025 #-0.025 #-0.012
DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  40   Sat Mar 15 02:56:07 2025 elog-producerenergy scans225TJ-Monopix2252.7 MeVLow Flux LowProtonUnknown   HVNone 
8b10b W02R01, 1 MHz rate (low flux low)
  62   Sat Mar 15 08:58:26 2025 RD50 Generic UserAlignment Run 800MeV1Sandwich-iCT setup(GSI)+RaMon800 MeVLow Flux LowProtonGood07:4008:2040   

RaMon Rate not measured

front sensors 200mu: ~40-60Hz pro Streifen

Comments:

stopped run due to too low rate

 

  51   Sat Mar 15 04:39:13 2025 elog-producertest rate limits236TJ-Monopix2800 MeVLow Flux HighProtonUnknown15.03.2025 04:38:0415.03.2025 04:39:391HVNone 
automatic log for run 236
Comment:
Increase csinti thr to -0.2
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.2 #-0.025 #-0.012
DACThreshold1 = -0.2 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=496
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  52   Sat Mar 15 04:42:48 2025 elog-producertest rate limits237TJ-Monopix2800 MeVLow Flux HighProtonUnknown15.03.2025 04:40:2815.03.2025 04:43:142HVNone 
automatic log for run 237
Comment:
Increase csinti thr to -0.3
Attachment 1: tjmonopix2.ini
# example init file: Ex0.ini
[LogCollector.log]
EULOG_GUI_LOG_FILE_PATTERN = $12D.log

[Producer.tracker_irgendwas]

[Producer.aida_tlu]
initid= 20210115
verbose = 1
ConnectionFile= "file:///home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml"
#ConnectionFile= "file:///home/tlu-ma/latesteudaq/eudaq/user/tlu/misc/aida_tlu/aida_tlu_connection.xml" #for TLU MAUS
DeviceName = "aida_tlu.controlhub"
#DeviceName = "aida_tlu.udp"
TLUmod = "1e"
# number of HDMI inputs, leave 4 even if you only use fewer inputs
nDUTs = 4
nTrgIn = 6
# 0= False (Internal Reference OFF), 1= True
intRefOn = 0
VRefInt = 2.5
VRefExt = 1.3
# I2C address of the bus expander on Enclustra FPGA
I2C_COREEXP_Addr = 0x21
# I2C address of the Si5345
I2C_CLK_Addr = 0x68
# I2C address of 1st AD5665R
I2C_DAC1_Addr = 0x13
# I2C address of 2nd AD5665R
I2C_DAC2_Addr = 0x1F
# address of unique Id number EEPROM
I2C_ID_Addr = 0x50
#I2C address of 1st expander PCA9539PW~/
I2C_EXP1_Addr = 0x74
#I2C address of 2st expander PCA9539PW
I2C_EXP2_Addr = 0x75
#I2C address of AD5665R on powermodule
I2C_DACModule_Addr = 0x1CnoiseTrim
# Max value for control voltage on PMTs (usually 1 V)
PMT_vCtrlMax= 1.0
#I2C address of 1st expander PCA9539PW on powermodule
I2C_EXP1Module_Addr = 0x76
#I2C address of 2nd expander PCA9539PW on powermodule
I2C_EXP2Module_Addr = 0x77


##CONFCLOCK 0= skip clock configuration, 1= configure si5345
CONFCLOCK= 1
#CLOCK_CFG_FILE = "/home/pct-eudaq/latesteudaq/trackereudaq/user/caribou/MPW3/csv/20mhz_out2.txt"
#CLOCK_CFG_FILE = "/home/tlu-ma/mpw3/configs/20mhz_out2.txt"
CLOCK_CFG_FILE = "/home/pct/frameworks/trackereudaq/user/tlu/misc/aida_tlu/aida_tlu_clk_config.txt"
#CLOCK_CFG_FILE = "~/latesteudaq/trackereudaq/user/eudet/misc/hw_conf/aida_tlu/aida_tlu_clk_config.txt" # for TLU MAUS

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = maus_$12D.log
# the $12D will be converted a data/time string with 12 digits.

[Producer.elog1]
elog_installation = "/home/pct/frameworks/elog/elog"
elog_host = "elog.hephy.at"
elog_port = 443
elog_logbook = "testbeam-MA2025"
att_stop_time = "t-Stop"
att_start_time = "t-Start"
att_run_number = "Run Number"
att_run_duration = "Duration_min"
color = ""

#simply paste configuration of yourComment = Testbeams at MedAustron in 2025
Admin user = bergi, maks, bpilsl, FUL
Self register = 3

Attributes = Author, Subject, Run Number, DUT, Beam Energy, Rate Setting, Particle Type, Data, t-Start, t-Stop, Duration_min, Frontend, Phantom, Phantom thickness,
Options DUT = common, DSSD-Tracker, RD50-MPW4, TJ-Monopix2, TOF-Cal GSI, RaMon, TOF-Cal GSI (TRB)+DOGMA setup(diamond+LGAD)+RaMon
Extendable options = DUT, Beam Energy, Rate Setting, Phantom, Phantom Thickness
Options Data = Unknown, Good, Crap
Options Beam Energy = 800 MeV, 252.7 MeV, 194.3 MeV, 175.3 MeV, 145.4 MeV, 100.4 MeV, 83 MeV, 62.4 MeV, 115.7MeV, 205.2 MeV/u, 177.8 MeV/u, 147.2 MeV/u, 124.4 MeV/u, 97.2MeV/u, 73.2 MeV/u, 63.3 MeV/u, 402MeV/u
Options Particle Type = Proton, Carbon, Helium
Options Rate Setting = Low Flux Very Low, Low Flux Low, Low Flux Medium, Low Flux High
Options Frontend = Normal, Normal Casc, HV, HV Casc
Quick filter = Date, Subject, Run Number, DUT, Beam Energy
Options Phantom = Plastic Water Slabs, Dense Bone Slabs, None, plastic mouse
Options Phantom Thickness = 1cm, 2cm, 3cm, 4cm, 5cm

Menu commands =  List, New, Edit, Delete, Reply, Duplicate, Move to, Find, Help
List Menu commands = New, Find, Select, Logout, Config, Help  
Guest List Menu commands = Find, Login, Help  
Guest menu commands = List, Find, Login, Help

################################################################## Elog logbook
[Producer.HamegProducer]
serial_port="/dev/ttyUSB0"

##################################################################
Attachment 2: tjmonopix2.conf
# example config file: Ex0.conf
[RunControl]
#pCT_STOP_RUN_AFTER_N_SECONDS = 3000000
# from the base RunControl.cc
#EUDAQ_CTRL_PRODUCER_LAST_START = my_pd0
#EUDAQ_CTRL_PRODUCER_FIRST_STOP = my_pd0
# Steer which values to display in the GUI: producerName and displayed value are seperated by a ",". 
ADDITIONAL_DISPLAY_NUMBERS = "log,_SERVER"

[Producer.aida_tlu]
## GENERAL PARAMETERS
verbose= 1
skipconf= 0
confid= 20201311
delayStart= 200  

## HDMI CONFIGURATION
#  4-bits to determine direction of HDMI pins
HDMI1_set= 0x7 #1= output (driven by TLU), 0 = input. bit 0=CONT, 1=SPARE, 2=TRIG, 3=BUSY for eudet, Busy needs to be 0. (0b0111 = 0x7)
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
#  Clock source (0= no clock, 1= Si5345, 2= FPGA)
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
HDMI4_clk = 1
#  Enable/Disable clock on differential LEMO
LEMOclk = 0

## PMT POWER CONFIGURATION
PMT1_V= 0.8 #0.6363 #Szinti 4x4cm
PMT2_V= 0.8 #0.6363 #Szinti 4x4cm
PMT3_V= 0.0
PMT4_V= 0.0

## TRIGGER CONFIGURATION
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008 #0x00000008 #0x00010002 #0x00000001  #8 coinc1+2
in0_STR = 6	# 0 
in0_DEL = 0	# 18
in1_STR = 6	# 0
in1_DEL = 0	# 18
in2_STR = 0	# 0
in2_DEL = 0 	# 0
in3_STR = 0
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0 #streches pulse from 6.25ns (at 0) to 12.5ns
in5_DEL = 0
# Generate internal triggers (in Hz, 0= no triggers)
#InternalTriggerFreq= 50000 #4000 #00

## DISCRIMINATOR THRESHOLDS
DACThreshold0 = -0.3 #-0.025 #-0.012
DACThreshold1 = -0.3 #-0.025 #-0.012
#DACThreshold0 = -0.025 #-0.025 #-0.012
#DACThreshold1 = -0.012 #-0.025 #-0.012
DACThreshold2 = -0.012
DACThreshold3 = -0.12
DACThreshold4 = -0.12 #-0.0066
DACThreshold5 = -0.12

## DUT CONFIGURATION
 # DUTMask Which DUTs are on
#DUTMask= 0x3 #6 bit 0= DUT1, bit 1= DUT2, bit 2= DUT3, bit 3= DUT4
DUTMask= 0xB

 # DUTMaskMode Define AIDA (11) or EUDET (00) mode (2 bits per DUT)
DUTMaskMode= 0xF3 #0x00

 # In EUDET mode: 0 = standard trigger/busy mode, 1 = raising BUSY outside handshake vetoes triggers (2 bits per DUT, 0x3= DUT 4! -backwards!)
DUTMaskModeModifier= 0x30 #0x30 #0xC0 PS: Check what this does! 0x0 würde ich hier eingeben

 # Ignore the BUSY signal for a DUT (0xF)
DUTIgnoreBusy= 0xD #ignores triggers
DUTIgnoreShutterVeto= 0x0
EnableRecordData = 1


# EnableShutterMode: 0x0. If 1, shutter mode is enabled. If 0, shutter mode is disabled.
EnableShutterMode= 0x0
# Define which input is used for shutter source [0 - 5]
ShutterSource = 5
# 32-bit counter of clocks. Set to 0 to not use internal shutter generator.
InternalShutterInterval = 0
# 32-bit counter of clocks
ShutterOnTime = 0 #start of shutter after trigger
# 32-bit counter of clocks
ShutterVetoOffTime = 0 #time after input-trigger, until first trigger is sent to output
# 32-bit counter of clocks
ShutterOffTime = 200000000 #end of shutter after trigger #200000000 = 5s (multiples of 25ns)

## DATA COLLECTOR
EUDAQ_DC= tlu_dc

## TLU MONITOR PARAMETER
FileComment="mpw3"
PlotWindowSizeinns=40e9
MinSpillTimeOnins=4.5
MinSpilldownTimeins=0.5
ThreshEvBegin=1
ThreshEvEnd=1
ThreshPartBegin=1
ThreshPartEnd=1




[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing


[DataCollector.tlu_dc]
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="/home/silicon/TJ-Monopix2/testbeam_03_2025/tlu/tlu_run$6R.raw"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT = 1


[Producer.tjmonopix2_W02R01]
start_column=490
stop_column=496
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W02R01_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.10.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W02R01"
chip_sn="W02R01"
online_monitor_port="5500"

[Producer.tjmonopix2_W14R18]
start_column=448
stop_column=512
start_row=0
stop_row=512
scan_timeout=0
max_triggers=0
chip_config_file="/home/silicon/TJ-Monopix2/Tuning/2BDAQ_boards_test/HV_W14R18_threshold_scan_interpreted.h5"
VCLIP=255
daqboard_ip="192.168.12.23"
output_directory="/home/silicon/TJ-Monopix2/testbeam_03_2025/W14R18"
chip_sn="W14R18"
online_monitor_port="5700"

[Producer.HamegProducer]
hv=20
power_cycle_at_stop=1 #0=False 1=True
logging=1 #0=False 1=True
log_interval=10
logging_directory="/home/silicon/TJ-Monopix2/TJ-Monopix2-Power/Log/testbeam_prep"

[Producer.elog1]
#start_cmd = "./get_mpw4_configs.sh" # command (shell script) to execute before starting a run
files2log = "tjmonopix2.ini" #files to attach to the auto Elog entries, EUDAQ config will be logged by default
  63   Sat Mar 15 09:51:23 2025 RD50 Generic UserAlignment Run 800MeV3Sandwich-iCT setup(GSI)+RaMon800 MeVLow Flux HighProtonUnknown9:4410:0319   

RaMon Rate 2MHz

front sensors 200mu: ~50-100kHz pro Streifen

Comments:

Factor 10 lost more data than measured

 

  67   Sat Mar 15 15:02:39 2025 RD50 Generic UserRate testing7Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux HighHeliumGood15:0415:2521   

RaMon Rate 4.5MHz

Comments:

From File 7 until 21 optional false, and from 22 true (everything deleted)

  73   Sat Mar 15 21:25:18 2025 RD50 Generic UserSlab Test Water 5cm14Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux HighHeliumGood21:2621:5014 Plastic Water Slabs5cm

RaMon rate: 4.5MHz

  74   Sat Mar 15 21:29:28 2025 RD50 Generic UserSlab and rate testing (with Michael)13Sandwich-iCT setup(GSI)+RaMon205.2 MeV/uLow Flux HighHeliumGood20:4421:2238 Plastic Water Slabs4cm

totzeit optimieren und deadtime finden

hex wert mal 10ns deadtime

13 ab file 10 besat effort
ab 52 wieder ohne best effort

600

  75   Wed Mar 19 11:23:53 2025 bpjust testing            
This is message text
  76   Wed Mar 19 11:27:46 2025 bpjust testing            
This is message text
ELOG V3.1.5-fc6679b