ATLAS Offline Software
Database/AthenaRoot/AthenaRootComps/python/__init__.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2 
3 # hook for the AthenaRootComps py-module
4 
5 """
6 This module allows people to read a chain of ttrees from inside Athena, merging ROOT's usual event loop over trees and Gaudi event loop.
7 
8 ex:
9 
10 from AthenaCommon.AppMgr import (theApp,
11  ServiceMgr as svcMgr)
12 
13 # install the ROOT event loop
14 import AthenaRootComps.ReadAthenaRoot
15 
16 import AthenaRootComps.ReadAthenaxAOD
17 
18 svcMgr.THistSvc.OutputLevel = DEBUG
19 svcMgr.EventSelector.OutputLevel = DEBUG
20 
21 # cbnt files obtained with:
22 # athena.py CBNT_AOD/test_CBNT_TruthParticle_jobOptions.py
23 svcMgr.EventSelector.InputCollections = [
24  'cbnt_aod.aan.1.root',
25  'cbnt_aod.aan.2.root',
26  ]
27 svcMgr.EventSelector.TupleName = 'CollectionTree'
28 svcMgr.EventSelector.SkipEvents = 10
29 theApp.EvtMax = -1
30 
31 """