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 75 of file TriggerConfigAccessBase.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 77 of file TriggerConfigAccessBase.py.

77  def __init__(self, configType, jsonString):
78  super(ConfigDirectLoader,self).__init__(configType)
79  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 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()

def python.TriggerConfigAccessBase.ConfigDirectLoader.getWriteFilename (   self)

Definition at line 86 of file TriggerConfigAccessBase.py.

86  def getWriteFilename(self):
87  pass
88 

◆ load()

def python.TriggerConfigAccessBase.ConfigDirectLoader.load (   self)

Definition at line 80 of file TriggerConfigAccessBase.py.

80  def load(self):
81  config = json.loads(self.jsonString, object_pairs_hook = odict)
82  self.confirmConfigType(config)
83  return config

◆ setQuery()

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

Definition at line 84 of file TriggerConfigAccessBase.py.

84  def setQuery(self, query):
85  pass

Member Data Documentation

◆ configType

python.TriggerConfigAccessBase.ConfigLoader.configType
inherited

Definition at line 50 of file TriggerConfigAccessBase.py.

◆ jsonString

python.TriggerConfigAccessBase.ConfigDirectLoader.jsonString

Definition at line 79 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