Introduce PTOT mode parameter instead of dedicated scans
ITkPixV1 needs the Precision TOT feature in order to recognize all hits. We added dedicated _ptot scans. Since this will blow up our number of scans (basically for every scan with ITkPix the Precision TOT feature is needed), it would be better to just introduce a variable like use_ptot
, which enables the precision tot feature for ITkPixV1 and just does nothing in case of RD53A.
Required changes:
- Change
_configure()
step in order to enable PTOT:
if bench_config['use_ptot']:
self.chip._enable_col_precision_tot(range(0, 54))
self.chip.registers['ToTConfig'].write(int(format(12, '04b') + format(ptot_del, '09b'), 2))
self.chip.registers['TriggerConfig'].write(20)
- Change
scan()
:
- Change
mask_pattern
and shifted masks (need PTOT pattern + shift also hitbus mask) - Change
latency
: @mstandke why? - Add
add_ptot_table_data()
(needed for proper raw data interpretation)
These changes have to be done for every scan, but especially 2. changes the scan()
a lot. Maybe a general scan_loop()
can help us here?
Edited by Yannick Manuel Dieter