The Gaudi Framework  v36r9p1 (5c15b2bb)
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 # =============================================================================
24 __author__ = "Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr"
25 # =============================================================================
26 
27 import math
28 
29 import GaudiPython
30 
31 SUCCESS = GaudiPython.SUCCESS
32 
33 # =============================================================================
34 # job configuration
35 # =============================================================================
36 
37 
38 def configure(gaudi=None):
39  """Configuration of the job"""
40 
41  gaudi.HistogramPersistency = "ROOT"
42 
43  gaudi.DLLs += [
44  "GaudiAlg",
45  "RootHistCnv",
46  ]
47  gaudi.ExtSvc += ["TagCollectionSvc/EvtTupleSvc"]
48 
49  evtSel = gaudi.evtSel()
50  evtSel.open("PFN:EvtTags1.root", collection="Fill/COL1", sel="binom==6")
51 
52  gaudi.config()
53 
54  return SUCCESS
55 
56 
57 # =============================================================================
58 # The actual job excution
59 # =============================================================================
60 if "__main__" == __name__:
61  print(__doc__)
62  # configuration (options)
63  from Configurables import ApplicationMgr, FileCatalog, GaudiPersistency
64 
65  GaudiPersistency()
66  ApplicationMgr().ExtSvc.append(
67  FileCatalog(Catalogs=["xmlcatalog_file:EvtColsEx.xml"])
68  )
69  # execution
71  configure(gaudi)
72  gaudi.run(-1)
73  gaudi.exit()
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:873
EvtColRead.configure
def configure(gaudi=None)
Definition: EvtColRead.py:38