|
| def | __init__ (self, str filename="", str jsonString="", str dbalias="", int bgskey=0, bool useCrest=False, str 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 198 of file L1TriggerConfigAccess.py.
◆ __init__()
| def python.L1TriggerConfigAccess.BunchGroupSetAccess.__init__ |
( |
|
self, |
|
|
str |
filename = "", |
|
|
str |
jsonString = "", |
|
|
str |
dbalias = "", |
|
|
int |
bgskey = 0, |
|
|
bool |
useCrest = False, |
|
|
str |
crestServer = "" |
|
) |
| |
Definition at line 203 of file L1TriggerConfigAccess.py.
203 def __init__(self, filename: str =
"", jsonString: str =
"", dbalias: str =
"", bgskey: int = 0,
204 useCrest: bool =
False, crestServer: str =
""):
205 super().
__init__(ConfigType.BGS, mainkey =
"bunchGroups",
206 jsonString = jsonString, filename = filename, dbalias = dbalias, dbkey = bgskey,
207 useCrest=useCrest, crestServer=crestServer)
208 self.loader.setQuery({
209 1:
"SELECT L1BGS_DATA FROM {schema}.L1_BUNCH_GROUP_SET BGS WHERE L1BGS_ID=:dbkey"
212 if bgskey
is not None:
213 log.info(f
"Loaded L1 bunchgroup set {self.name()} with {len(self)} bunchgroups from {dbalias} with bgsk {bgskey}{' using CREST' if useCrest else ''}")
214 elif filename
is not None:
215 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: