ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
DiTauRec
python
StandAloneDiTauBuilder.py
Go to the documentation of this file.
1
#!/usr/bin/env athena.py
2
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4
import
sys
5
6
def
DiTauOutputCfg
(flags):
7
8
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
9
from
OutputStreamAthenaPool.OutputStreamConfig
import
addToESD,addToAOD
10
result=ComponentAccumulator()
11
12
DiTauOutputList = [
"xAOD::DiTauJetContainer#DiTauJets"
]
13
DiTauOutputList += [
"xAOD::DiTauJetAuxContainer#DiTauJetsAux."
]
14
15
result.merge(addToESD(flags,DiTauOutputList))
16
result.merge(addToAOD(flags,DiTauOutputList))
17
return
result
18
19
def
DiTauReconstructionCfg
(flags):
20
21
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
22
result = ComponentAccumulator()
23
24
from
DiTauRec.DiTauBuilderConfig
import
DiTauBuilderCfg
25
result.merge(DiTauBuilderCfg(flags))
26
27
if
(flags.Output.doWriteESD
or
flags.Output.doWriteAOD):
28
result.merge(
DiTauOutputCfg
(flags))
29
30
return
result
31
32
33
if
__name__==
"__main__"
:
34
35
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
36
flags = initConfigFlags()
37
38
flags.Input.Files = [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/mc21_13p6TeV/ESDFiles/mc21_13p6TeV.421450.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep_fct.recon.ESD.e8445_e8447_s3822_r13565/ESD.28877240._000046.pool.root.1"
]
39
40
# Use latest MC21 tag to pick up latest muon folders apparently needed
41
flags.IOVDb.GlobalTag =
"OFLCOND-MC21-SDR-RUN3-10"
42
flags.Output.ESDFileName =
"ESD.pool.root"
43
flags.Output.AODFileName =
"AOD.pool.root"
44
45
nThreads=1
46
flags.Concurrency.NumThreads = nThreads
47
if
nThreads>0:
48
flags.Scheduler.ShowDataDeps =
True
49
flags.Scheduler.ShowDataFlow =
True
50
flags.Scheduler.ShowControlFlow =
True
51
flags.Concurrency.NumConcurrentEvents = nThreads
52
53
flags.lock()
54
55
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
56
from
AthenaPoolCnvSvc.PoolReadConfig
import
PoolReadCfg
57
58
cfg=MainServicesCfg(flags)
59
cfg.merge(PoolReadCfg(flags))
60
61
cfg.merge(
DiTauReconstructionCfg
(flags))
62
63
statusCode =
None
64
statusCode = cfg.run(1000)
65
assert
statusCode
is
not
None
,
"Issue while running"
66
sys.exit(
not
statusCode.isSuccess())
67
68
StandAloneDiTauBuilder.DiTauReconstructionCfg
DiTauReconstructionCfg(flags)
Definition
StandAloneDiTauBuilder.py:19
StandAloneDiTauBuilder.DiTauOutputCfg
DiTauOutputCfg(flags)
Definition
StandAloneDiTauBuilder.py:6
Generated on
for ATLAS Offline Software by
1.17.0