ATLAS Offline Software
Loading...
Searching...
No Matches
python.HLTTriggerConfigAccess.HLTMenuAccess Class Reference
Inheritance diagram for python.HLTTriggerConfigAccess.HLTMenuAccess:
Collaboration diagram for python.HLTTriggerConfigAccess.HLTMenuAccess:

Public Member Functions

 __init__ (self, str filename="", str jsonString="", str dbalias="", int smkey=0, bool useCrest=False, str crestServer="")
 chainNames (self)
 chains (self)
 streams (self)
 sequencers (self)
 printSummary (self)
 printDetails (self)

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

python.HLTTriggerConfigAccess.HLTMenuAccess.__init__ ( self,
str filename = "",
str jsonString = "",
str dbalias = "",
int smkey = 0,
bool useCrest = False,
str crestServer = "" )
accessor needs to be initialized with either a filename or the dbalias and smkey

Definition at line 14 of file HLTTriggerConfigAccess.py.

15 useCrest: bool = False, crestServer: str = ""):
16 """
17 accessor needs to be initialized with either a filename or the dbalias and smkey
18 """
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", # for new db schema
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" # for current db schema
25 })
26 self.load()
27 if smkey is not None:
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}")
31

Member Function Documentation

◆ chainNames()

python.HLTTriggerConfigAccess.HLTMenuAccess.chainNames ( self)

Definition at line 32 of file HLTTriggerConfigAccess.py.

32 def chainNames(self):
33 return self["chains"].keys()
34

◆ chains()

python.HLTTriggerConfigAccess.HLTMenuAccess.chains ( self)

Definition at line 35 of file HLTTriggerConfigAccess.py.

35 def chains(self):
36 return self["chains"]
37

◆ printDetails()

python.HLTTriggerConfigAccess.HLTMenuAccess.printDetails ( self)

Definition at line 50 of file HLTTriggerConfigAccess.py.

50 def printDetails(self):
51 import pprint
52 print("Chains:")
53 pprint.pprint(list(self.chains()))
54 print("Streams:")
55 pprint.pprint(list(self.streams()))
56 print("Sequencers:")
57 pprint.pprint(list(self.sequencers()))
58
void print(char *figname, TCanvas *c1)

◆ printSummary()

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()) )
49

◆ sequencers()

python.HLTTriggerConfigAccess.HLTMenuAccess.sequencers ( self)

Definition at line 41 of file HLTTriggerConfigAccess.py.

41 def sequencers(self):
42 return self["sequencers"]
43

◆ streams()

python.HLTTriggerConfigAccess.HLTMenuAccess.streams ( self)

Definition at line 38 of file HLTTriggerConfigAccess.py.

38 def streams(self):
39 return self["streams"]
40

The documentation for this class was generated from the following file: