ATLAS Offline Software
dumpTriggerInfo.py
Go to the documentation of this file.
1 #!/bin/env python
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4 # Set the Athena configuration flags
5 from AthenaConfiguration.AllConfigFlags import initConfigFlags
6 flags = initConfigFlags()
7 flags.fillFromArgs()
8 flags.lock()
9 
10 
11 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
14 cfg = MainServicesCfg(flags)
15 cfg.merge(PoolReadCfg(flags))
16 
17 from AthenaMonitoring.TriggerInterface import TrigDecisionToolCfg
18 
19 cfg.merge(TrigDecisionToolCfg(flags))
20 checker = CompFactory.TrigDecisionChecker()
21 checker.WriteEventDecision = True
22 checker.WriteOutFilename = "trigger.counts.log"
23 
24 cfg.addEventAlgo(checker)
25 cfg.run()
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69