ATLAS Offline Software
Loading...
Searching...
No Matches
PFRunESDtoAOD_WithJetsTausMET_mc21_13p6TeV.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3if __name__=="__main__":
4
5 from AthenaConfiguration.AllConfigFlags import initConfigFlags
6 cfgFlags = initConfigFlags()
7 cfgFlags.Concurrency.NumThreads=8
8 cfgFlags.Input.isMC=True
9 cfgFlags.Input.Files = ["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PFlowTests/mc21_13p6TeV/mc21_13p6TeV.601589.PhPy8EG_A14_ttbar_hdamp258p75_nonallhadron.recon.ESD.e8485_s3986_r14060/ESD_100Events.pool.root"]
10 cfgFlags.Output.AODFileName="output_AOD.root"
11 cfgFlags.Output.doWriteAOD=True
12 cfgFlags.DiTau.doDiTauRec = False #does not run from ESD - tries to use aux variables which do not exist
13 cfgFlags.fillFromArgs()
14 cfgFlags.lock()
15
16 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
17 cfg = MainServicesCfg(cfgFlags)
18
19 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
20 cfg.merge(PoolReadCfg(cfgFlags))
21
22 from eflowRec.PFRun3Config import PFFullCfg
23 cfg.merge(PFFullCfg(cfgFlags,runTauReco=True))
24
25 from eflowRec.PFRun3Config import PFTauFELinkCfg
26 cfg.merge(PFTauFELinkCfg(cfgFlags))
27
28 from eflowRec.PFRun3Remaps import ListRemaps
29
30 list_remaps=ListRemaps(cfg, 'AOD')
31 for mapping in list_remaps:
32 cfg.merge(mapping)
33
34 from PFlowUtils.configureRecoForPFlow import configureRecoForPFlowCfg
35 cfg.merge(configureRecoForPFlowCfg(cfgFlags))
36
37 #Add containers needed to run jet finding from resultant AOD for pflow CP studies
38 from PFlowUtils.configureRecoForPFlow import addContainersForPFlowCPStudiesCfg
39 cfg.merge(addContainersForPFlowCPStudiesCfg(cfgFlags))
40
41 cfg.run()