ATLAS Offline Software
Public Member Functions | List of all members
python.BootstrapGeneratorConfig.BootstrapGeneratorConfig Class Reference
Inheritance diagram for python.BootstrapGeneratorConfig.BootstrapGeneratorConfig:
Collaboration diagram for python.BootstrapGeneratorConfig.BootstrapGeneratorConfig:

Public Member Functions

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

Detailed Description

ConfigBlock for the bootstrap generator

Definition at line 7 of file BootstrapGeneratorConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.BootstrapGeneratorConfig.BootstrapGeneratorConfig.__init__ (   self)

Definition at line 10 of file BootstrapGeneratorConfig.py.

10  def __init__(self):
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)
19 

Member Function Documentation

◆ instanceName()

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

Definition at line 20 of file BootstrapGeneratorConfig.py.

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

◆ makeAlgs()

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

Definition at line 24 of file BootstrapGeneratorConfig.py.

24  def makeAlgs(self, config):
25 
26  alg = config.createAlgorithm( 'CP::BootstrapGeneratorAlg', 'BootstrapGenerator')
27  alg.nReplicas = self.nReplicas
28  alg.isData = config.dataType() is DataType.Data
29  if self.decoration:
30  alg.decorationName = self.decoration
31  else:
32  alg.decorationName = "bootstrapWeights_%SYS%"
33 
34  config.addOutputVar ('EventInfo', alg.decorationName, alg.decorationName.split("_%SYS%")[0], noSys=True)
35 
36  return

The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18