ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonMonitoring_options.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
4from TrigMuonMonitoring.TrigMuonMonitoringConfig import TrigMuonMonConfig
5
6
7
8if __name__=='__main__':
9 # Set the Athena configuration flags
10 from AthenaConfiguration.AllConfigFlags import initConfigFlags
11 nightly = '/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CommonInputs/'
12 aodfile = 'data16_13TeV.00311321.physics_Main.recon.AOD.r9264/AOD.11038520._000001.pool.root.1'
13 flags = initConfigFlags()
14 flags.Input.Files = [nightly+aodfile]
15 flags.Input.isMC = True
16 flags.Output.HISTFileName = 'HIST.root'
17
18 flags.lock()
19
20 # Initialize configuration object, add accumulator, merge, and run.
21 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
22 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
23 cfg = MainServicesCfg(flags)
24 cfg.merge(PoolReadCfg(flags))
25 muonMonitorAcc = TrigMuonMonConfig(flags)
26 cfg.merge(muonMonitorAcc)
27
28 cfg.printConfig(withDetails=False)
29 cfg.run()