ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerJobOpts
python
TriggerHistSvcConfig.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
#
4
5
from
AthenaCommon.Logging
import
logging
6
log = logging.getLogger(
'TriggerHistSvcConfig'
)
7
8
def
setTHistSvcOutput
(outputList):
9
"""Build the Output list of the THistSvc ensuring minimum set of output files"""
10
11
if
not
any(
'EXPERT'
in
o
for
o
in
outputList):
12
outputList += [
"EXPERT DATAFILE='expert-monitoring.root' OPT='RECREATE'"
]
13
14
return
15
16
17
def
TriggerHistSvcConfig(flags):
18
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
19
from
AthenaConfiguration.ComponentFactory
import
CompFactory
20
21
acc = ComponentAccumulator()
22
23
if
flags.Trigger.Online.useOnlineWebdaqHistSvc:
24
log.info(
"Configuring online Webdaq HistSvc"
)
25
histSvc = CompFactory.WebdaqHistSvc(
"THistSvc"
)
26
log.info(
"Configuring WebdaqInfoSvc for IS publication"
)
27
acc.addService( CompFactory.WebdaqInfoSvc(
"WebdaqInfoSvc"
), create=
True
)
28
else
:
29
log.info(
"Configuring offline THistSvc"
)
30
output = []
31
if
flags.Trigger.L1MuonSim.WriteNSWDebugNtuple:
32
output += [
"NSWL1Simulation DATAFILE='NSWL1Simulation.root' OPT='RECREATE'"
]
33
34
# add default outputs
35
setTHistSvcOutput
(output)
36
histSvc = CompFactory.THistSvc(
"THistSvc"
, Output = output)
37
38
acc.addService( histSvc )
39
return
acc
python.TriggerHistSvcConfig.setTHistSvcOutput
setTHistSvcOutput(outputList)
Definition
TriggerHistSvcConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0