ATLAS Offline Software
AODToEgammaD3PD.py
Go to the documentation of this file.
1 #!/usr/bin/env athena.py
2 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
3 #
4 # File: D3PDMakerConfig/python/AODToEgammaD3PD.py
5 # Author: snyder@bnl.gov
6 # Date: Dec 2023, from old config
7 # Purpose: Make egamma D3PD.
8 #
9 
10 from D3PDMakerConfig.D3PDMakerFlags import configFlags
11 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
12 
13 configFlags.fillFromArgs()
14 configFlags.lock()
15 
16 cfg = MainServicesCfg (configFlags)
17 
18 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
19 cfg.merge (PoolReadCfg (configFlags))
20 
21 # Remake jets.
22 from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
23 trigger_lists_helper = TriggerListsHelper (configFlags)
24 from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
25 cfg.merge (PhysCommonAugmentationsCfg (configFlags, TriggerListsHelper = trigger_lists_helper))
26 
27 from D3PDMakerConfig.egammaD3PDConfig import egammaD3PDCfg
28 cfg.merge (egammaD3PDCfg (configFlags))
29 
30 sc = cfg.run (configFlags.Exec.MaxEvents)
31 import sys
32 sys.exit (sc.isFailure())
33