CP algorithms: Add rename output command and allow all commands to be optional
Improvements to the CP algorithms output commands:
- allow commands to be optional (if they are specific to sample, LHC run or something else)
- add a rename command that used
re.sub
Example:
Output:
commands:
- optional rename el_charge_misid_effSF_(.*) el_effSF_Chflip_\1
Note that this is for now fully backwards compatible. We may consider in the future to add another keyword only_MC or something similar to also validate commands for data.