ATLAS Offline Software
Loading...
Searching...
No Matches
PFRunESDtoAOD_WithJetsTausMET_mc21_14TeV.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.Exec.MaxEvents=100
9 cfgFlags.Input.isMC=True
10 cfgFlags.Input.Files = ["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PFlowTests/mc21_14TeV/mc21_14TeV.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.AOD.e8481_s4383_r15934/AOD.41490164._005514.pool.root.1"]
11 cfgFlags.Output.AODFileName="output_AOD.root"
12 cfgFlags.Output.doWriteAOD=True
13 cfgFlags.DiTau.doDiTauRec = False #does not run from ESD - tries to use aux variables which do not exist
14 cfgFlags.fillFromArgs()
15 cfgFlags.lock()
16
17 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
18 cfg = MainServicesCfg(cfgFlags)
19
20 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
21 cfg.merge(PoolReadCfg(cfgFlags))
22
23 from eflowRec.PFRun3Config import PFFullCfg
24 cfg.merge(PFFullCfg(cfgFlags,runTauReco=True))
25
26 from eflowRec.PFRun3Config import PFTauFELinkCfg
27 cfg.merge(PFTauFELinkCfg(cfgFlags))
28
29 from eflowRec.PFRun3Remaps import ListRemaps
30
31 list_remaps=ListRemaps(cfg, 'AOD')
32 for mapping in list_remaps:
33 cfg.merge(mapping)
34
35 from PFlowUtils.configureRecoForPFlow import configureRecoForPFlowCfg
36 cfg.merge(configureRecoForPFlowCfg(cfgFlags))
37
38 #Add containers needed to run jet finding from resultant AOD for pflow CP studies
39 from PFlowUtils.configureRecoForPFlow import addContainersForPFlowCPStudiesCfg
40 cfg.merge(addContainersForPFlowCPStudiesCfg(cfgFlags))
41
42 cfg.run()