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

Public Member Functions

def __init__ (self, configType, jsonString)
 
def load (self)
 
def setQuery (self, query)
 
def getWriteFilename (self)
 
def confirmConfigType (self, config)
 

Public Attributes

 jsonString
 
 configType
 

Detailed Description

Class to load from json string

Definition at line 73 of file TriggerConfigAccessBase.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TriggerConfigAccessBase.ConfigDirectLoader.__init__ (   self,
  configType,
  jsonString 
)

Definition at line 75 of file TriggerConfigAccessBase.py.

75  def __init__(self, configType, jsonString):
76  super(ConfigDirectLoader,self).__init__(configType)
77  self.jsonString = jsonString

Member Function Documentation

◆ confirmConfigType()

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

Definition at line 49 of file TriggerConfigAccessBase.py.

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

◆ getWriteFilename()

def python.TriggerConfigAccessBase.ConfigDirectLoader.getWriteFilename (   self)

Definition at line 84 of file TriggerConfigAccessBase.py.

84  def getWriteFilename(self):
85  pass
86 

◆ load()

def python.TriggerConfigAccessBase.ConfigDirectLoader.load (   self)

Definition at line 78 of file TriggerConfigAccessBase.py.

78  def load(self):
79  config = json.loads(self.jsonString)
80  self.confirmConfigType(config)
81  return config

◆ setQuery()

def python.TriggerConfigAccessBase.ConfigDirectLoader.setQuery (   self,
  query 
)

Definition at line 82 of file TriggerConfigAccessBase.py.

82  def setQuery(self, query):
83  pass

Member Data Documentation

◆ configType

python.TriggerConfigAccessBase.ConfigLoader.configType
inherited

Definition at line 48 of file TriggerConfigAccessBase.py.

◆ jsonString

python.TriggerConfigAccessBase.ConfigDirectLoader.jsonString

Definition at line 77 of file TriggerConfigAccessBase.py.


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
python.root_pickle.load
def load(f, use_proxy=1, key=None)
Definition: root_pickle.py:476