Home CMS Production Clean room MedAustron HEPHY testbeams old
testbeam-rd50-desy-Oct2024 testbeam-RD50-DESY-Apr2024 testbeam-RD50-DESY-Jul2023 testbeam-RD50-CERN-Oct2022 testbeam-DESY-Oct2017 testbeam-DESY-April2017 testbeam-SPS2015 testbeam-SPS2014 testbeam-DESY14 testbeam-SPS12 testbeam-SPS11 testbeam-SPS10 testbeam-SPS09 testbeam-SPS08 LP-TPC
  Testbeam at DESY in 2023, Page 23 of 26  Not logged in ELOG logo
ID Date Author Subject Run Number DUT Wafer HV Fluence Resistivity Beam Energy Rate Setting Particle Type Data t-Start t-Stop Duration_min
  68   Wed Jul 5 17:11:45 2023 tb-crewsearching correlations671RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 17:03:0005.07.2023 17:07:354
automatic log for run 671
Comment:
moving stage to check for alignment
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 1626 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 1626 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
BIAS = 1
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  67   Wed Jul 5 17:04:40 2023 tb-crewsearching correlations670RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:54:1105.07.2023 17:00:306
automatic log for run 670
Comment:
activated rows 30 -> 64
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
BIAS = 1
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  66   Wed Jul 5 17:01:49 2023 tb-crewsearching correlations RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown   
activated rows 30 -> 64
  65   Wed Jul 5 17:01:29 2023 tb-crewsearching correlations RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown   
test
  64   Wed Jul 5 16:56:52 2023 tb-crewsearching correlations669RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:49:3505.07.2023 16:52:423
automatic log for run 669
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
BIAS = 1
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  63   Wed Jul 5 16:52:42 2023 tb-crewsearching correlations668RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:47:4505.07.2023 16:48:320
automatic log for run 668
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
BIAS = 0.5
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  62   Wed Jul 5 16:50:40 2023 tb-crewsearching correlations667RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:35:4605.07.2023 16:46:3010
automatic log for run 667
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
#BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  61   Wed Jul 5 16:39:10 2023 tb-crewsearching correlations666RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:30:1205.07.2023 16:35:004
automatic log for run 666
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_23V_norm_thr23/20230704_222856_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 20
#BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  60   Wed Jul 5 16:30:31 2023 tb-crewsearching correlations665RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:20:5305.07.2023 16:26:205
automatic log for run 665
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_10V_norm_thr23/20230704_220043_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 480
STOP_COLUMN = 492
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 10
#BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  59   Wed Jul 5 16:24:17 2023 tb-crewsearching correlations RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown   
no longer injections
  58   Wed Jul 5 16:21:36 2023 Bernhard Pilslbugfindingdeactivated injection again            
  57   Wed Jul 5 16:11:43 2023 tb-crewsearching correlations663RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 16:07:0205.07.2023 16:07:320
automatic log for run 663
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/20230704_134707_local_threshold_tuning_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  56   Wed Jul 5 16:07:38 2023 tb-crewsearching correlations662RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:58:0705.07.2023 16:03:285
automatic log for run 662
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_10V_casc_thr26/20230704_220702_threshold_scan.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR27_norm/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 448
STOP_COLUMN = 480
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 10
#BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  55   Wed Jul 5 15:59:09 2023 tb-crewsearching correlations661RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:52:3705.07.2023 15:54:592
automatic log for run 661
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/HV_10V_casc_thr26/20230704_220702_threshold_scan.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR27_norm/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 448
STOP_COLUMN = 480
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
HV = 10
#BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  54   Wed Jul 5 15:52:42 2023 tb-crewsearching correlations660RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:43:2305.07.2023 15:48:325
automatic log for run 660
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR27_norm/chip_0/20230705_113036_local_threshold_tuning_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR27_norm/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 0
STOP_COLUMN = 224
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  53   Wed Jul 5 15:45:03 2023 tb-crewsearching correlations659RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:35:3805.07.2023 15:40:525
automatic log for run 659
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/20230704_135424_threshold_scan_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR30_cascode/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  52   Wed Jul 5 15:38:41 2023 tb-crewsearching correlations658RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:30:0305.07.2023 15:34:314
automatic log for run 658
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230704_132800_threshold_scan_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230705_150039_run_654_eudaq_scan/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  51   Wed Jul 5 15:32:09 2023 tb-crewsearching correlations657RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:22:0105.07.2023 15:27:595
automatic log for run 657
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
InternalTriggerFreq = 4000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230704_132800_threshold_scan_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230705_150039_run_654_eudaq_scan/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  50   Wed Jul 5 15:23:39 2023 tb-crewsearching correlations656RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:18:4905.07.2023 15:19:280
automatic log for run 656
Comment:
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
InternalTriggerFreq = 4000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230704_132800_threshold_scan_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230705_150039_run_654_eudaq_scan/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
  49   Wed Jul 5 15:14:43 2023 tb-crewsearching correlations655RD50-MPW3unknown unirradiated1.9K4.2 electronUnknown05.07.2023 15:05:5805.07.2023 15:10:334
automatic log for run 655
Comment:
injecting from CarBoard in parallel to hits from beam
Attachment 1: peary_config.cfg
#This config file was generated with the "MPW3_gui - Config Creator"
#Do not change comment lines like "SEC::xxx" !
#They are needed for parsing

[RD50_MPW3]
this_config_file = config_piggy_new.cfg
#SEC::MISC
accept_tlu_trigger = 1
enable_readout = 0
calib_file_base = calib_base.txt
config_si5345 = clock_config.txt
execute_file = execute.txt
i2c_addr_base = 0x41
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_base.txt

inj = 1000


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36


#SEC::POWER
# voltages with suffix "__u", currents with "__i"
bl__u = 0.9
bl__i = 3
del_hi__u = 0.7
del_hi__i = 3
del_lo__u = 0.9
del_lo__i = 3
p1v3_vssa__u = 1.3
p1v3_vssa__i = 3
p1v8_nw_ring__u = 1.8
p1v8_nw_ring__i = 3
p1v8_vdd!__u = 1.8
p1v8_vdd!__i = 3
p1v8_vdda__u = 1.8
p1v8_vdda__i = 3
p1v8_vddc__u = 1.8
p1v8_vddc__i = 3
p1v8_vsensbus__u = 1.8
p1v8_vsensbus__i = 3
p2v5d__u = 2.5
p2v5d__i = 3
th__u = 1.2
th__i = 3

[RD50_MPW3_Piggy]
this_config_file = config_piggy_new.cfg
#SEC::MISC
calib_file = calib_piggy.txt
execute_file = execute.txt
i2c_addr = 0x47
i2c_dev = /dev/i2c-9
matrix_config = matrix_config_piggy.txt
piggy_attached = 0


#SEC::REGISTERS
conf_reg_ts_ctrl = 0
conf_reg_ts_ini = 0
cu_ctrl = 0
en_ext_ctrl = 0
en_ser_out_dcol = 0
en_sfout_dcol = 0
idle0 = 251
idle1 = 247
idle2 = 247
idle3 = 247
tx_ctrl = 0
vbfb = 38
vblr = 38
vn = 21
vnfb = 18
vnsensbias = 50
vnsf = 45
vpbias = 37
vpcomp = 19
vptrim = 36
Attachment 2: matrix_config_base.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 3: matrix_config_piggy.txt
# Config-File of the Pixel-Matrix; generated by MPW3-Config-Creator
# each line represents the configuration of an individual pixel
# format: {row} {col} {mask} {en_inj} {hb_en} {en_sfout} {TDAC}

# default values (which are not printed) are:
# {row} {col} 0 0 0 0 -1
00 00 1 0 0 0 -1
00 01 1 0 0 0 -1
00 02 1 0 0 0 -1
00 03 1 0 0 0 -1
00 04 1 0 0 0 -1
00 05 1 0 0 0 -1
00 06 1 0 0 0 -1
00 07 1 0 0 0 -1
00 08 1 0 0 0 -1
00 09 1 0 0 0 -1
00 10 1 0 0 0 -1
00 11 1 0 0 0 -1
00 12 1 0 0 0 -1
00 13 1 0 0 0 -1
00 14 1 0 0 0 -1
00 15 1 0 0 0 -1
00 16 1 0 0 0 -1
00 17 1 0 0 0 -1
00 18 1 0 0 0 -1
00 19 1 0 0 0 -1
00 20 1 0 0 0 -1
00 21 1 0 0 0 -1
00 22 1 0 0 0 -1
00 23 1 0 0 0 -1
00 24 1 0 0 0 -1
00 25 1 0 0 0 -1
00 26 1 0 0 0 -1
00 27 1 0 0 0 -1
00 28 1 0 0 0 -1
00 29 1 0 0 0 -1
00 30 1 0 0 0 -1
00 31 1 0 0 0 -1
00 32 1 0 0 0 -1
00 33 1 0 0 0 -1
00 34 1 0 0 0 -1
00 35 1 0 0 0 -1
00 36 1 0 0 0 -1
00 37 1 0 0 0 -1
00 38 1 0 0 0 -1
00 39 1 0 0 0 -1
00 40 1 0 0 0 -1
00 41 1 0 0 0 -1
00 42 1 0 0 0 -1
00 43 1 0 0 0 -1
00 44 1 0 0 0 -1
00 45 1 0 0 0 -1
00 46 1 0 0 0 -1
00 47 1 0 0 0 -1
00 48 1 0 0 0 -1
00 49 1 0 0 0 -1
00 50 1 0 0 0 -1
00 51 1 0 0 0 -1
00 52 1 0 0 0 -1
00 53 1 0 0 0 -1
00 54 1 0 0 0 -1
00 55 1 0 0 0 -1
00 56 1 0 0 0 -1
00 57 1 0 0 0 -1
00 58 1 0 0 0 -1
00 59 1 0 0 0 -1
00 60 1 0 0 0 -1
00 61 1 0 0 0 -1
00 62 1 0 0 0 -1
00 63 1 0 0 0 -1
01 00 1 0 0 0 -1
01 01 1 0 0 0 -1
01 02 1 0 0 0 -1
01 03 1 0 0 0 -1
01 04 1 0 0 0 -1
01 05 1 0 0 0 -1
01 06 1 0 0 0 -1
01 07 1 0 0 0 -1
01 08 1 0 0 0 -1
01 09 1 0 0 0 -1
01 10 1 0 0 0 -1
01 11 1 0 0 0 -1
01 12 1 0 0 0 -1
01 13 1 0 0 0 -1
01 14 1 0 0 0 -1
01 15 1 0 0 0 -1
01 16 1 0 0 0 -1
01 17 1 0 0 0 -1
01 18 1 0 0 0 -1
01 19 1 0 0 0 -1
01 20 1 0 0 0 -1
01 21 1 0 0 0 -1
01 22 1 0 0 0 -1
01 23 1 0 0 0 -1
01 24 1 0 0 0 -1
01 25 1 0 0 0 -1
01 26 1 0 0 0 -1
01 27 1 0 0 0 -1
01 28 1 0 0 0 -1
01 29 1 0 0 0 -1
01 30 1 0 0 0 -1
01 31 1 0 0 0 -1
01 32 1 0 0 0 -1
01 33 1 0 0 0 -1
01 34 1 0 0 0 -1
01 35 1 0 0 0 -1
01 36 1 0 0 0 -1
01 37 1 0 0 0 -1
01 38 1 0 0 0 -1
01 39 1 0 0 0 -1
01 40 1 0 0 0 -1
01 41 1 0 0 0 -1
01 42 1 0 0 0 -1
01 43 1 0 0 0 -1
01 44 1 0 0 0 -1
01 45 1 0 0 0 -1
01 46 1 0 0 0 -1
01 47 1 0 0 0 -1
01 48 1 0 0 0 -1
01 49 1 0 0 0 -1
01 50 1 0 0 0 -1
01 51 1 0 0 0 -1
01 52 1 0 0 0 -1
01 53 1 0 0 0 -1
01 54 1 0 0 0 -1
01 55 1 0 0 0 -1
01 56 1 0 0 0 -1
01 57 1 0 0 0 -1
01 58 1 0 0 0 -1
01 59 1 0 0 0 -1
01 60 1 0 0 0 -1
01 61 1 0 0 0 -1
01 62 1 0 0 0 -1
01 63 1 0 0 0 -1
02 00 1 0 0 0 -1
02 01 1 0 0 0 -1
02 02 1 0 0 0 -1
02 03 1 0 0 0 -1
02 04 1 0 0 0 -1
02 05 1 0 0 0 -1
02 06 1 0 0 0 -1
02 07 1 0 0 0 -1
02 08 1 0 0 0 -1
02 09 1 0 0 0 -1
02 10 1 0 0 0 -1
02 11 1 0 0 0 -1
02 12 1 0 0 0 -1
02 13 1 0 0 0 -1
02 14 1 0 0 0 -1
02 15 1 0 0 0 -1
02 16 1 0 0 0 -1
02 17 1 0 0 0 -1
02 18 1 0 0 0 -1
02 19 1 0 0 0 -1
02 20 1 0 0 0 -1
02 21 1 0 0 0 -1
02 22 1 0 0 0 -1
02 23 1 0 0 0 -1
02 24 1 0 0 0 -1
02 25 1 0 0 0 -1
02 26 1 0 0 0 -1
02 27 1 0 0 0 -1
02 28 1 0 0 0 -1
02 29 1 0 0 0 -1
02 30 1 0 0 0 -1
02 31 1 0 0 0 -1
02 32 1 0 0 0 -1
02 33 1 0 0 0 -1
02 34 1 0 0 0 -1
02 35 1 0 0 0 -1
02 36 1 0 0 0 -1
02 37 1 0 0 0 -1
02 38 1 0 0 0 -1
02 39 1 0 0 0 -1
02 40 1 0 0 0 -1
02 41 1 0 0 0 -1
02 42 1 0 0 0 -1
02 43 1 0 0 0 -1
02 44 1 0 0 0 -1
02 45 1 0 0 0 -1
02 46 1 0 0 0 -1
02 47 1 0 0 0 -1
02 48 1 0 0 0 -1
02 49 1 0 0 0 -1
02 50 1 0 0 0 -1
02 51 1 0 0 0 -1
02 52 1 0 0 0 -1
02 53 1 0 0 0 -1
02 54 1 0 0 0 -1
02 55 1 0 0 0 -1
02 56 1 0 0 0 -1
02 57 1 0 0 0 -1
02 58 1 0 0 0 -1
02 59 1 0 0 0 -1
02 60 1 0 0 0 -1
02 61 1 0 0 0 -1
02 62 1 0 0 0 -1
02 63 1 0 0 0 -1
03 00 1 0 0 0 -1
03 01 1 0 0 0 -1
03 02 1 0 0 0 -1
03 03 1 0 0 0 -1
03 04 1 0 0 0 -1
03 05 1 0 0 0 -1
03 06 1 0 0 0 -1
03 07 1 0 0 0 -1
03 08 1 0 0 0 -1
03 09 1 0 0 0 -1
03 10 1 0 0 0 -1
03 11 1 0 0 0 -1
03 12 1 0 0 0 -1
03 13 1 0 0 0 -1
03 14 1 0 0 0 -1
03 15 1 0 0 0 -1
03 16 1 0 0 0 -1
03 17 1 0 0 0 -1
03 18 1 0 0 0 -1
03 19 1 0 0 0 -1
03 20 1 0 0 0 -1
03 21 1 0 0 0 -1
03 22 1 0 0 0 -1
03 23 1 0 0 0 -1
03 24 1 0 0 0 -1
03 25 1 0 0 0 -1
03 26 1 0 0 0 -1
03 27 1 0 0 0 -1
03 28 1 0 0 0 -1
03 29 1 0 0 0 -1
03 30 1 0 0 0 -1
03 31 1 0 0 0 -1
03 32 1 0 0 0 -1
03 33 1 0 0 0 -1
03 34 1 0 0 0 -1
03 35 1 0 0 0 -1
03 36 1 0 0 0 -1
03 37 1 0 0 0 -1
03 38 1 0 0 0 -1
03 39 1 0 0 0 -1
03 40 1 0 0 0 -1
03 41 1 0 0 0 -1
03 42 1 0 0 0 -1
03 43 1 0 0 0 -1
03 44 1 0 0 0 -1
03 45 1 0 0 0 -1
03 46 1 0 0 0 -1
03 47 1 0 0 0 -1
03 48 1 0 0 0 -1
03 49 1 0 0 0 -1
03 50 1 0 0 0 -1
03 51 1 0 0 0 -1
03 52 1 0 0 0 -1
03 53 1 0 0 0 -1
03 54 1 0 0 0 -1
03 55 1 0 0 0 -1
03 56 1 0 0 0 -1
03 57 1 0 0 0 -1
03 58 1 0 0 0 -1
03 59 1 0 0 0 -1
03 60 1 0 0 0 -1
03 61 1 0 0 0 -1
03 62 1 0 0 0 -1
03 63 1 0 0 0 -1
04 00 1 0 0 0 -1
04 01 1 0 0 0 -1
04 02 1 0 0 0 -1
04 03 1 0 0 0 -1
04 04 1 0 0 0 -1
04 05 1 0 0 0 -1
04 06 1 0 0 0 -1
04 07 1 0 0 0 -1
04 08 1 0 0 0 -1
04 09 1 0 0 0 -1
04 10 1 0 0 0 -1
04 11 1 0 0 0 -1
04 12 1 0 0 0 -1
04 13 1 0 0 0 -1
04 14 1 0 0 0 -1
04 15 1 0 0 0 -1
04 16 1 0 0 0 -1
04 17 1 0 0 0 -1
04 18 1 0 0 0 -1
04 19 1 0 0 0 -1
04 20 1 0 0 0 -1
04 21 1 0 0 0 -1
04 22 1 0 0 0 -1
04 23 1 0 0 0 -1
04 24 1 0 0 0 -1
04 25 1 0 0 0 -1
04 26 1 0 0 0 -1
04 27 1 0 0 0 -1
04 28 1 0 0 0 -1
04 29 1 0 0 0 -1
04 30 1 0 0 0 -1
04 31 1 0 0 0 -1
04 32 1 0 0 0 -1
04 33 1 0 0 0 -1
04 34 1 0 0 0 -1
04 35 1 0 0 0 -1
04 36 1 0 0 0 -1
04 37 1 0 0 0 -1
... 3775 more lines ...
Attachment 4: eudaq_config.cfg
[RunControl]
EUDAQ_CTRL_PRODUCER_LAST_START = aida_tlu

[LogCollector.log]

[Producer.aida_tlu]
verbose = 0
confid = 20181002
skipconf = 0

# delay start in ms
delayStart = 0

####################################################
# DUT IN/OUTPUT

# Mask: 0 CONT, 1 SPARE, 2 TRIG, 3 BUSY (1 = driven by TLU, 0 = driven by DUT) 
# EUDET mode: 7
HDMI1_set = 0x7
HDMI2_set = 0x7
HDMI3_set = 0x7
HDMI4_set = 0x7

# same as above for the clock line, 1 = AIDA mode, 2 = FPGA 
HDMI1_clk = 1
HDMI2_clk = 0
HDMI3_clk = 1
HDMI4_clk = 0
LEMOclk = 1   # if input, then also adjust clk.txt

# Activate channels
# Only TLU
#DUTMask = 0x0
# Telescope at HDMI1
#DUTMask = 0x1
# Only FEI4 at HDMI2
#DUTMask = 0x2
# Telescope at HDMI1, FEI4 at HDMI2
#DUTMask = 0x3
#Adenium at HDMI3
#DUTMask = 0x1

#Adenium at HDMI1,  MPW3 at HDMI3, Monopix2 at HDMI4
DUTMask = 0xD

# Define mode: 
# Each DUT channel has two bits: HDMI1=0&1 bit; HDMI2= 2&3bit; ...
# Only the lowest bit is significant:
# AIDA mode for each "1st" LSbit = 1
# EUDET modes incl. DUT clocking out each "1st" LSbit = 0
# e.g. 1st and 2nd channel in EUDET mode: 0xF0
#DUTMaskMode = 0xF0 # 1st and 2nd channel are reading out Trigger ID
# e.g. only 1st in EUDET mode
#DUTMaskMode = 0xFC # 1st is reading out Trigger ID

#!!!!!!!!!!!! Check this !!!!!!!!!!!!!!!
#DUTMaskMode = 0x01 #I think this is AIDA mode for channel 3 and reading out trigger number

#HDMI3 on AIDA with trigger number
DUTMaskMode = 0x11

# "Mixed mode" to ignore a busy line from a DUT
# TLU ignores the telescope busy (at HDMI1)
#DUTIgnoreBusy = 0x1 # yes (default, Mixed mode)
DUTIgnoreBusy = 0x2 #no (EUDET mode)

###################################################
# ONLY AUTOTRIGGER 
#InternalTriggerFreq = 1000

# also set this to 0
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# EXTERNAL TRIGGER INPUTs
# Stretch, delay in 6.25ns ticks
in0_STR = 7  # factor to stretch the width of the signal; to get coincidence 
in0_DEL = 0  # factor to delay, e.g. compensate  
in1_STR = 7
in1_DEL = 0
in2_STR = 7
in2_DEL = 0
in3_STR = 7
in3_DEL = 0
in4_STR = 0
in4_DEL = 0
in5_STR = 0
in5_DEL = 0

# DAC INPUT THRESHOLD in V
DACThreshold0 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold1 = -0.4  # Was -0.04, but we get amplyfied signal from NIM module
DACThreshold2 = -0.20
DACThreshold3 = -0.20
DACThreshold4 = -0.20
DACThreshold5 = -0.20

# PMT Power
PMT1_V = 0.80
PMT2_V = 0.80
PMT3_V = 0.00
PMT4_V = 0.00

# 2 words 32bit: Hi + Lo
# combinations of coincidence are now possible! 

# Coincidence of input 0 to 3 (telescope)
#trigMaskHi = 0x00000000
#trigMaskLo = 0x00008000

# Coincidence of input 0 and 1
trigMaskHi = 0x00000000
trigMaskLo = 0x00000008

# New: Coincidence of any 3 of 4, 4 combinations plus all 4
#trigMaskHi = 0x00000000
#trigMaskLo = 0x0000C880

# EUDAQ2
# Define the data collector to be used by the producer
EUDAQ_DC = dc_tlu



[DataCollector.dc_tlu]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=5
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_tlu$X"
DISABLE_PRINT = 1

################################### Adenium #####################################
[Producer.altel]
EUDAQ_ID=1
EUDAQ_DC=dc_tel


[DataCollector.dc_tel]
EUDAQ_ID=100
EUDAQ_MN=StdEventMonitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION=1
EUDAQ_FW = native
EUDAQ_FW_PATTERN = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_adenium$X"
DISABLE_PRINT = 1

################################### MPW3 #####################################

[Producer.RD50_MPW3]


[DataCollector.mpw3_dc]
# connection to the monitor
EUDAQ_MN = mpw3_mon
EUDAQ_FW = native
EUDAQ_FW_PATTERN = /media/silicon/backup/desy_jul23/run$6R_mpw3$X
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 500
# config-parameters
DISABLE_PRINT = 1
XILINX_IP = 192.168.201.1
SYNC_MODE = 1

[Monitor.mpw3_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[Producer.elog_mpw3]

# command (shell script) to execute before starting a run
start_cmd = "./copy_configs.sh" 

#files to attach to the Elog entry
files2log = "tmp/peary_config.cfg, tmp/matrix_config_base.txt, tmp/matrix_config_piggy.txt, tmp/eudaq_config.cfg" 



################################################ MPX2 #####################################################


[Producer.monopix2]
# connection to the data collector
EUDAQ_DC = dc_mpx2
ENABLE_BDAQ_RECORD = 1
ENABLE_HITOR = 1
#CHIP_CONFIG_FILE = /home/bellevtx01/vtx/tj-monopix2-daq_mx/tj-monopix2-daq/tjmonopix2/scans/output_data/module_0/chip_0/20230703_231744_local_threshold_tuning.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/01_Normal_THR30_noisy/20230621_124059_threshold_scan_interpreted.h5
#NF_THR30 
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/03_Normal_THR30/20230704_094135_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/04_HV_THR22/20230705_104444_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/05_HV_CASC_THR23/20230705_130222_threshold_scan_interpreted.h5
#CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230601_112557_threshold_scan_interpreted.h5
#MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W14R12/06_NF_CASC_THR30/20230705_134103_run_646_eudaq_scan/masked_pixels.yaml

#W02R05
CHIP_CONFIG_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230704_132800_threshold_scan_interpreted.h5
MASKED_PIXELS_FILE = /media/bellevtx01/TOSHIBA EXT/configs/tuning/W02R05/THR35_cascode/20230705_150039_run_654_eudaq_scan/masked_pixels.yaml
CHIP_SN = W02R05
CHIP_CMD_CLK = 160.0

#overriding values in "scan_configuration"
#when none given default ones are being used
START_ROW = 0
STOP_ROW = 512
START_COLUMN = 224
STOP_COLUMN = 448
WAIT_FOR_FPGA = 1

CONFIG_ID = 12
ELOG_CATEGORY = Beam   #  Debug, Beam, VoltageScan, Scan
COMMENT_IN_CONF = "Comment here"
ELOG_OUTPUT_PATH = "/media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs"

[Producer.hameg]
#HV = 10
BIAS = 6
SERIAL_PORT = /dev/ttyUSB0

[Monitor.monopix2_mon]
ENABLE_PRINT = 0
ENABLE_STD_PRINT = 0
ENABLE_STD_CONVERTER = 1
FORWARD2GUI = 1

[DataCollector.dc_mpx2]
# connection to the monitor
EUDAQ_MN = monopix2_mon
EUDAQ_FW = native
#path to store .raw file to, $3R is replaced by 3 digit run number, $12D -> 12 character date, $X -> .raw
EUDAQ_FW_PATTERN = /media/bellevtx01/TOSHIBA EXT/VTX/data_producer_runs/desy/run$6R_monopix2$X
#fraction of events being sent to the monitor
EUDAQ_DATACOL_SEND_MONITOR_FRACTION = 100

# config-parameters
#disable output of event to bash, is spamming terminal otherwise
DISABLE_PRINT = 1
ELOG V3.1.5-fc6679b