Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock Class Reference
Inheritance diagram for python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock:
Collaboration diagram for python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock:

Public Member Functions

def __init__ (self)
 
Path get_output_path (self)
 
None makeAlgs (self, config)
 

Detailed Description

ConfigBlock for tool properties printing.

This class handles configuration for printing tool properties to a specified
output file.

Definition at line 9 of file PrintToolConfigAlgConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock.__init__ (   self)

Definition at line 16 of file PrintToolConfigAlgConfig.py.

16  def __init__(self):
17  super (PrintToolConfigAlgBlock, self).__init__ ()
18 
19  self.addOption('OutputFile', 'tool_config.txt', type=str,
20  info="Name of the file where the tool configuration will be written.")
21  self.addOption('OutputDir', None, type=str,
22  info="Directory where the output file will be written. If 'None',"
23  " the current directory of the job.")
24 

Member Function Documentation

◆ get_output_path()

Path python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock.get_output_path (   self)
Get the complete output file path.

Returns:
    Path object representing the full output file path.

Definition at line 25 of file PrintToolConfigAlgConfig.py.

25  def get_output_path(self) -> Path:
26  """Get the complete output file path.
27 
28  Returns:
29  Path object representing the full output file path.
30  """
31  output_dir = self.OutputDir if self.OutputDir is not None else Path.cwd()
32  return Path(output_dir) / self.OutputFile
33 

◆ makeAlgs()

None python.PrintToolConfigAlgConfig.PrintToolConfigAlgBlock.makeAlgs (   self,
  config 
)
Create and configure the PrintToolConfigAlg algorithm.

Args:
    config: Configuration object used to create the algorithm.

Definition at line 34 of file PrintToolConfigAlgConfig.py.

34  def makeAlgs(self, config) -> None:
35  """Create and configure the PrintToolConfigAlg algorithm.
36 
37  Args:
38  config: Configuration object used to create the algorithm.
39  """
40  if isAthena and useComponentAccumulator:
41  # we leave the implementation for Athena/AthAnalysis to a future MR
42  # this will be based on https://gitlab.cern.ch/atlas/athena/-/merge_requests/77616
43  return
44 
45  alg = config.createAlgorithm('CP::PrintToolConfigAlg', 'PrintToolConfigAlg')
46  alg.OutputFile = str(self.get_output_path())

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
str
Definition: BTagTrackIpAccessor.cxx:11