ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaRoot
AthenaRootComps
python
RootReadConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
7
def
RootReadCfg
(flags, tupleName, **kw):
8
"""Creates a ComponentAccumulator instance containing the
9
athena services required for ROOT file reading.
10
"""
11
12
cfg = ComponentAccumulator()
13
14
# Add EventSelector
15
evSel = CompFactory.Athena.RootNtupleEventSelector(
"EventSelector"
,
16
InputCollections = flags.Input.Files,
17
TupleName = tupleName,
18
SkipEvents = flags.Exec.SkipEvents,
19
**kw)
20
cfg.addService(evSel)
21
cfg.addService( CompFactory.Athena.NtupleCnvSvc() )
22
23
cfg.setAppProperty(
"EvtSel"
, evSel.getFullJobOptName())
24
25
return
cfg
RootReadConfig.RootReadCfg
RootReadCfg(flags, tupleName, **kw)
Definition
RootReadConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0