in case a generator is creating more than one fragment, the artdaq commandable generator requires a list of fragment IDs and its length to be provided separately, as two independent input parameters.
The length of the list is then required to be the same as the length input independently.
At best, that check does seem to be doing anything, however if the two are different, the code throws an exception.
What is the purpose of doing that ?
Perhaps the requirement of the list length to be input independently from the list itself could be removed?
in case a generator is creating more than one fragment, the artdaq commandable generator requires a list of fragment IDs and its length to be provided separately, as two independent input parameters.
https://github.com/art-daq/artdaq/blob/develop/artdaq/Generators/CommandableFragmentGenerator.cc#L63-L87
The length of the list is then required to be the same as the length input independently. At best, that check does seem to be doing anything, however if the two are different, the code throws an exception.