The Gaudi Framework  v36r1 (3e2fb5a8)
EvtColRead.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
13 """
14 *******************************************************************************
15 * *
16 * Simple example which illustrate the usage of useful *
17 * algorithm base class for N-Tuple manipulations *
18 * *
19 *******************************************************************************
20 """
21 from __future__ import print_function
22 # =============================================================================
23 __author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr'
24 # =============================================================================
25 
26 import GaudiPython
27 import math
28 
29 SUCCESS = GaudiPython.SUCCESS
30 
31 # =============================================================================
32 # job configuration
33 # =============================================================================
34 
35 
36 def configure(gaudi=None):
37  """ Configuration of the job """
38 
39  gaudi.HistogramPersistency = 'ROOT'
40 
41  gaudi.DLLs += [
42  'GaudiAlg',
43  'RootHistCnv',
44  ]
45  gaudi.ExtSvc += ['TagCollectionSvc/EvtTupleSvc']
46 
47  evtSel = gaudi.evtSel()
48  evtSel.open('PFN:EvtTags1.root', collection='Fill/COL1', sel='binom==6')
49 
50  gaudi.config()
51 
52  return SUCCESS
53 
54 
55 # =============================================================================
56 # The actual job excution
57 # =============================================================================
58 if '__main__' == __name__:
59  print(__doc__)
60  # configuration (options)
61  from Configurables import GaudiPersistency, FileCatalog, ApplicationMgr
62  GaudiPersistency()
63  ApplicationMgr().ExtSvc.append(
64  FileCatalog(Catalogs=['xmlcatalog_file:EvtColsEx.xml']))
65  # execution
67  configure(gaudi)
68  gaudi.run(-1)
69  gaudi.exit()
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:842
EvtColRead.configure
def configure(gaudi=None)
Definition: EvtColRead.py:36