|
def | __init__ (self, filename=None, jsonString=None, dbalias=None, bgskey=None, useCrest=False, crestServer="") |
|
this class provides access to the L1 bunchgroup set
the methods are self-explanatory for people with knowledge of the configuration
Definition at line 197 of file L1TriggerConfigAccess.py.
◆ __init__()
def python.L1TriggerConfigAccess.BunchGroupSetAccess.__init__ |
( |
|
self, |
|
|
|
filename = None , |
|
|
|
jsonString = None , |
|
|
|
dbalias = None , |
|
|
|
bgskey = None , |
|
|
|
useCrest = False , |
|
|
|
crestServer = "" |
|
) |
| |
Definition at line 202 of file L1TriggerConfigAccess.py.
202 def __init__(self, filename = None, jsonString = None, dbalias = None, bgskey = None, useCrest=False, crestServer=""):
203 super().
__init__(ConfigType.BGS, mainkey =
"bunchGroups",
204 jsonString = jsonString, filename = filename, dbalias = dbalias, dbkey = bgskey,
205 useCrest=useCrest, crestServer=crestServer)
206 self.loader.setQuery({
207 1:
"SELECT L1BGS_DATA FROM {schema}.L1_BUNCH_GROUP_SET BGS WHERE L1BGS_ID=:dbkey"
210 if bgskey
is not None:
211 log.info(f
"Loaded L1 bunchgroup set {self.name()} with {len(self)} bunchgroups from {dbalias} with bgsk {bgskey}{' using CREST' if useCrest else ''}")
212 elif filename
is not None:
213 log.info(f
"Loaded L1 bunchgroup set {self.name()} with {len(self)} bunchgroups from file {filename}")
The documentation for this class was generated from the following file: