ATLAS Offline Software
Loading...
Searching...
No Matches
python.BootstrapGeneratorConfig.BootstrapGeneratorConfig Class Reference
Inheritance diagram for python.BootstrapGeneratorConfig.BootstrapGeneratorConfig:
Collaboration diagram for python.BootstrapGeneratorConfig.BootstrapGeneratorConfig:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Detailed Description

ConfigBlock for the bootstrap generator

Definition at line 7 of file BootstrapGeneratorConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.__init__ ( self)

Definition at line 10 of file BootstrapGeneratorConfig.py.

10 def __init__(self):
11 super().__init__()
12 self.addOption ('nReplicas', 1000, type=int,
13 info="the number of bootstrap replicas to generate.")
14 self.addOption ('decoration', None, type=str,
15 info="the name of the output vector branch containing the "
16 "bootstrapped weights.")
17 self.setOptionValue('skipOnMC', True)
18

Member Function Documentation

◆ instanceName()

python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.instanceName ( self)
Return the instance name for this block

Definition at line 19 of file BootstrapGeneratorConfig.py.

19 def instanceName (self) :
20 """Return the instance name for this block"""
21 return '' # no instance name needed for singleton block
22

◆ makeAlgs()

python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.makeAlgs ( self,
config )

Definition at line 23 of file BootstrapGeneratorConfig.py.

23 def makeAlgs(self, config):
24
25 alg = config.createAlgorithm( 'CP::BootstrapGeneratorAlg', 'BootstrapGenerator', reentrant=True)
26 alg.nReplicas = self.nReplicas
27 alg.isData = config.dataType() is DataType.Data
28 decorationName = (self.decoration or "bootstrapWeights").replace("_%SYS%", "")
29 alg.decorationName = decorationName
30
31 config.addOutputVar ('EventInfo', decorationName, decorationName, noSys=True, auxType='vector_uint8')
32
33 return
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:312

The documentation for this class was generated from the following file: