ATLAS Offline Software
PFRunESDtoAOD_WithJetsTausMET_mc21.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 if __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.31373517._000035.pool.root.1"]
10  cfgFlags.Output.AODFileName="output_AOD.root"
11  cfgFlags.Output.doWriteAOD=True
12  cfgFlags.Tau.doDiTauRec = False #does not run from ESD - tries to use aux variables which do not exist
13  cfgFlags.lock()
14 
15  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
16  cfg = MainServicesCfg(cfgFlags)
17 
18  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
19  cfg.merge(PoolReadCfg(cfgFlags))
20 
21  from eflowRec.PFRun3Config import PFFullCfg
22  cfg.merge(PFFullCfg(cfgFlags,runTauReco=True))
23 
24  from eflowRec.PFRun3Config import PFTauFELinkCfg
25  cfg.merge(PFTauFELinkCfg(cfgFlags))
26 
27  from eflowRec.PFRun3Remaps import ListRemaps
28 
29  list_remaps=ListRemaps()
30  for mapping in list_remaps:
31  cfg.merge(mapping)
32 
33  from PFlowUtils.configureRecoForPFlow import configureRecoForPFlowCfg
34  cfg.merge(configureRecoForPFlowCfg(cfgFlags))
35 
36  cfg.run()
PFRun3Config.PFFullCfg
def PFFullCfg(inputFlags, runTauReco=False, **kwargs)
Definition: PFRun3Config.py:8
configureRecoForPFlow.configureRecoForPFlowCfg
def configureRecoForPFlowCfg(cfgFlags)
Definition: configureRecoForPFlow.py:3
PFRun3Config.PFTauFELinkCfg
def PFTauFELinkCfg(inputFlags, **kwargs)
Definition: PFRun3Config.py:132
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:256
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
PFRun3Remaps.ListRemaps
def ListRemaps()
Definition: PFRun3Remaps.py:3
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69