ATLAS Offline Software
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 
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":
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
python.TriggerHistSvcConfig.setTHistSvcOutput
def setTHistSvcOutput(outputList)
Definition: TriggerHistSvcConfig.py:8
Constants
some useful constants -------------------------------------------------—
Athena::setOutputLevel
void setOutputLevel(IMessageSvc *ims, const std::string &source, int level)
Definition: getMessageSvc.cxx:52
python.PscDefaultFlags.defaultOnlineFlags
def defaultOnlineFlags()
Definition: PscDefaultFlags.py:28
Trk::split
@ split
Definition: LayerMaterialProperties.h:38