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

Public Member Functions

 __init__ (self, ConfigType configType)
 confirmConfigType (self, config)
dict[str, Any] load (self)
str getWriteFilename (self)
 setQuery (self, query)

Public Attributes

ConfigType configType = configType

Detailed Description

ConfigLoader derived classes hold the information of the configuration source
and define the method to load the configuration

Definition at line 44 of file TriggerConfigAccessBase.py.

Constructor & Destructor Documentation

◆ __init__()

python.TriggerConfigAccessBase.ConfigLoader.__init__ ( self,
ConfigType configType )

Definition at line 49 of file TriggerConfigAccessBase.py.

49 def __init__(self,configType: ConfigType):
50 self.configType: ConfigType = configType

Member Function Documentation

◆ confirmConfigType()

python.TriggerConfigAccessBase.ConfigLoader.confirmConfigType ( self,
config )
checks that the in-file specification of the configuration type matches the expected type

Definition at line 51 of file TriggerConfigAccessBase.py.

51 def confirmConfigType(self,config):
52 """
53 checks that the in-file specification of the configuration type matches the expected type
54 """
55 if config['filetype'] != self.configType:
56 raise RuntimeError("Can not load file with filetype '%s' when expecting '%s'" % (config['filetype'], self.configType.filetype))
57

◆ getWriteFilename()

str python.TriggerConfigAccessBase.ConfigLoader.getWriteFilename ( self)

◆ load()

dict[str, Any] python.TriggerConfigAccessBase.ConfigLoader.load ( self)

◆ setQuery()

python.TriggerConfigAccessBase.ConfigLoader.setQuery ( self,
query )

Member Data Documentation

◆ configType

ConfigType python.TriggerConfigAccessBase.ConfigLoader.configType = configType

Definition at line 50 of file TriggerConfigAccessBase.py.


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