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
35 setTHistSvcOutput(output)
36 histSvc = CompFactory.THistSvc("THistSvc", Output = output)
37
38 acc.addService( histSvc )
39 return acc