ATLAS Offline Software
Loading...
Searching...
No Matches
RootReadConfig Namespace Reference

Functions

 RootReadCfg (flags, tupleName)

Function Documentation

◆ RootReadCfg()

RootReadConfig.RootReadCfg ( flags,
tupleName )
Creates a ComponentAccumulator instance containing the
athena services required for ROOT file reading.

Definition at line 7 of file RootReadConfig.py.

7def RootReadCfg(flags, tupleName):
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 cfg.addService(evSel)
20 cfg.addService( CompFactory.Athena.NtupleCnvSvc() )
21
22 cfg.setAppProperty("EvtSel", evSel.getFullJobOptName())
23
24 return cfg