this class provides access to the HLT menu
the methods are self-explanatory for people with knowledge of the configuration
Definition at line 9 of file HLTTriggerConfigAccess.py.
◆ __init__()
def python.HLTTriggerConfigAccess.HLTMenuAccess.__init__ |
( |
|
self, |
|
|
|
filename = None , |
|
|
|
jsonString = None , |
|
|
|
dbalias = None , |
|
|
|
smkey = None , |
|
|
|
useCrest = False , |
|
|
|
crestServer = "" |
|
) |
| |
accessor needs to be initialized with either a filename or the dbalias and smkey
Definition at line 14 of file HLTTriggerConfigAccess.py.
14 def __init__(self, filename = None, jsonString = None, dbalias = None, smkey = None,
15 useCrest=False, crestServer=""):
17 accessor needs to be initialized with either a filename or the dbalias and smkey
19 super().
__init__(ConfigType.HLTMENU, mainkey =
"chains",
20 filename = filename, jsonString = jsonString, dbalias = dbalias, dbkey = smkey,
21 useCrest=useCrest, crestServer=crestServer)
22 self.loader.setQuery({
23 2:
"SELECT HMT.HTM_DATA FROM {schema}.SUPER_MASTER_TABLE SMT, {schema}.HLT_MENU HMT WHERE HMT.HTM_ID=SMT.SMT_HLT_MENU_ID AND SMT.SMT_ID=:dbkey",
24 1:
"SELECT HMT.HMT_MENU FROM {schema}.SUPER_MASTER_TABLE SMT, {schema}.HLT_MASTER_TABLE HMT WHERE HMT.HMT_ID=SMT.SMT_HLT_MASTER_TABLE_ID AND SMT.SMT_ID=:dbkey"
28 log.info(f
"Loaded HLT menu {self.name()} with {len(self)} chains from {dbalias} with smk {smkey}{' using CREST' if useCrest else ''}")
29 elif filename
is not None:
30 log.info(f
"Loaded HLT menu {self.name()} with {len(self)} chains from file {filename}")
◆ chainNames()
def python.HLTTriggerConfigAccess.HLTMenuAccess.chainNames |
( |
|
self | ) |
|
◆ chains()
def python.HLTTriggerConfigAccess.HLTMenuAccess.chains |
( |
|
self | ) |
|
◆ printDetails()
def python.HLTTriggerConfigAccess.HLTMenuAccess.printDetails |
( |
|
self | ) |
|
Definition at line 50 of file HLTTriggerConfigAccess.py.
50 def printDetails(self):
53 pprint.pprint(
list(self.chains()))
55 pprint.pprint(
list(self.streams()))
57 pprint.pprint(
list(self.sequencers()))
◆ printSummary()
def python.HLTTriggerConfigAccess.HLTMenuAccess.printSummary |
( |
|
self | ) |
|
Definition at line 44 of file HLTTriggerConfigAccess.py.
44 def printSummary(self):
45 print(
"HLT menu %s" % self.name())
46 print(
"Number of chains: %i" % len(self.chains()) )
47 print(
"Number of streams: %i" % len(self.streams()) )
48 print(
"Number of sequencers: %i" % len(self.sequencers()) )
◆ sequencers()
def python.HLTTriggerConfigAccess.HLTMenuAccess.sequencers |
( |
|
self | ) |
|
◆ streams()
def python.HLTTriggerConfigAccess.HLTMenuAccess.streams |
( |
|
self | ) |
|
The documentation for this class was generated from the following file: