ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HLT
Trigger
TrigControl
TrigPSC
python
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
14
from
GaudiPython
import
InterfaceCast, gbl
15
from
GaudiPython.Bindings
import
iProperty
16
from
TrigCommon.TrigPyHelper
import
trigApp
17
from
TrigPSC
import
PscConfig
18
from
TrigPSC.PscDefaultFlags
import
defaultOnlineFlags
19
20
flags = defaultOnlineFlags()
21
22
23
if
PscConfig.forcePSK:
24
trigApp.changeJobProperties(
'HLTPrescaleCondAlg'
,
'Source'
,
'DB'
)
25
26
27
logLevel = PscConfig.optmap[
'LOGLEVEL'
].
split
(
','
)[0]
28
if
logLevel!=
"INFO"
:
29
import
AthenaCommon.Constants
30
outputLevel = getattr(
AthenaCommon.Constants
, logLevel)
31
trigApp.service(
"MessageSvc"
, gbl.IMessageSvc).setOutputLevel(outputLevel)
32
trigApp.changeJobProperties(
'.*'
,
'OutputLevel'
, outputLevel)
33
34
35
if
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
split
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition
hcg.cxx:179
Constants
Generated on
for ATLAS Offline Software by
1.17.0