ATLAS Offline Software
Loading...
Searching...
No Matches
TrigPSCPythonDbSetup.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
8
9
13
14from GaudiPython import InterfaceCast, gbl
15from GaudiPython.Bindings import iProperty
16from TrigCommon.TrigPyHelper import trigApp
17from TrigPSC import PscConfig
18from TrigPSC.PscDefaultFlags import defaultOnlineFlags
19
20flags = defaultOnlineFlags()
21
22
23if PscConfig.forcePSK:
24 trigApp.changeJobProperties('HLTPrescaleCondAlg', 'Source', 'DB')
25
26
27logLevel = PscConfig.optmap['LOGLEVEL'].split(',')[0]
28if logLevel!="INFO":
30 outputLevel = getattr(AthenaCommon.Constants, logLevel)
31 trigApp.service("MessageSvc", gbl.IMessageSvc).setOutputLevel(outputLevel)
32 trigApp.changeJobProperties('.*', 'OutputLevel', outputLevel)
33
34
35if not flags.Trigger.Online.useOnlineTHistSvc:
36 isvcMgr = InterfaceCast(gbl.ISvcManager)(gbl.Gaudi.svcLocator())
37
38 isvcMgr.declareSvcType("THistSvc","THistSvc")
39
40 from TriggerJobOpts.TriggerHistSvcConfig import setTHistSvcOutput
41 output = []
42 setTHistSvcOutput(output)
43 iProperty("THistSvc").Output = output
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:177