ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
eflowRec
python
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
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_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
#Auto configure works by reading the conditions tag metadata from the input file.
15
#Hence for files produced using pre-CREST conditions tags this choice is not
16
#compatible with the latest releases which only support CREST conditions tags.
17
#So we force it to use the current Run 4 tag
18
#See https://its.cern.ch/jira/browse/ATLASRECTS-8434
19
from
AthenaConfiguration.TestDefaults
import
defaultConditionsTags
20
cfgFlags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
21
cfgFlags.fillFromArgs()
22
cfgFlags.lock()
23
24
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
25
cfg = MainServicesCfg(cfgFlags)
26
27
from
AthenaPoolCnvSvc.PoolReadConfig
import
PoolReadCfg
28
cfg.merge(PoolReadCfg(cfgFlags))
29
30
from
eflowRec.PFRun3Config
import
PFFullCfg
31
cfg.merge(PFFullCfg(cfgFlags,runTauReco=
True
))
32
33
from
eflowRec.PFRun3Config
import
PFTauFELinkCfg
34
cfg.merge(PFTauFELinkCfg(cfgFlags))
35
36
from
eflowRec.PFRun3Remaps
import
ListRemaps
37
38
list_remaps=ListRemaps(cfg,
'AOD'
)
39
for
mapping
in
list_remaps:
40
cfg.merge(mapping)
41
42
from
PFlowUtils.configureRecoForPFlow
import
configureRecoForPFlowCfg
43
cfg.merge(configureRecoForPFlowCfg(cfgFlags))
44
45
#Add containers needed to run jet finding from resultant AOD for pflow CP studies
46
from
PFlowUtils.configureRecoForPFlow
import
addContainersForPFlowCPStudiesCfg
47
cfg.merge(addContainersForPFlowCPStudiesCfg(cfgFlags))
48
49
cfg.run()
Generated on
for ATLAS Offline Software by
1.17.0