ATLAS Offline Software
PFRunESDtoAOD_WithJetsTausMET_CPData_mc21_13p6TeV.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.Exec.MaxEvents=100
9  cfgFlags.Input.isMC=True
10  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"]
11  cfgFlags.Output.AODFileName="output_AOD.root"
12  cfgFlags.Output.doWriteAOD=True
13  cfgFlags.PF.addCPData=True
14  cfgFlags.Tau.doDiTauRec = False #does not run from ESD - tries to use aux variables which do not exist
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()
32  for mapping in list_remaps:
33  cfg.merge(mapping)
34 
35  from PFlowUtils.configureRecoForPFlow import configureRecoForPFlowCfg
36  cfg.merge(configureRecoForPFlowCfg(cfgFlags))
37 
38  cfg.run()
PFRun3Config.PFFullCfg
def PFFullCfg(inputFlags, runTauReco=False, **kwargs)
Definition: PFRun3Config.py:8
configureRecoForPFlow.configureRecoForPFlowCfg
def configureRecoForPFlowCfg(cfgFlags)
Definition: configureRecoForPFlow.py:26
PFRun3Config.PFTauFELinkCfg
def PFTauFELinkCfg(inputFlags, **kwargs)
Definition: PFRun3Config.py:134
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
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