ConfigBlock for the bootstrap generator
Definition at line 7 of file BootstrapGeneratorConfig.py.
◆ __init__()
def python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.__init__ |
( |
|
self | ) |
|
Definition at line 10 of file BootstrapGeneratorConfig.py.
11 super(BootstrapGeneratorConfig, self).
__init__()
12 self.addOption (
'nReplicas', 1000, type=int,
13 info=
"the number (int) of bootstrap replicas to generate. "
14 "The default is 1000.")
15 self.addOption (
'decoration',
None, type=str,
16 info=
"the name of the output vector branch containing the "
17 "bootstrapped weights. The default is bootstrapWeights.")
18 self.setOptionValue(
'skipOnMC',
True)
◆ makeAlgs()
def python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 20 of file BootstrapGeneratorConfig.py.
20 def makeAlgs(self, config):
22 alg = config.createAlgorithm(
'CP::BootstrapGeneratorAlg',
'BootstrapGenerator')
23 alg.nReplicas = self.nReplicas
24 alg.isData = config.dataType()
is DataType.Data
26 alg.decorationName = self.decoration
28 alg.decorationName =
"bootstrapWeights_%SYS%"
30 config.addOutputVar (
'EventInfo', alg.decorationName, alg.decorationName.split(
"_%SYS%")[0], noSys=
True)
The documentation for this class was generated from the following file: