ATLAS Offline Software
Public Member Functions | List of all members
python.HLTTriggerConfigAccess.HLTMenuAccess Class Reference
Inheritance diagram for python.HLTTriggerConfigAccess.HLTMenuAccess:
Collaboration diagram for python.HLTTriggerConfigAccess.HLTMenuAccess:

Public Member Functions

def __init__ (self, filename=None, jsonString=None, dbalias=None, smkey=None, useCrest=False, crestServer="")
 
def chainNames (self)
 
def chains (self)
 
def streams (self)
 
def sequencers (self)
 
def printSummary (self)
 
def 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__()

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=""):
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()

def python.HLTTriggerConfigAccess.HLTMenuAccess.chainNames (   self)

Definition at line 32 of file HLTTriggerConfigAccess.py.

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

◆ chains()

def python.HLTTriggerConfigAccess.HLTMenuAccess.chains (   self)

Definition at line 35 of file HLTTriggerConfigAccess.py.

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

◆ printDetails()

def 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 

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

◆ sequencers()

def python.HLTTriggerConfigAccess.HLTMenuAccess.sequencers (   self)

Definition at line 41 of file HLTTriggerConfigAccess.py.

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

◆ streams()

def 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:
python.outputTest_v2.streams
streams
Definition: outputTest_v2.py:55
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.copyTCTOutput.chains
chains
Definition: copyTCTOutput.py:81
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70