ATLAS Offline Software
|
JobOptionsSvc for the HLT. More...
#include <TrigConfJobOptionsSvc.h>
Public Member Functions | |
JobOptionsSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual StatusCode | initialize () override |
virtual StatusCode | start () override |
TrigConf::IJobOptionsSvc interface | |
Configuration keys as provided during the job initialization | |
virtual const std::string & | server () const override |
DB connection alias. More... | |
virtual int | superMasterKey () const override |
Return SMK (-1 if not set) More... | |
virtual int | l1PrescaleKey () const override |
Return L1PSK (-1 if not set) More... | |
virtual int | hltPrescaleKey () const override |
Return HLTPSK (-1 if not set) More... | |
Private Member Functions | |
StatusCode | dumpOptions (const std::string &file) |
This is mainly for debugging purposes and to compare the JobOptions as seen by the JobOptionSvc to the ones extracted directly in Python. More... | |
StatusCode | readOptionsJson (const std::string &file) |
StatusCode | readOptionsDB (const std::string &db_server, int smk) |
void | parseDBString (const std::string &s) |
Parse DB connection string and fill private members. More... | |
Private Attributes | |
int | m_smk {-1} |
SuperMasterKey. More... | |
int | m_l1psk {-1} |
L1 prescale key. More... | |
int | m_hltpsk {-1} |
HLT prescale key. More... | |
std::string | m_server |
DB connection alias. More... | |
Gaudi::Property< std::string > | m_sourceType {this, "TYPE", "NONE", "Configuration type (NONE, FILE, DB)"} |
Gaudi::Property< std::string > | m_sourcePath {this, "PATH", {}, "Path for NONE/FILE, connection string for DB"} |
Gaudi::Property< std::string > | m_searchPath {this, "SEARCHPATH", {}, "NOT SUPPORTED"} |
Gaudi::Property< std::string > | m_dump {this, "DUMPFILE", {}, "Dump job properties into JSON file"} |
ServiceHandle< Gaudi::Interfaces::IOptionsSvc > | m_optsvc |
handle to the "real" IOptionsSvc More... | |
IOptionsSvc interface | |
using | OnlyDefaults = Gaudi::Interfaces::IOptionsSvc::OnlyDefaults |
virtual void | set (const std::string &key, const std::string &value) override |
virtual std::string | get (const std::string &key, const std::string &default_={}) const override |
virtual std::string | pop (const std::string &key, const std::string &default_={}) override |
virtual bool | has (const std::string &key) const override |
virtual bool | isSet (const std::string &key) const override |
virtual std::vector< std::tuple< std::string, std::string > > | items () const override |
virtual void | bind (const std::string &prefix, Gaudi::Details::PropertyBase *property) override |
virtual void | broadcast (const std::regex &filter, const std::string &value, OnlyDefaults defaults=OnlyDefaults{true}) override |
virtual StatusCode | readOptions (std::string_view, std::string_view) override |
JobOptionsSvc for the HLT.
This implementation of IJobOptionSvc wraps the regular JobOptionSvc and forwards most of the calls directly to it. Beyond this it provides the ability to read the job configuration from JSON (file or DB) and create a JSON dump of all configured properties when running from Python.
The job property source is specified by the TYPE
property:
NONE
: Default mode running from PythonFILE
: Run from JSON file (specified in PATH
)DB
: Read properties from DB, connection string in PATH
, see parseDBString Definition at line 33 of file TrigConfJobOptionsSvc.h.
using TrigConf::JobOptionsSvc::OnlyDefaults = Gaudi::Interfaces::IOptionsSvc::OnlyDefaults |
Definition at line 79 of file TrigConfJobOptionsSvc.h.
TrigConf::JobOptionsSvc::JobOptionsSvc | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Definition at line 17 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
Definition at line 74 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
|
private |
This is mainly for debugging purposes and to compare the JobOptions as seen by the JobOptionSvc to the ones extracted directly in Python.
Definition at line 132 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
Definition at line 49 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Definition at line 59 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Return HLTPSK (-1 if not set)
Definition at line 97 of file TrigConfJobOptionsSvc.h.
|
overridevirtual |
Definition at line 22 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
Definition at line 64 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Definition at line 69 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Return L1PSK (-1 if not set)
Definition at line 96 of file TrigConfJobOptionsSvc.h.
|
private |
Parse DB connection string and fill private members.
Format: server=TRIGGERDB;smkey=42;lvl1key=43;hltkey=44
Definition at line 54 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
Definition at line 54 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Definition at line 86 of file TrigConfJobOptionsSvc.h.
|
private |
Definition at line 102 of file TrigConfJobOptionsSvc.cxx.
|
private |
Definition at line 82 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
DB connection alias.
Definition at line 94 of file TrigConfJobOptionsSvc.h.
|
inlineoverridevirtual |
Definition at line 44 of file TrigConfJobOptionsSvc.h.
|
overridevirtual |
Definition at line 72 of file TrigConfJobOptionsSvc.cxx.
|
inlineoverridevirtual |
Return SMK (-1 if not set)
Definition at line 95 of file TrigConfJobOptionsSvc.h.
|
private |
Definition at line 115 of file TrigConfJobOptionsSvc.h.
|
private |
HLT prescale key.
Definition at line 108 of file TrigConfJobOptionsSvc.h.
|
private |
L1 prescale key.
Definition at line 107 of file TrigConfJobOptionsSvc.h.
|
private |
handle to the "real" IOptionsSvc
Definition at line 118 of file TrigConfJobOptionsSvc.h.
|
private |
Definition at line 114 of file TrigConfJobOptionsSvc.h.
|
private |
DB connection alias.
Definition at line 109 of file TrigConfJobOptionsSvc.h.
|
private |
SuperMasterKey.
Definition at line 106 of file TrigConfJobOptionsSvc.h.
|
private |
Definition at line 113 of file TrigConfJobOptionsSvc.h.
|
private |
Definition at line 112 of file TrigConfJobOptionsSvc.h.