TextConfig: add block to add blocks from YAML file
Inorder to allow for users to add blocks from the YAML file without editting the python code, a new block was added.
Example adding the CommonServices
block:
AddConfigBlocks:
- modulePath: 'AsgAnalysisAlgorithms.AsgAnalysisConfig'
functionName: 'makeCommonServicesConfig'
algName: 'CommonServices'
pos: 'PileupReweighting'
The code calls import functionName from modulePath
. The function or class that will be called corresponds to functionName
and will be run before the block at pos
. The block can be referenced in the yaml file using algName
.
Edited by Joseph Earl Lambert