ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.physvalPostProcessingTools.ConfigManager Class Reference
Collaboration diagram for python.physvalPostProcessingTools.ConfigManager:

Public Member Functions

def __init__ (self)
 
def add_configuration (self, name, config_file)
 
def get_config (self, name)
 
def get_all_configs (self)
 

Public Attributes

 configs
 

Detailed Description

Definition at line 47 of file physvalPostProcessingTools.py.

Constructor & Destructor Documentation

◆ __init__()

def python.physvalPostProcessingTools.ConfigManager.__init__ (   self)

Definition at line 48 of file physvalPostProcessingTools.py.

48  def __init__(self):
49  self.configs = {}
50 

Member Function Documentation

◆ add_configuration()

def python.physvalPostProcessingTools.ConfigManager.add_configuration (   self,
  name,
  config_file 
)

Definition at line 51 of file physvalPostProcessingTools.py.

51  def add_configuration(self, name, config_file):
52  with open(config_file, "r") as f:
53  config_data = yaml.safe_load(f)
54  self.configs[name] = config_data
55  logging.info(f"Configuration for '{name}' loaded from {config_file}")
56 

◆ get_all_configs()

def python.physvalPostProcessingTools.ConfigManager.get_all_configs (   self)
Returns all configs as (name, config) pairs

Definition at line 61 of file physvalPostProcessingTools.py.

61  def get_all_configs(self):
62  """Returns all configs as (name, config) pairs"""
63  return self.configs.items()
64 

◆ get_config()

def python.physvalPostProcessingTools.ConfigManager.get_config (   self,
  name 
)
Returns the config for a specific domain (e.g., 'Electron')

Definition at line 57 of file physvalPostProcessingTools.py.

57  def get_config(self, name):
58  """Returns the config for a specific domain (e.g., 'Electron')"""
59  return self.configs.get(name, {})
60 

Member Data Documentation

◆ configs

python.physvalPostProcessingTools.ConfigManager.configs

Definition at line 49 of file physvalPostProcessingTools.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:71
Trk::open
@ open
Definition: BinningType.h:40
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127