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
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