Skip to content

Create a routine to produce VFAT configurations

Description

We need a routine to create coherent VFAT configuration files from the output of the analyses scans. A typical production command is the following:

gemos create-config vfat --default <default-vfat-configuration-file> -l <latency> -t <threshold> -t <threshold> -i <iref> -d <dac-values> -d <dac-values> my-output-dir

Arguments are optional and presented as an example, they can be renamed in the final MR. The input files are formatted as CSV-like while the output files are the .cfg to be used by cmsgemos/gemhardware, typically in the same structure as for the GBT:

my-output-dir/
└── fed1478-slot2
    ├── config-oh0-vfat0.cfg
    ├── config-oh1-vfat1.cfg
    └── config-oh2-vfat2.cfg

Specific attention is taken to avoid writing duplicate values from different configuration files. When that happens, a warning must be issued and the last value (as specified in the command line) stored in the configuration file.

Edited by Laurent Petre