Is your feature request related to a problem? Please describe.
During my thesis project I have developed some metrics for HGCROC evaluation, with a focus on the pedestal, ADC, TOA and TOT responses. To make things easier, I wrote a Python script (full_scan.py) that runs multiple pftool TASKS in a given sequence, allowing me to simply leave the scans to run overnight. Not only is this convenient, it would also provide some standardised procedure for HGCROC performance comparison (at least with Lund).
I wanted to translate this script into something more pflib-compatible, but I am not sure whether this is possible. Currently, the script calls various TASKS and inputs the necessary settings, which are read with pflib::readline_int. This can be done via the Python os.system function, launching pftool with a specific set of pre-written commands.
I am unsure how to replicate this within pftool, i.e. using a c++ pftool TASK that calls other TASKS.
Describe the solution you'd like
Ideally, the script would be a simple pftool TASK/feature that calls other TASKS in a specific sequence. This could be broken into chunks, which could then be called separately, like in the original Python script. The input settings for all TASKS would be filled in at the beginning.
Describe alternatives you've considered
Initially, I thought it may be possible to use cout to fill in the initial settings for each TASK, but I don't think that's how it works. I also considered changing all the relevant TASKS to fit the procedure, but I would like to avoid that. In the case that this whole endeavour is fruitless, I will describe the procedure in the wiki.
Additional context
For more context, I primarily used PARAMETER_TIMESCAN and CHANNEL_WISE_CALIB_SCAN for ADC/TOA/TOT data acquisition. These are taken over all channels of the chip and across a wide CALIB range, which takes probably about 8h. Using the script I was able to scan one chip a day. You can find some of the results in the new wiki entries for data analysis scripts!
Is your feature request related to a problem? Please describe.
During my thesis project I have developed some metrics for HGCROC evaluation, with a focus on the pedestal, ADC, TOA and TOT responses. To make things easier, I wrote a Python script (full_scan.py) that runs multiple pftool TASKS in a given sequence, allowing me to simply leave the scans to run overnight. Not only is this convenient, it would also provide some standardised procedure for HGCROC performance comparison (at least with Lund).
I wanted to translate this script into something more pflib-compatible, but I am not sure whether this is possible. Currently, the script calls various TASKS and inputs the necessary settings, which are read with
pflib::readline_int. This can be done via the Pythonos.systemfunction, launching pftool with a specific set of pre-written commands.I am unsure how to replicate this within pftool, i.e. using a c++ pftool TASK that calls other TASKS.
Describe the solution you'd like
Ideally, the script would be a simple pftool TASK/feature that calls other TASKS in a specific sequence. This could be broken into chunks, which could then be called separately, like in the original Python script. The input settings for all TASKS would be filled in at the beginning.
Describe alternatives you've considered
Initially, I thought it may be possible to use
coutto fill in the initial settings for each TASK, but I don't think that's how it works. I also considered changing all the relevant TASKS to fit the procedure, but I would like to avoid that. In the case that this whole endeavour is fruitless, I will describe the procedure in the wiki.Additional context
For more context, I primarily used
PARAMETER_TIMESCANandCHANNEL_WISE_CALIB_SCANfor ADC/TOA/TOT data acquisition. These are taken over all channels of the chip and across a wide CALIB range, which takes probably about 8h. Using the script I was able to scan one chip a day. You can find some of the results in the new wiki entries for data analysis scripts!