ATLAS Offline Software
Loading...
Searching...
No Matches
python.TriggerHistSvcConfig Namespace Reference

Functions

 setTHistSvcOutput (outputList)
 TriggerHistSvcConfig (flags)

Variables

 log = logging.getLogger('TriggerHistSvcConfig')

Function Documentation

◆ setTHistSvcOutput()

setTHistSvcOutput ( outputList)
Build the Output list of the THistSvc ensuring minimum set of output files

Definition at line 8 of file TriggerHistSvcConfig.py.

8def 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

◆ TriggerHistSvcConfig()

TriggerHistSvcConfig ( flags)

Definition at line 17 of file TriggerHistSvcConfig.py.

17def 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

Variable Documentation

◆ log

python.TriggerHistSvcConfig.log = logging.getLogger('TriggerHistSvcConfig')

Definition at line 6 of file TriggerHistSvcConfig.py.