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