ATLAS Offline Software
Loading...
Searching...
No Matches
RootReadConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6
7def 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
RootReadCfg(flags, tupleName, **kw)